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
Is there a method to obtain the total number of points being rendered by the chart within a particular viewport scale (or zoom level)?
There seems to be a more inaccurate method of calculating, such as taking the total number of points being fed into the chart and dividing the by the X viewport scale....but this is not exact and I'd like to see if there is another alternative.
Thanks!
The text was updated successfully, but these errors were encountered:
I don't see a method doing this if I remember correctly.
but there is something similar:
openvarlowestVisibleX:Double{varpt=CGPoint(
x: viewPortHandler.contentLeft,
y: viewPortHandler.contentBottom)getTransformer(forAxis:.left).pixelToValues(&pt)returnmax(xAxis._axisMinimum,Double(pt.x))}
/// - returns: The highest x-index (value on the x-axis) that is still visible on the chart.
openvarhighestVisibleX:Double{varpt=CGPoint(
x: viewPortHandler.contentRight,
y: viewPortHandler.contentBottom)getTransformer(forAxis:.left).pixelToValues(&pt)returnmin(xAxis._axisMaximum,Double(pt.x))}
This returns the highest and lowest visible X value, and you can then get how many x values are rendered, you can calculate how many entries you have for each x.
Is there a method to obtain the total number of points being rendered by the chart within a particular viewport scale (or zoom level)?
There seems to be a more inaccurate method of calculating, such as taking the total number of points being fed into the chart and dividing the by the X viewport scale....but this is not exact and I'd like to see if there is another alternative.
Thanks!
The text was updated successfully, but these errors were encountered: