We have scatter plot in our client/server application where the data is aggregated on the server.
We use the scatterplot with different colored series, to product a weigthed scatterplot, where the color corresponds to the number of points with the given x-y values. (where the x and y are ranges of values instead of individual points)
When zooming/scrolling we would like to implement custom logic instead of the default zoom/sort. (to actually go back to the server and recalculate a more precice set)
During design we ran into 2 issues.
1. When Zomming on both X and Y Axis using the normal zoom function you would not get the exact zoom you would expect.
We then changed to the application to only Zoom on the X-Axis, with both Autogenerates and non autogenerated X-Axis.
We tried implementing the ZoomSettings_OnPropertyChanged, but we are unable to recalculate the actual values.
Do not match the visual selection of the Zoom.
ChartArea.AxisX.ActualMinValue + (ChartArea.AxisX.ActualRange * ChartArea.ZoomScrollSettingsX.RangeStart)
ChartArea.AxisX.ActualMinValue + (ChartArea.AxisX.ActualRange * ChartArea.ZoomScrollSettingsX.RangeEnd)
We have an Amount Range on the XAxis, ranging from -2 mil, to 8 mil, selecting -0.5 mil to 1 mil, gives +1.2 mil to 1.4 mil give or take.
We even sometimes got a RangeEnd greater then 1 ?
2. Since we do our own zooming, is there a way to cancel the Client Zoom,
resetting the RangeStart&RangeEnd to 1 fires off the OnPropertyChanged Event again.
I think we are overlooking sometimes, so your help would be appriciated.