Incorrect rendering of legend (check boxes enabled)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
wiaanv
Newbie
Newbie
Posts: 7
Joined: Wed Jan 10, 2001 5:00 am
Location: Cape Town, RSA
Contact:

Incorrect rendering of legend (check boxes enabled)

Post by wiaanv » Thu Jul 15, 2004 9:33 am

The legend rendering is incorrect with check boxes enabled for the legend and quite a few series on the chart.

I added 8 fastline series to a chart, which has a width of 700px.

The 7th series name displayed in the legend overruns the legend boundery on the right as well as the legend being to far left, starting at a negative position.

Is this a known problem? What can I do to overcome this?

Regards
Wiaan
Don

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 15, 2004 10:50 am

Hi Wiaan,

are you using the latest build available ?
I've tried here and it works fine. Could you please post the code you're using to reproduce the problem ?

wiaanv
Newbie
Newbie
Posts: 7
Joined: Wed Jan 10, 2001 5:00 am
Location: Cape Town, RSA
Contact:

Incorrect rendering of legend (check boxes enabled)

Post by wiaanv » Thu Jul 15, 2004 1:11 pm

:lol: Did I forget to mention that it is positioned "Top"?

this.tChart2 = new Steema.TeeChart.TChart();
this.fastLine1 = new Steema.TeeChart.Styles.FastLine();
this.fastLine2 = new Steema.TeeChart.Styles.FastLine();
this.fastLine3 = new Steema.TeeChart.Styles.FastLine();
this.fastLine4 = new Steema.TeeChart.Styles.FastLine();
this.fastLine5 = new Steema.TeeChart.Styles.FastLine();
this.fastLine6 = new Steema.TeeChart.Styles.FastLine();
this.fastLine7 = new Steema.TeeChart.Styles.FastLine();
this.fastLine8 = new Steema.TeeChart.Styles.FastLine();
this.fastLine9 = new Steema.TeeChart.Styles.FastLine();
this.fastLine10 = new Steema.TeeChart.Styles.FastLine();

this.tChart2.Legend.Alignment = steema.TeeChart.LegendAlignments.Top;
this.tChart2.Legend.CheckBoxes = true;
this.tChart2.Name = "tChart2";
this.tChart2.Series.Add(this.fastLine1);
this.tChart2.Series.Add(this.fastLine2);
this.tChart2.Series.Add(this.fastLine3);
this.tChart2.Series.Add(this.fastLine4);
this.tChart2.Series.Add(this.fastLine5);
this.tChart2.Series.Add(this.fastLine6);
this.tChart2.Series.Add(this.fastLine7);
this.tChart2.Series.Add(this.fastLine8);
this.tChart2.Series.Add(this.fastLine9);
this.tChart2.Series.Add(this.fastLine10);
this.tChart2.Size = new System.Drawing.Size(700, 350);

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 15, 2004 5:01 pm

Hi Wiaan,

in that case, yes, you're correct, it's a known bug. It's already added on our deffect list and a fix for it will be considered to inclusion for the next maintenance releases.

Post Reply