VekiPeki Posted September 22, 2009 Report Posted September 22, 2009 Hello! We have a problem drawing area charts using Chart FX 7 for Windows Forms (7.0.3306.26568). The problem is that the area chart is incorrectly rendered when the chart is zoomed and scrolled. We have had this problem earlier with Chart FX Client Server 6.2, but a hotfix for this was never released. Since we presumed that you are no longer maintaining the COM version (and presumed this has been fixed in new versions), we have moved to Chart FX 7, but the same bug occurs nevertheless. This is the code we used: void Form1_Load(object sender, EventArgs e){ ListProvider data = new ListProvider(); data.List = new ArrayList(); IList xData = new DateTime[] { DateTime.Now, DateTime.Now.AddHours(1), DateTime.Now.AddHours(2), DateTime.Now.AddHours(3), DateTime.Now.AddHours(4) }; IList yDataFrom = new int[] { 1, 2, 3, 4, 5 }; IList yDataTo = new int[] { 2, 3, 4, 5, 6 }; data.List.Add(xData); data.List.Add(yDataFrom); data.List.Add(yDataTo); chart1.Data.Clear(); chart1.Data.Series = 1; chart1.Data.Points = 5; chart1.Series[0].Gallery = Gallery.Area; chart1.Series[0].Color = System.Drawing.Color.FromArgb(196, Color.SteelBlue); chart1.AxisX.LabelsFormat.Format = AxisFormat.Time; chart1.DataSourceSettings.Fields.Clear(); chart1.DataSourceSettings.Fields.Add(new FieldMap("Field1", FieldUsage.XValue)); chart1.DataSourceSettings.Fields.Add(new FieldMap("Field2", FieldUsage.FromValue)); chart1.DataSourceSettings.Fields.Add(new FieldMap("Field3", FieldUsage.Value)); chart1.DataSource = data;} This is how the chart looks when the form is first loaded: And this is what we get when we zoom in and scroll to the middle of the chart: We have provided a sample application also. Thanks a lot and best regards, Veki Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.