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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting Range of Date Time Axis

Thread ID:

Created:

Updated:

Platform:

Replies:

117416 Oct 16,2014 04:44 PM UTC Oct 20,2014 01:11 PM UTC JavaScript 3
loading
Tags: ejChart
Josh Bowen
Asked On October 16, 2014 04:44 PM UTC

It is possible to set the range of a datetime axis explicitly?  The following example uses the range property to set the range of a numeric axis. 
http://js.syncfusion.com/demos/web/#!/azure/chart/ChartCustomization/LegendPosition

The range property used is not present in the documentation at
http://help.syncfusion.com/UG/JS_CR/ejChart.html#primaryYAxis

What are the options for the range property and can it be used with a datetime axis? 

Akbar Basha K M [Syncfusion]
Replied On October 17, 2014 06:59 AM UTC

Hi Josh ,

Thanks for using syncfusion product. We have analyzed your requirement.

We like to inform you that,

Query #1: It is possible to set the range of a datetime axis explicitly? 

Response : You can achieve this requirement using range property as follows,

Code sippet[JS]:

range: { min: new Date(2000, 6, 1), max: new Date(2010, 6, 1), interval: 1 },

Note : we can set the range of dateTimeAxis in both Axis

Query #2: The range property used is not present in the documentation at

Response: We will be adding those properties in online documentation soon,

Can you please refer the following UG document,

http://help.syncfusion.com/web

Please select chart it will be more helpful to create a chart and chart functionalities.

If you want to know more details about Axis,

Please select Chart-Concept and Features-Axis

Query #3: What are the options for the range property and can it be used with a datetime axis?

Response : We have following options for range property,

min – minimum value of the axis

max – maximum value of the axis

interval – set the interval of axis Range  

DateTime:

The DateTime Axis has a property IntervalType that sets the DateTime interval to one of the following:

•Days

•Hours

•Milliseconds

•Minutes

•Months

•Seconds

•Years

The Interval property of DateTime Axis can be any double value based on the IntervalType.

We have prepared a sample based on datetime axis please find the attached sample.

Please let us know if you have any concern.

Regards,

Akbar Basha KM.


Attachment: datetime_6ef6fe2c.zip

Josh Bowen
Replied On October 17, 2014 12:47 PM UTC

Thank you for your reply.  

I tried this in my code and found that the series must contain data points for setting the range explicitly to work.  This seems to be a bug.  If you were loading data asynchronously you would want to set the axis range explicitly to configure the chart while the data loads.  The attached file demonstrates the situation. 
 

Attachment: StaticRangeEmptySeries_1ba9e8d.zip

Akbar Basha K M [Syncfusion]
Replied On October 20, 2014 01:11 PM UTC

Hi Josh,

Thanks for your update,

We have confirmed this as a bug and we could noticed that the support incident to track the status of this bug has been created by you under your account.

Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,

Akbar Basha KM.


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

;