Page 1 of 1

Non-draggable color line still visible outside of chart area

Posted: Fri Jul 04, 2014 10:45 am
by 15669377
Hi,

I want to add a non-draggable vertical color line to my scrollable chart.
This works, however when scrolling the chart, the color line is still visible outside of the actual chart area, which means that it could for example mess up the readability of the chart legend.
I noticed that when I make the color line draggable (as it is by default), the color line disappears when it is outside of the actual chart area, as it should.
To illustrate the issue, I created following code sample. The resulting chart images before and after scrolling are attached.

Code: Select all

private void InitializeChart()
    {
      Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
      line.Add(0);
      line.Add(1);
      line.Add(2);
      line.Add(3);
      line.Add(4);
      Steema.TeeChart.Tools.ColorLine colorLine = new Steema.TeeChart.Tools.ColorLine();
      colorLine.Axis = tChart1.Chart.Axes.Bottom;
      colorLine.AllowDrag = false;                 // !!! Comment this line and the issue disappears !!!
      colorLine.Value = 3;
      tChart1.Tools.Add(colorLine);
    }
Is there something I can do to make this non-draggable color line disappear outside of the actual chart area, or is this a bug which should be fixed on your side?

Thanks,
Steven

Re: Non-draggable color line still visible outside of chart area

Posted: Fri Jul 04, 2014 3:07 pm
by Christopher
Steven,
OM Partners wrote:Is there something I can do to make this non-draggable color line disappear outside of the actual chart area, or is this a bug which should be fixed on your side?
Which version of TeeChart.NET are you using?

Using the latest version 4.1.2014.5090 I can't reproduce this issue here.

Re: Non-draggable color line still visible outside of chart area

Posted: Fri Jul 18, 2014 1:33 pm
by 15669377
Christopher,

Thank you for your reply.
We are currently using version 4.1.2012.5103 of TeeChart.NET, so the mentioned issue might be fixed in newer versions.
I will discuss with our TeeChart responsible to see whether we can move to a newer version soon, and let you know if the mentioned issue still occurs then.

Steven