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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bar Chart not displaying all labels

Thread ID:





102507 Feb 3,2012 04:47 PM UTC Feb 9,2012 09:40 AM UTC WPF 1
Tags: Chart
Asked On February 3, 2012 04:47 PM UTC

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.



Baskaran S [Syncfusion]
Replied On 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:

LabelsSource="{Binding Products}" />

Baskaran S



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon