Non-draggable color line still visible outside of chart area

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
OM Partners
Newbie
Newbie
Posts: 8
Joined: Mon Jun 02, 2014 12:00 am

Non-draggable color line still visible outside of chart area

Post by OM Partners » Fri Jul 04, 2014 10:45 am

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
Attachments
chart color line.jpg
color line before/after scrolling
chart color line.jpg (93.05 KiB) Viewed 5395 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

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

Post by Christopher » Fri Jul 04, 2014 3:07 pm

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.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

OM Partners
Newbie
Newbie
Posts: 8
Joined: Mon Jun 02, 2014 12:00 am

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

Post by OM Partners » Fri Jul 18, 2014 1:33 pm

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

Post Reply