Hi,
I want to use the ChartFx multiple panes features to display 3 to 6 charts in a single ChartFx Control.
I am using VB6. I followed the sample code, but it never worked. Here is the sample:
Dim series0 As Object
Set series0 = Chart1.Series(0)
series0.Gallery = Gallery_Lines
series0.LineWidth = 2
series0.MarkerShape = MarkerShape_None
series0.YAxis = YAxis_Main
Chart1.AxisY.Pane = 0
Dim series1 As Object
Set series1 = Chart1.Series(1)
series1.Gallery = Gallery_Lines
series1.Border = True
series1.YAxis = YAxis_Secondary
Chart1.AxisY.Pane = 1
' First Pane
Dim pane1 As Object
Set pane1 = Chart1.Panes(0)
pane1.Proportion = 15
pane1.Title.Text = "Price"
'Second Pane
Dim pane2 As Object
Set pane2 = Chart1.Panes(1)
pane2.Proportion = 8
pane2.Title.Text = "Volume (in Millions)"
'Third Pane
Dim pane3 As Object
Set pane3 = Chart1.Panes(2)
pane3.Proportion = 10
pane3.Title.Text = "Height (in Millions)"
Chart1.AxisX.LabelsFormat.Format = AxisFormat_Date
' Add data
With Chart1
' First chart
.Value(0, 0) = 103
.Value(0, 1) = 1045
.Value(0, 2) = 1030
' Second chart
.Value(1, 0) = 10030
.Value(1, 1) = 10015
.Value(1, 2) = 10021
' Third chart
.Value(2, 0) = 130
.Value(2, 1) = 115
.Value(2, 2) = 121
End With
I found that the second and thrid series were displayed in the second chart, while the third chart didn't display anything.
Could you please give me some suggestions what I did wrong?
Do you have any similar example?
Thank you