DrawLine disappearing on zoom
Posted: Wed May 20, 2009 9:04 am
Hey,
I've got a DrawLine tool on my chart whereby i'm manually giving it coordinates to draw with.
Trouble is, when I zoom in, it disappears.
Can you reproduce??
Zoom in on a portion of the line, then zoom in on a portion of the line again, and if you keep going to an extent it should just disappear.
Using latest 3.5 tchart.
Regards,
Chris.
I've got a DrawLine tool on my chart whereby i'm manually giving it coordinates to draw with.
Trouble is, when I zoom in, it disappears.
Can you reproduce??
Code: Select all
public Form1()
{
InitializeComponent();
Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line.FillSampleValues(1000);
this.tChart1.Aspect.View3D = false;
tChart1.Draw();
DrawLine drawLine = new DrawLine(tChart1.Chart)
{
EnableDraw = false,
EnableSelect = false,
Active = true
};
DrawLineItem drawLineItem = new DrawLineItem(drawLine)
{
Pen =
{
Color = Color.Black,
Visible = true
}
};
drawLineItem.StartPos = new Steema.TeeChart.Drawing.PointDouble(tChart1.Axes.Bottom.Minimum, tChart1.Axes.Left.Minimum);
drawLineItem.EndPos = new Steema.TeeChart.Drawing.PointDouble(tChart1.Axes.Bottom.Maximum, tChart1.Axes.Left.Maximum);
}
Using latest 3.5 tchart.
Regards,
Chris.