Page 1 of 1

2D-Bar/Line-Chart problem

Posted: Fri Dec 17, 2004 9:31 am
by 9523602
Hi,

I have the following problem using Teechart Pro v7.

My goal is to create a chart containing a bar and a line so that the line will be placed on the bar. Furthermore I want to adjust the line chart to the left axis and the bar chart to the right axis (Serieslist first entry is the bar series, second one the line series). Both series should be shown in the legend.

Now my problem: How can I manipulate the legend so that the first legend entry will be the one of the line series (incl. the symbol) and the second will be the one of the bar series (incl. the symbol) ?

Regards and thanx in advance
Dirk

Posted: Fri Dec 17, 2004 11:41 am
by narcis
Hi Dirk,
I want to adjust the line chart to the left axis and the bar chart to the right axis
This can be done using:

Code: Select all

TChart1.Series(0).VerticalAxis = aLeftAxis
TChart1.Series(1).VerticalAxis = aRightAxis
Now my problem: How can I manipulate the legend so that the first legend entry will be the one of the line series (incl. the symbol) and the second will be the one of the bar series (incl. the symbol) ?
This can be easily done using:

Code: Select all

TChart1.Legend.Inverted = True