Legend Text is incorrect

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
wilcohsu
Newbie
Newbie
Posts: 40
Joined: Mon Dec 18, 2006 12:00 am

Legend Text is incorrect

Post by wilcohsu » Mon Feb 19, 2007 2:34 am

Dear all,

Legend Text is not the same with Series Title of Chart Edit.
I suspect the legend text is incorrect.

below is sample code:
private string sLongStr = "-ABCDEFGHIJKLMNOPQRSTUVWXYZ";
public Form1()
{
InitializeComponent();
this.tChart1.Aspect.View3D = false;
this.tChart1.Header.Text = "Scatter Plot Example";
this.tChart1.Axes.Left.SetMinMax(0, 100);
this.tChart1.Axes.Bottom.SetMinMax(0, 60);
this.tChart1.Axes.Left.Title.Text = "Temprature";
this.tChart1.Axes.Bottom.Title.Text = "Time";
this.tChart1.Legend.CheckBoxes = true;


double[] yData1 = { 60, 70, 66 };
double[] yData3 = { 55, 22.1, 1.9 };
double[] xData1 = { 10, 30, 50 };

Steema.TeeChart.Styles.Points point1= new Steema.TeeChart.Styles.Points();
point1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;

point1.Title = "EQ1" + sLongStr;
point1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
point1.Pointer.Color = Color.Green;
for (int i = 0; i < 3; ++i)
{
point1.Add(xData1, yData1);
}

this.tChart1.Series.Add(point1);

for (int i = 0; i < 10; ++i)
{
Steema.TeeChart.Styles.Points pointN = new Steema.TeeChart.Styles.Points();
pointN.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right;

int total = i + 3;
pointN.Title = "EQ" + total + sLongStr;
pointN.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Diamond;
pointN.Pointer.Color = Color.Red;
pointN.FillSampleValues();

this.tChart1.Series.Add(pointN);
}




Best Regards!!

TeeChart 2.0.2546.16099/2.0.2586.24039

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon Feb 19, 2007 9:29 am

Hi Wilcohsu

We have created an example eject with your code, and we haven't seen any problem. Could you please give us more information about the problem?

Thanks in advance
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

wilcohsu
Newbie
Newbie
Posts: 40
Joined: Mon Dec 18, 2006 12:00 am

Post by wilcohsu » Mon Feb 26, 2007 12:29 am

Hi Edu,

Sample is same as LegendScrollBarTest.zip.
You can see "EQ1-ABCDEFGHIJKLMNOPQRSTUVWXYZ" of Legend Text,
it's not "EQ3-ABCDEFGHIJKLMNOPQRSTUVWXYZ".


Best Regards!!

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon Feb 26, 2007 9:15 am

Hi Wilcohsu

I could reproduce the issue here and this seems to be a bug, when the legend is below the Chart. I've added it (TF02012091) to our defect list to be fixed for future releases.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

wilcohsu
Newbie
Newbie
Posts: 40
Joined: Mon Dec 18, 2006 12:00 am

Post by wilcohsu » Sat Apr 07, 2007 3:09 am

Hi,

This bug is not fixed by version 2.0.2652.22324/5.
It's terrible for us.
Could you release in next version,Thanks.

Best Regards!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Apr 10, 2007 7:40 am

Hi wilcohsu,

No, it hasn't been fixed yet. I've increased its priority on the bug-list to be fixed ASAP.

Please be aware at this forum for new release announcements and what's being fixed/implemented on them.

Thanks in advance.
Best Regards,
Narcís Calvet / 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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri May 25, 2007 8:20 am

Hi Wilcohsu

We have investigated the issue and it isn't a bug, the issue here is with Legend.MaxNumRows which is 10 by default, therefore, if there are more than 10 series in a chart and the legend is reduced to one column some series will be lost. Solution .. set MaxNumRows to Series.Count by code.

Code: Select all

tChart1.Legend.MaxNumRows = tChart1.Series.Count;
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply