Increment issue.
Posted: Tue Apr 19, 2011 6:31 am
Dear Support team,
I have a question about Teechart Increment. I just want to display 2 labels at Min and Max. So I code as below:
//Line 1
for (int i = 0; i < 300; i++ )
{
this.line1.Add(i % 100);
}
this.tChart1.Axes.Bottom.Visible = true;
this.tChart1.Axes.Left.Visible = true;
this.tChart1.Axes.Left.Automatic = false;
this.tChart1.Axes.Left.Minimum = 0;
this.tChart1.Axes.Left.Maximum = 100;
this.tChart1.Axes.Left.Increment = this.tChart1.Axes.Left.Maximum - this.tChart1.Axes.Left.Minimum;
//Line 2
for (int i = 0; i < 300; i++)
{
if(i>100)
this.line2.Add(-i % 100);
else
this.line2.Add(i % 100);
}
this.tChart2.Axes.Bottom.Visible = true;
this.tChart2.Axes.Left.Visible = true;
this.tChart2.Axes.Left.Automatic = false;
this.tChart2.Axes.Left.Minimum = -100;
this.tChart2.Axes.Left.Maximum = 100;
this.tChart2.Axes.Left.Increment = this.tChart2.Axes.Left.Maximum - this.tChart2.Axes.Left.Minimum;
And the result is
Could you please let me know where where are lables of Min and Max in second chart?
Why does not it display Min label and Max label like chart1?
Thank you very much!
I have a question about Teechart Increment. I just want to display 2 labels at Min and Max. So I code as below:
//Line 1
for (int i = 0; i < 300; i++ )
{
this.line1.Add(i % 100);
}
this.tChart1.Axes.Bottom.Visible = true;
this.tChart1.Axes.Left.Visible = true;
this.tChart1.Axes.Left.Automatic = false;
this.tChart1.Axes.Left.Minimum = 0;
this.tChart1.Axes.Left.Maximum = 100;
this.tChart1.Axes.Left.Increment = this.tChart1.Axes.Left.Maximum - this.tChart1.Axes.Left.Minimum;
//Line 2
for (int i = 0; i < 300; i++)
{
if(i>100)
this.line2.Add(-i % 100);
else
this.line2.Add(i % 100);
}
this.tChart2.Axes.Bottom.Visible = true;
this.tChart2.Axes.Left.Visible = true;
this.tChart2.Axes.Left.Automatic = false;
this.tChart2.Axes.Left.Minimum = -100;
this.tChart2.Axes.Left.Maximum = 100;
this.tChart2.Axes.Left.Increment = this.tChart2.Axes.Left.Maximum - this.tChart2.Axes.Left.Minimum;
And the result is
Could you please let me know where where are lables of Min and Max in second chart?
Why does not it display Min label and Max label like chart1?
Thank you very much!