Profile Picture

How to avoid Overlapping x axis value in Bar chart

Posted By shweta jain 4 Years Ago
Author
Message
shweta jain
Problem Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hello,
I am using Bar chart in which x- axis value is overlapping with each other.
I am setting x - axis value using setting Labels on scale like below lines of code.
I want to reduce ticks to readable x- axis value and avoid overlapping.
How can I autoscale labels on scale? 
Is any other way to set x-axis value in bar chart which provide autoscaling?
NStandardScaleConfigurator scale = (NStandardScaleConfigurator)this._cartesianChart.Axis(StandardAxis.PrimaryX).ScaleConfigurator;
scale.AutoLabels = false;
scale.Labels.Add("0");
scale.Labels.Add("4");
scale.Labels.Add("8");

Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Shweta,

You can take a look at the following topic in the documentation:

http://helpdotnetvision.nevron.com/#UsersGuide_Axes_Scale_Scale_Labels.html
The "Label Layout Fit Modes" section talks about the different options you have to configure the label fit modes. You can also take a look at the All Examples\Axes\General\Axis labels example on how to apply different label non-overlapping settings. In this case, you probably need stagger and auto-scale label fit modes. You can also consider using label formatting with limited decimal precision to avoid excessively large labels.
We hope this helps – let us know if you have any questions or meet any problems.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic