-
-
Save prabakarviji/e1b00c95f50624d9e809a48c7b2c836b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let oldRange = CPTPlotRange(locationDecimal: CPTDecimalFromDouble(Double(range)), lengthDecimal: CPTDecimalFromDouble(Double(maxDataPoints-2))) | |
let newRange = CPTPlotRange(locationDecimal: CPTDecimalFromDouble(Double(location)), lengthDecimal: CPTDecimalFromDouble(Double(maxDataPoints-2))) | |
CPTAnimation.animate(plotSpace, property: "xRange", from: oldRange, to: newRange, duration:0.3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment