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

How to not show the date so often

Thread ID:

Created:

Updated:

Platform:

Replies:

126199 Sep 29,2016 10:21 PM UTC Oct 1,2016 08:37 AM UTC ASP.NET MVC 1
loading
Tags: Chart
Daniel Snyder
Asked On September 29, 2016 10:21 PM UTC

I have a custom stock market indicator in a database table, with values for every five minutes for many months.  I would like to chart this data, but not have the date and the time displayed on every single point, because it becomes a mess, but just display the datetime a lessor number of times, so that they aren't writing over the top of each other, etc.


Dharanidharan Dharmasivam [Syncfusion]
Replied On October 1, 2016 08:37 AM UTC

Hi Daniel, 

Thanks for using Syncfusion product. 
We have analyzed your query. Since you have values for every five minutes for many months, you can use IntervalType as Months and also when the labels are overlapped, you can use LabelIntersectAction property. We have prepared sample with respect to your requirement. In the sample we have set Trim to LabelIntersectAction property, so that when the labels are overlapped, the labels will get trimmed. Kindly find the code snippet below, 
 
Code snippet: 
Code snippet: 
 
//... 
.PrimaryXAxis(pr => pr .IntervalType(ChartIntervalType.Months) 
.LabelIntersectAction(LabelIntersectAction.Trim)) 
//... 
 
 
Screenshot: 
 

For your reference we have attached the sample. Kindly find the sample from below link, 
For more details on LabelIntersectAction property, follow the link below, 
 
Also the labels can be rotated by using labelRotation property. More details on labelRotation property can be found from following link, 

Thanks, 
Dharani. 


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

;