Does anyone knew how to show secondary value axis


S

Steven

Does anyone knew how to show secondary value axis?
I have two series which meaning different.
However, I only can show value axis for this chart(default).
But, I want to show secondary value axis for second series.

Does anyone knew how to do? Thanks a lot.

Development Environment:
Environment: VS .Net 2003
Language : ASP.Net (VB)
Component : OWC11
Chart type ¡GLine


My Code as below.


'-------------------------------------------------------Data----------------
---------------------------------------
Dim MyTitle As String
MyTitle = "Income And Profit Margin"

Dim MyMonth() = {"Jan", "Feb", "Mar", "Apr", "May", "Jun"}
'Dim MyIncome() = {"2,456,322", "2,032,233", "1,889,883",
"2,450,908", "2,879,343", "2,183,434"}
Dim MyIncome() = {2456322, 2032233, 1889883, 2450908, 2879343,
2183434}
Dim MyMargin() = {12.5, 11.3, 10.2, 14.5, 14.3, 15.1}


'-------------------------------------------------------Data----------------
---------------------------------------
Dim Chartspace1 As New ChartSpace
Chartspace1.Clear()

Chartspace1.HasChartSpaceTitle = True
Chartspace1.ChartSpaceTitle.Caption = MyTitle

Chartspace1.ChartSpaceTitle.Font.Bold = True


Dim objChart0
objChart0 = Chartspace1.Charts.Add

Chartspace1.Charts(0).Type = ChartChartTypeEnum.chChartTypeLine

'--------First Line Chart--------
With Chartspace1.Charts(0).SeriesCollection.Add
'.SetData(ChartDimensionsEnum.chDimSeriesNames,
ChartSpecialDataSourcesEnum.chDataLiteral, "Y")
.SetData(ChartDimensionsEnum.chDimCategories,
ChartSpecialDataSourcesEnum.chDataLiteral, MyMonth)
.SetData(ChartDimensionsEnum.chDimValues,
ChartSpecialDataSourcesEnum.chDataLiteral, MyIncome)
End With

'--------Second Line Chart--------
With Chartspace1.Charts(0).SeriesCollection.Add
.SetData(ChartDimensionsEnum.chDimValues,
ChartSpecialDataSourcesEnum.chDataLiteral, MyMargin)
End With
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top