Zoom bug<p>I'm having a problem with zooming, I've serialized the chart. If you do a selection all the way to the right side of the chartarea, the zoom doesn't work correctly. Here's the chart:<br/><br/><a href="http://www.mediafire.com/?sharekey=00d169f1fb99a7678ef1259ff1b60e81e04e75f6e8ebb871">http://www.mediafire.com/?sharekey=00d169f1fb99a7678ef1259ff1b60e81e04e75f6e8ebb871</a></p>© 2009 Microsoft Corporation. All rights reserved.Fri, 03 Jul 2009 11:52:19 Z9d300b6a-883e-465e-b2c1-cf77d6487952http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#9d300b6a-883e-465e-b2c1-cf77d6487952http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#9d300b6a-883e-465e-b2c1-cf77d6487952ScottyDoesKnowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottyDoesKnowZoom bug<p>I'm having a problem with zooming, I've serialized the chart. If you do a selection all the way to the right side of the chartarea, the zoom doesn't work correctly. Here's the chart:<br/><br/><a href="http://www.mediafire.com/?sharekey=00d169f1fb99a7678ef1259ff1b60e81e04e75f6e8ebb871">http://www.mediafire.com/?sharekey=00d169f1fb99a7678ef1259ff1b60e81e04e75f6e8ebb871</a></p>Thu, 25 Jun 2009 17:10:51 Z2009-06-25T17:10:51Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#4a2fd278-bbb1-499f-ba4b-d406bdba2487http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#4a2fd278-bbb1-499f-ba4b-d406bdba2487ScottyDoesKnowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottyDoesKnowZoom bug<p>Alright so I don't know if that bug is in the chart because it's not happening now. It was happening just as I serialized the chart though, I checked. That one seems to have dissappeared and another one appeared though. In the serialized chart the X values are in seconds. I have a drop down which changes to milliseconds/microseconds/etc... When you do this it clears the series like so:<br/><br/>SeriesChartType oldChartType = chartBottom.Series[SERIES_VS].ChartType;</p> <p>            chartBottom.Series[SERIES_VS].Dispose();<br/>            chartBottom.Series[SERIES_VS] = new Series(SERIES_VS)<br/>            {<br/>                Color = Color.Black,<br/>                ChartType = oldChartType,<br/>                ChartArea = chartAreaBottom.Name<br/>            };<br/><br/>Then it refills the series with new points, calls RecalculateAxesScale() and resets the zoom. Now if you click on the graph (without zooming, just a click) the image you see switches to the previous graph. If the previous graph was zoomed in it will even show that, but when you zoom it acts on the regular graph. Hopefully you've seen this before because it will be harder to get you a project that it was just to serialize the chart.</p>Thu, 25 Jun 2009 17:22:17 Z2009-06-25T17:22:17Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#6addf0f0-eb8d-4968-b0b8-e75ee5f6fd9dhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#6addf0f0-eb8d-4968-b0b8-e75ee5f6fd9dScottyDoesKnowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottyDoesKnowZoom bug<p>Oh and it won't happen unless you click the graph once before changing the scale also, and I walked through the click event and it doesn't change the graph at all. Also changed the series clearing to this with no change in results:<br/><br/>Series oldSeries = chartBottom.Series[SERIES_VS];<br/>            SeriesChartType oldChartType = oldSeries.ChartType;</p> <p>            chartBottom.Series.Remove(oldSeries);<br/>            oldSeries.Dispose();</p> <p>            chartBottom.Series.Add(new Series(SERIES_VS)<br/>            {<br/>                Color = Color.Black,<br/>                ChartType = oldChartType,<br/>                ChartArea = chartAreaBottom.Name<br/>            });</p>Thu, 25 Jun 2009 17:27:13 Z2009-06-25T17:27:13Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#0665462e-96f7-476e-af16-b1952392ccc1http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#0665462e-96f7-476e-af16-b1952392ccc1DelianThttp://social.msdn.microsoft.com/Profile/en-US/?user=DelianTZoom bugLooks like known issue. Please use Chart.AxisViewChanged event to refresh the chart. <div><br/></div> <div><br/></div> <div> private void chart1_AxisViewChanged(object sender, ViewEventArgs e)</div> <div>{</div> <div>            chart1.Refresh();</div> <div>}</div> <div>Delian</div>Mon, 29 Jun 2009 17:51:08 Z2009-06-29T17:51:08Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#e84e0688-2d92-4ad4-ab00-f9abfa795649http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#e84e0688-2d92-4ad4-ab00-f9abfa795649ScottyDoesKnowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottyDoesKnowZoom bugThat kind of works, though I had to put it on MouseDown since that's when it happens. I tried putting it in axisviewchanged but then the selection wouldnt go away when it zoomed and it was flashing around worse than before. There's still a problem though because when it does work it flashes to the old graph and then back to the right one.Mon, 29 Jun 2009 18:27:10 Z2009-06-29T18:27:10Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#f8ff36a2-27df-487c-8248-96948d9e17cchttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#f8ff36a2-27df-487c-8248-96948d9e17ccScottyDoesKnowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottyDoesKnowZoom bugAlso, is there a known bug report somewhere? Something I could show to a client in case they think the problem is in my code?Tue, 30 Jun 2009 19:33:49 Z2009-06-30T19:33:49Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#67911ccc-ca9a-47a4-98ed-89044ccec099http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#67911ccc-ca9a-47a4-98ed-89044ccec099ScottyDoesKnowhttp://social.msdn.microsoft.com/Profile/en-US/?user=ScottyDoesKnowZoom bugAnybody got a fix for this?Wed, 01 Jul 2009 20:09:13 Z2009-07-01T20:09:13Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#bc721592-368e-44b3-9382-8729c8eb52d9http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/9d300b6a-883e-465e-b2c1-cf77d6487952#bc721592-368e-44b3-9382-8729c8eb52d9Simón P.http://social.msdn.microsoft.com/Profile/en-US/?user=Sim%u00f3n%20P.Zoom bug<blockquote>Also, is there a known bug report somewhere? Something I could show to a client in case they think the problem is in my code?</blockquote> Hi<br/> <br/> I've experienced an odd behaviour which looks like what's happening to you. I reported it <a href="http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/2018496c-e27e-4af7-adb6-171b78d964ff">here</a> , and I was told it's a bug and will be fixed (hopefully). I hope this helps you. I didn't get a fix or workaround as I've stopped temporary using the charts.<br/>Fri, 03 Jul 2009 11:52:19 Z2009-07-03T11:52:19Z