Legend Text is incorrect
Posted: 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
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