Why does the chart legend update every point?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Why does the chart legend update every point?

Post by Dave » Thu Oct 31, 2013 5:11 pm

Hi

Not sure why this has suddenly started happening with our charts but when a point is added , lets say (10,130) then the number 130 appears in the legend of the chart. Then we add another point, say 20, 156), and the number 156 appears as well. So every point that is added the legend gets bigger and bigger. It just fills up with the Y-points. Is this the default behaviour? I just want to set the plot title to "Plot1" and have this shown in the legend even as more points are added.
Can anyone show me how I do this programmatically. We are using C#.NET. I've used TeeChart for a number of years and can't figure this out. I seem to have set something by accident because our charts were drawing perfectly until recently.

Thanks

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Re: Why does the chart legend update every point?

Post by Dave » Fri Nov 01, 2013 2:04 pm

Note Ive set the legend as this;

ourChart.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;


So I would expect to get one entry for each series (line) added to the chart.
Not one entry for each point added to the chart as we get currently.

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Re: Why does the chart legend update every point?

Post by Dave » Fri Nov 01, 2013 2:24 pm

Hi

Ive fixed this. Not sure how. My code is pretty complicated but it works now.

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

Re: Why does the chart legend update every point?

Post by Sandra » Tue Nov 05, 2013 10:04 am

Hello Dave,

Sorry for the delay. I am glad that you fix your problem :D. If you have any problems please let me know.

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