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
First of all, thank you so much for this library.Charts is very great! Now,I meet a issue, I want to get the xaxis value when chart scrolling or scroll end,and this value is every point that across specific area.For example: I specific this area is chart center,I can get per ChartDataEntry instance when across this center area. I'm used "- chartTranslated:dX:dY",but it seems not work. Is there any way to get it?
Thank you.
The text was updated successfully, but these errors were encountered:
/// - 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))}
You can figure out what's your center and convert the pixel to values. Notice, it might fail or you have to search for closest values.
Hi
First of all, thank you so much for this library.Charts is very great! Now,I meet a issue, I want to get the xaxis value when chart scrolling or scroll end,and this value is every point that across specific area.For example: I specific this area is chart center,I can get per ChartDataEntry instance when across this center area. I'm used "- chartTranslated:dX:dY",but it seems not work. Is there any way to get it?
Thank you.
The text was updated successfully, but these errors were encountered: