Page 1 of 1

ColorLine and CustomAxis

Posted: Mon Jun 16, 2014 10:22 am
by 15654539
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

Re: ColorLine and CustomAxis

Posted: Mon Jun 16, 2014 11:02 am
by narcis
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?