Page 1 of 1

Why does the chart legend update every point?

Posted: Thu Oct 31, 2013 5:11 pm
by 13050364
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

Re: Why does the chart legend update every point?

Posted: Fri Nov 01, 2013 2:04 pm
by 13050364
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.

Re: Why does the chart legend update every point?

Posted: Fri Nov 01, 2013 2:24 pm
by 13050364
Hi

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

Re: Why does the chart legend update every point?

Posted: Tue Nov 05, 2013 10:04 am
by 10050769
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,