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.
Syncfusion Feedback

Query: Set number of displayed legend entries in a Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

121056 Nov 6,2015 12:33 PM UTC Nov 9,2015 12:25 PM UTC ASP.NET MVC 1
loading
Tags: Chart
Robert David
Asked On November 6, 2015 12:33 PM UTC

Hi We're having issues with the number of displayed x axis legend entries. What we are trying to get it a consistent number of evenly spaced x axis labels for multiple different charts (enough data points to produce them).

As an example in the playground if I set maximumLabels to 2, we get an inconsistent number of legend entries.

http://jsplayground.syncfusion.com/c0qdxchs

Is there a way of setting total number of legend entries for a chart?
If not can we make that feature request?




Deepaa Pragaasam [Syncfusion]
Replied On November 9, 2015 12:25 PM UTC

Hi Robert,

 Thanks for contacting Syncfusion Support.

  We have analysed your query.

The MaximumLabels property determines the number of labels displayed per 100 pixels when the range is not set.

To know more about the maximum labels property please refer the below link
http://help.syncfusion.com/js/chart/axis#maximum-number-of-labels-per-100-pixels


If the Range is set, then all the data within the particular range is displayed.

Please refer the below link to know more about the range in datetime axis

http://help.syncfusion.com/js/chart/axis#customizing-date-time-range

If all the labels need to be displayed then the label intersect action can be set as Multiple Rows

http://help.syncfusion.com/js/api/ejchart#members:primaryxaxis-labelintersectaction


To know more about the label intersect action please refer the below sample:

http://js.syncfusion.com/demos/web/#!/azure/chart/chartaxes/smartaxislabels


When the label Format for the xAxis labels is changed then more labels will be visible

We have modified the sample containing the label intersect action property.

JSPlaygroundSampleLink : http://jsplayground.syncfusion.com/hkch4g11




We would also like to know if the highlighted part is what you have specified as legends.

If not kindly revert back us to specifying your requirement

Please let us know if you have any concerns

Regards,

Deepaa.


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.

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

;