2D-Bar/Line-Chart problem

TeeChart for ActiveX, COM and ASP
Post Reply
DH
Newbie
Newbie
Posts: 2
Joined: Tue Aug 17, 2004 4:00 am
Location: Germany
Contact:

2D-Bar/Line-Chart problem

Post by DH » Fri Dec 17, 2004 9:31 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Dec 17, 2004 11:41 am

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
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply