0 values not shown in line series
Posted: Wed Aug 20, 2008 11:42 am
Hi all,
The following code does not display the first point on my PC when the Y value of this point is 0.0, but does so when the value is 0.00001. On the PC of my co-worker it does. Both using VS 2005 and TeeChart 3.5. Any ideas?
André Hendriks
Deltares
The following code does not display the first point on my PC when the Y value of this point is 0.0, but does so when the value is 0.00001. On the PC of my co-worker it does. Both using VS 2005 and TeeChart 3.5. Any ideas?
André Hendriks
Deltares
Code: Select all
public Form1()
{
InitializeComponent();
double?[] X = new double?[] { 0.0, 1.0, 3.0 };
//double?[] Y = new double?[] { 0.000001, 1.0, 1.0 };
double?[] Y = new double?[] { 0.0, 1.0, 1.0 };
TChart c = new TChart();
c.Dock = DockStyle.Fill;
c.Aspect.View3D = false;
c.Axes.Left.Automatic = false;
c.Axes.Left.SetMinMax(-0.1, 1.1);
c.Axes.Bottom.Automatic = false;
c.Axes.Bottom.SetMinMax(-0.5, 3.5);
Steema.TeeChart.Styles.Line l = new Steema.TeeChart.Styles.Line(c.Chart);
l.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
l.Pointer.HorizSize = l.Pointer.VertSize = 3;
l.Pointer.Visible = true;
l.Add(X, Y);
this.Controls.Add(c);
}