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
ColorLine and CustomAxis
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: ColorLine and CustomAxis
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.
Does this work fine for you?
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;
}
Best Regards,
Narcís Calvet / 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 |