ColorLine and CustomAxis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

ColorLine and CustomAxis

Post by acastro » Mon Jun 16, 2014 10:22 am

If I set the color line from charteditor to "Custom0" it is not shown.
http://193.145.251.126/pnp/files/oDNCUx ... omaxis.ten

Programatically I set in this way:
max.Axis = chart.Series[numSerie].CustomVertAxis;

Is this right?

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: ColorLine and CustomAxis

Post by Narcís » Mon Jun 16, 2014 11:02 am

Hi wakeup,

Yes, that looks fine to me. However, loading your .ten file I see that both ColorLine tools are not active nor associated to any series. Adding the code below after loading the .ten file I can see the ColorLine tools.

Code: Select all

      foreach (Steema.TeeChart.Tools.Tool t in tChart1.Tools)
      {
        t.Active = true;

        //both lines below work fine and are equivalent
        //((Steema.TeeChart.Tools.ToolAxis)t).Axis = tChart1.Axes.Custom[0];
        ((Steema.TeeChart.Tools.ToolAxis)t).Axis = tChart1[0].CustomVertAxis;
      }
Does this work fine for you?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply