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
The last few days I worked with your, absolutely awesome, iosCharts library and I am doing an App that Plots Graphs. I have a few funcitionalitys that I need bit could not find anywhere how to make happen.
How can I reset the zoom reliably I tried multiple things that did not work. How do I do it properly ?
How can I get the „from“ and to „values“ of the X and Y Axis when the view is getting zoomed
How can I zoom programatically
How can I programatically set the Highlight to a Point on X-Axis ?
Is it possible to move the X-Axis and the Y-Axis to the middle of the Chart ? And if yes, how ?
Thanks a lot for your help in advance and for contributing to this awesome library !
The text was updated successfully, but these errors were encountered:
Most of your zoom requirement is implemented in ViewPortHandler so check it out like
open func resetZoom() -> CGAffineTransform
open func setZoom(scaleX: CGFloat, scaleY: CGFloat) -> CGAffineTransform
highlight can be code using highlight funcs inside ChartViewBase like
open func highlightValues(_ highs: [Highlight]?)
open func highlightValue(x: Double, y: Double, dataSetIndex: Int)
By default you can't move xAxis or yAxis to the middle. But there are some ways to do it:
use ChartLimitLine to draw the line, if you don't need the labels.
if you really need, then you have to change the code to draw them in the middle by overriding some methods inside AxisRenderer. To calculate the middle point, you can refer to UIView's center or contentRect's center.
The last few days I worked with your, absolutely awesome, iosCharts library and I am doing an App that Plots Graphs. I have a few funcitionalitys that I need bit could not find anywhere how to make happen.
How can I reset the zoom reliably I tried multiple things that did not work. How do I do it properly ?
How can I get the „from“ and to „values“ of the X and Y Axis when the view is getting zoomed
How can I zoom programatically
How can I programatically set the Highlight to a Point on X-Axis ?
Is it possible to move the X-Axis and the Y-Axis to the middle of the Chart ? And if yes, how ?
Thanks a lot for your help in advance and for contributing to this awesome library !
The text was updated successfully, but these errors were encountered: