Zoom issues with Area Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
pw
Newbie
Newbie
Posts: 57
Joined: Fri Nov 15, 2002 12:00 am

Zoom issues with Area Chart

Post by pw » Thu Oct 01, 2009 11:26 pm

Hi,

I'm using version 3.5.3498.27367 and seemed to have problems with zooming on an area chart.

As can be seen in the attached gif file, the afterzoom.gif shows additional lines appearing when the initial chart (see beforezoom.gif) is zoomed. Interestingly, when I use

Code: Select all

tChart1.Export.Image.GIF.CopyToClipboard()
, the additional lines disappear on the chart and the resultant gif file.

Part of the codes that I used to plot the chart are as follows:

Code: Select all

tChart1.AutoRepaint = false;
tChart1.Aspect.View3D = false;
tChart1.Series.RemoveAllSeries();
tChart1.Tools.Clear();
tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;
tChart1.Legend.CheckBoxes = false;
tChart1.Legend.Visible = true;
Steema.TeeChart.Styles.Area area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart);
Steema.TeeChart.Styles.Area area2 = new Steema.TeeChart.Styles.Area(tChart1.Chart);
area1.Stacked = Steema.TeeChart.Styles.CustomStack.Stack;
area2.Stacked = Steema.TeeChart.Styles.CustomStack.Stack;
area1.AreaBrush.Color = Color.FromArgb(255, 0, 75);
area2.AreaBrush.Color = Color.FromArgb(255, 0, 0);
area1.AreaLines.Color = Color.FromArgb(255, 0, 75);
area2.AreaLines.Color = Color.FromArgb(255, 0, 0);
area1.Color = Color.FromArgb(255, 0, 75);
area2.Color = Color.FromArgb(255, 0, 0);

... fill area with data

tChart1.AutoRepaint = true;
tChart1.Invalidate();
Please advise. Thanks.
Attachments
afterzoom.GIF
After zoom
afterzoom.GIF (58.3 KiB) Viewed 4540 times
beforezoom.gif
Before zoom
beforezoom.gif (72.4 KiB) Viewed 4540 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Zoom issues with Area Chart

Post by Sandra » Fri Oct 02, 2009 8:27 am

Hello pw,

I couldn't reproduce your issue. Please you could send us a simple project example that we can reproduce exactly your problem? You can attach your project directly in this thread.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply