Nevron Forum

Dual Axis Chart

https://www.nevron.com/Forum/Topic2478.aspx

By John Burcher 1 - Friday, July 10, 2009

Hi,

I have been looking through your gallery but I wasn't able to find an example of a dual axis bar chart. Could you please point me in the right direction?

Thank you!
By Nevron Support - Friday, July 10, 2009

Hi John,

 

Nevron Chart for .NET provides support for unlimited number of X and Y axes and additionally allows you to customize a variety of options to get the desired result for your charts.

 

You can take a look at the following examples:

 

All Examples >> Axes >> General >> Docking

All Examples >> Axes >> General >> Ruler Size

All Examples >> Chart Gallery >> Bar >> Cluster Bar

Also available with the online examples: http://examplesaspnetchart.nevron.com/

 

You can read the white paper “Working with Chart Multiple Axes – Nevron Chart Axis Docking” here: http://www.nevron.com/Products.ChartFor.NET.WhitePaperAxisDocking.aspx

 

Hope this helps – questions or comments, please feel free.

 

Nevron Support Team
By John Burcher 1 - Sunday, July 12, 2009

Hi,

That is perfect, thank you. Worked a treat.

I have now changed the axis to be a % with the following code:-
Dim NStandardScaleConfigurator As NStandardScaleConfigurator = TryCast(RightAxis.ScaleConfigurator, NStandardScaleConfigurator)
NStandardScaleConfigurator.LabelValueFormatter = New Dom.NNumericValueFormatter(Format:=NumericValueFormat.Percentage)

This works, except that it forces the axis labels to 2 decimal places. How do I get rid of the decimal places, so that it still shows the % based axis?

Thank you
By Blagovest Milanov 1 - Monday, July 13, 2009

Hi John,

You can pass a custom format string to the NNumericValueFormatter constructor - for example:
linearScale.LabelValueFormatter = new NNumericValueFormatter("P0");
will use the current system culture settings for percentage formatting with zero decimal precision.

Let me know if you meet any problems.

Best regards,
Bob