I'm running into some issues now as I'm adding zooming/scrolling support to our app and was hoping I could get some help to solve them.
This is our app:
- charting application which has one chart area in which they can chart different series
- the user can open a pop-up and select which series they would like to see
- all of our data is values over time of an operational system for instance a temperature reading, pressure reading, voltage reading, etc.
Right now when the user selects and deselects series that they want to display we add and remove DataSeries objects from the chart. When I enabled zoom/scroll it operates weirdly: the scroll bars change seemingly reflecting the fact that we zoomed in, the zooming only zooms in the Y axis, scrolling is non-functional, etc. I read in another post that for zoom/scroll to work we need to databind to ItemsSource which we are not currently doing. Is this the reason for our issues?
To do the data binding we will then need to start using the SeriesMapping collection and add and remove those mappings when a new list of points is added to the data binding. Is there any best practice for doing this? Any examples? I'm getting a lot of exceptions as it seems the timing is finnicky and it also seems a bit hackish since my data objects now need access to my presentation objects (to update the series mappings when the data object changes).
This is our app:
- charting application which has one chart area in which they can chart different series
- the user can open a pop-up and select which series they would like to see
- all of our data is values over time of an operational system for instance a temperature reading, pressure reading, voltage reading, etc.
Right now when the user selects and deselects series that they want to display we add and remove DataSeries objects from the chart. When I enabled zoom/scroll it operates weirdly: the scroll bars change seemingly reflecting the fact that we zoomed in, the zooming only zooms in the Y axis, scrolling is non-functional, etc. I read in another post that for zoom/scroll to work we need to databind to ItemsSource which we are not currently doing. Is this the reason for our issues?
To do the data binding we will then need to start using the SeriesMapping collection and add and remove those mappings when a new list of points is added to the data binding. Is there any best practice for doing this? Any examples? I'm getting a lot of exceptions as it seems the timing is finnicky and it also seems a bit hackish since my data objects now need access to my presentation objects (to update the series mappings when the data object changes).