Assign Custom Axis
Posted: Thu Apr 12, 2012 3:46 pm
I am trying to reassign Series Vertical axis from Left to Custom and back in code using C# and cannot seem to get the correct syntax. I have tried this:
Series1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
Series2.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
AND this:
Series1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
Series2.VertAxis = Steema.TeeChart.CustomAxes[0];
getting Errors saying:
Cannot implicitly convert type Steema.TeeChart.Axis to Steema.TeeChart.Styles.VerticalAxis
and
Steema.TeeChart.CustomAxes is a tpe which is not valid in the given context.
The custom axis and series are all set uo in the Chart Editor and work fine.
thanks
Series1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
Series2.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
AND this:
Series1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
Series2.VertAxis = Steema.TeeChart.CustomAxes[0];
getting Errors saying:
Cannot implicitly convert type Steema.TeeChart.Axis to Steema.TeeChart.Styles.VerticalAxis
and
Steema.TeeChart.CustomAxes is a tpe which is not valid in the given context.
The custom axis and series are all set uo in the Chart Editor and work fine.
thanks