Profile Picture

Dual Axis Chart

Posted By John Burcher 15 Years Ago
Author
Message
bob milanov
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

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



John Burcher
Posted 15 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 15, Visits: 1
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

Nevron Support
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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

Best Regards,
Nevron Support Team



John Burcher
pinch Posted 15 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 15, Visits: 1
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!



Similar Topics


Reading This Topic