We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Bar Chart not displaying all labels

Hey everybody.

I was just trying to create a bar chart and I am coming across this problem. I slightly modified the Bar Chart Demo. One of the changes was that I increased the number of entries in the AnnualGrowthModel. This caused some of the labels to not display. I have attached an image that clearly illustrates what I mean. Is there something that I need to set or is it a bug that needs to be addressed.

Any help is appreciated. Thanks.

James



V_Bar_chart_cb3b1036.zip

1 Reply

BS Baskaran S Syncfusion Team February 9, 2012 09:40 AM UTC

Hi James,

Thanks for your interest in our product.

In the chart axis we have a property named DesiredIntervalCount which has default value of 6. The interval of the axis is calculated by the below formula.

Interval = Label count/Desired Interval Count.

The Bar Chart Sample has 7 data entries before. So the interval is set to 1.
You have increased the data entries to 14. Now the interval is set to 2 as per the formula above I mentioned.
You can make all the labels visible by setting the interval to 1 explicitly in the axis

Code Snippet:


Header="Year"
RangePadding="None"
Interval="1"
LabelFontSize="11"
PositionPath="ProdId"
ContentPath="Prodname"
LabelsSource="{Binding Products}" />



Regards,
Baskaran S



F102507_188572bd.zip

Loader.
Live Chat Icon For mobile
Up arrow icon