Profile Picture

How to avoid Overlapping x axis value in Bar chart

Posted By shweta jain Last Year
Author
Message
shweta jain
Problem Posted Last Year
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: Last Year
Posts: 14, Visits: 185
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 Last Year
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,945, Visits: 3,303
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