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.
Unfortunately, activation email could not send to your email. Please try again.

Bar Chart not displaying all labels

Thread ID:

Created:

Updated:

Platform:

Replies:

102507 Feb 3,2012 11:47 AM Feb 9,2012 04:40 AM WPF 1
loading
Tags: Chart
James
Asked On February 3, 2012 11:47 AM

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

Baskaran S [Syncfusion]
Replied On February 9, 2012 04:40 AM

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

CONFIRMATION

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.

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.

;