Dragging a color line has trailing line.
Posted: Tue Jun 16, 2009 8:58 pm
Hi There,
How to achieve smooth dragging of color line?
Using the below code a trailing line is visible on dragging the color line, that is undesirable.
Best Regards
Srinivas Avancha
How to achieve smooth dragging of color line?
Using the below code a trailing line is visible on dragging the color line, that is undesirable.
Best Regards
Srinivas Avancha
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
Steema.TeeChart.TChart tChart1 = new Steema.TeeChart.TChart();
this.Controls.Add(tChart1);
tChart1.Dock = DockStyle.Fill;
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.FillSampleValues(2);
line1.LinePen.Width = 3;
Steema.TeeChart.Tools.ColorLine colorLine = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);
colorLine.Active = true;
colorLine.Axis = tChart1.Axes.Left;
colorLine.Pen.Color = Color.Black;
colorLine.Pen.Width = 2;
colorLine.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
colorLine.Value = (tChart1.Axes.Left.MaxYValue - tChart1.Axes.Left.MinYValue) / 2 + tChart1.Axes.Left.MinYValue;
}