Page 1 of 1

tChart - Multi axis separation

Posted: Fri Oct 05, 2007 8:31 am
by 8125790
Dear all,

I have a tChart with several series of bars. Each of them are displayed on its own axis, everything works fine.

But these bars seem to be displayed "in the air". I would like to put a black bar at the bottom of each axis to seperate series.

I know that's it's working with another tChart with Lines series we have in our application.

What can I do ?

Thank you very much

Damien

Posted: Fri Oct 05, 2007 8:38 am
by narcis
Hi Damien,

You could use either custom horizontal axes for each series or ColorLine tools. You'll find more information about both features in the features demo available at TeeChart's program group.

Hope this helps!

Posted: Fri Oct 05, 2007 9:36 am
by 8125790
Hi Narcìs,

According to the Help file, I've tried something like that:

Steema.TeeChart.Axis ax;
tChartHisto.Axes.Custom.Add(ax = new Steema.TeeChart.Axis());
ax.Horizontal = true;
ax.RelativePosition = axisPower.StartPosition;
tChartHisto.Series[0].HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Custom;
tChartHisto.Series[0].CustomHorizAxis = ax;
ax.AxisPen.Color = Color.Black;
ax.AxisPen.Width = 2;

...but it's not working.

Could you help me ?

Thanks.

Damien

Posted: Fri Oct 05, 2007 9:54 am
by narcis
Hi Damien,

Try removing this line:

Code: Select all

tChartHisto.Series[0].HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Custom; 
If this doesn't help please send us a simple example project we can run "as-is" to reproduce the problem here.

You can either post your files at news://www.steema.net/steema.public.attachments newgroup or at our upload page.

Thanks in advance!

Posted: Fri Oct 05, 2007 10:02 am
by 8125790
Muchas gracias, Narcís !

It's now working very well. 8)
Appreciate your prompt help.

Damien

Posted: Fri Oct 05, 2007 10:22 am
by narcis
Hi Damien

You're very welcome! I'm glad to hear that helped ;).