You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// If this is set to true, then the range will automatically be detected from the data the graph is given.
45
78
publicvarshouldAutomaticallyDetectRange=false
79
+
/// Forces the graph's minimum to always be zero. Used in conjunction with shouldAutomaticallyDetectRange or shouldAdaptRange, if you want to force the minimum to stay at 0 rather than the detected minimum.
46
80
publicvarshouldRangeAlwaysStartAtZero=false // Used in conjunction with shouldAutomaticallyDetectRange, if you want to force the min to stay at 0.
47
-
publicvarrangeMin:Double=0 // Ignored when shouldAutomaticallyDetectRange or shouldAdaptRange = true
48
-
publicvarrangeMax:Double=100 // Ignored when shouldAutomaticallyDetectRange or shouldAdaptRange = true
81
+
/// The minimum value for the y-axis. This is ignored when shouldAutomaticallyDetectRange or shouldAdaptRange = true
82
+
publicvarrangeMin:Double=0
83
+
/// The maximum value for the y-axis. This is ignored when shouldAutomaticallyDetectRange or shouldAdaptRange = true
84
+
publicvarrangeMax:Double=100
49
85
50
86
// Data Point Drawing
87
+
// ##################
88
+
89
+
/// Whether or not to draw a symbol for each data point.
/// If dataPointType is set to .Custom then you,can provide a closure to create any kind of shape you would like to be displayed instead of just a circle or square. The closure takes a CGPoint which is the centre of the shape and it should return a complete UIBezierPath.
/// Whether or not the y-axis' range should adapt to the points that are visible on screen. This means if there are only 5 points visible on screen at any given time, the maximum on the y-axis will be the maximum of those 5 points. This is updated automatically as the user scrolls along the graph.
58
104
publicvarshouldAdaptRange=false
105
+
/// If shouldAdaptRange is set to true then this specifies whether or not the points on the graph should animate to their new positions. Default is set to true.
59
106
publicvarshouldAnimateOnAdapt=true
107
+
/// How long the animation should take. Affects both the startup animation and the animation when the range of the y-axis adapts to onscreen points.
/// How many reference lines should be between the minimum and maximum reference lines. If you want a total of 4 reference lines, you would set this to 2. This can be set to 0 for no intermediate reference lines.This can be used to create reference lines at specific intervals. If the desired result is to have a reference line at every 10 units on the y-axis, you could, for example, set rangeMax to 100, rangeMin to 0 and numberOfIntermediateReferenceLines to 9.
72
131
publicvarnumberOfIntermediateReferenceLines:Int=3
132
+
/// Whether or not to add labels to the intermediate reference lines.
0 commit comments