Nitin Vijay
Nitin Vijay

Reputation: 1422

Does any way to show Line chart on Y2 Axis in MS Chart?

I would like to use Multiple Y-Axis in Line chart of MS-Charts.

I have multiple series in Line chart. Now, I want to show some of these series on Y-Axis and others on Y2-Axis.

can anyone advise how can I implement this ?

Upvotes: 2

Views: 1720

Answers (2)

Nitin Vijay
Nitin Vijay

Reputation: 1422

I got the answer myself.

there are two Axis Types are available. For Y2 Axis We have to use Following line of code.

 series.YAxisType = AxisType.Secondary;

Upvotes: 5

Mayur Dhingra
Mayur Dhingra

Reputation: 1577

Microsoft has a good library for creating charts.

System.Windows.Forms.DataVisualization.Charting

Try this link. http://www.codeproject.com/Articles/168056/Windows-Charting-Application

Upvotes: 2

Related Questions