Dual Axis Chart


Author
Message
John Burcher
John Burcher
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
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!
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
John Burcher
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
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
Blagovest Milanov
Blagovest Milanov
Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)Supreme Being (148 reputation)
Group: Forum Members
Posts: 154, Visits: 15

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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search