I would like to restrict the chart to cap at the extents while panning, but chart stretches at the extents. I could able to set clip mode for X axis in SCIZoomPanModifier, same way I would like to set clip mode Y axis but I couldn’t.
Please help me to restrict my chart to not move after chart data extents.
That’s not supported out of the box, and the reason is quite simple – to achieve such functionality you would need to calculate min\max value throughout all your data, which is performance expensive. With X axis it’s much simpler, value is most of the time sorted in X direction, which simplifies this procedure a lot, you just have your min\max easily calculated by grabbing first and list element from the list.
You might want to write custom ZoomPanModifier which would support such behaviour, and we have an article about how to write custom modifiers here.
Hope that helps.
Please login first to submit.