I have a dialog that shows four charts with a single zoom bar that controls the zoom for each of the four charts. These four charts are inside a tabitem, the next tab item in the control contains another four similar charts that show a different representation of the data. All of the charts are scatter charts and have the same x and y axis ranges.
Zooming works perfectly for the four visible charts, but when I change tab I find that the charts that had been invisible during the zoom have zoomed incorrectly and the datapoints are often off the chart. If I try to zoom on these charts again they suddenly correct themselves and zoom correctly, but switching to the first tab reveals that the first set of charts has now zoomed incorrectly.
I am currently setting the charts like this:
//Charts on tab 2
Can you suggest a fix so that both sets of charts zoom at the same time in the same way?
Thanks,
Andy.
Zooming works perfectly for the four visible charts, but when I change tab I find that the charts that had been invisible during the zoom have zoomed incorrectly and the datapoints are often off the chart. If I try to zoom on these charts again they suddenly correct themselves and zoom correctly, but switching to the first tab reveals that the first set of charts has now zoomed incorrectly.
I am currently setting the charts like this:
//Charts on tab 1
Chart1Tab1.Zoom = new Size(value, value);
Chart2Tab1.Zoom = new Size(value, value);
Chart3Tab1.Zoom = new Size(value, value);
Chart4Tab1.Zoom = new Size(value, value);
//Charts on tab 2
Chart1Tab2.Zoom = new Size(value, value);
Chart2Tab2.Zoom = new Size(value, value);
Chart3Tab2.Zoom = new Size(value, value);
Chart4Tab2.Zoom = new Size(value, value);
Can you suggest a fix so that both sets of charts zoom at the same time in the same way?
Thanks,
Andy.