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. Image for the cookie policy date
close icon

Setting Range of Date Time Axis

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? 

3 Replies

AB Akbar Basha K M Syncfusion Team 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


JB Josh Bowen 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


AB Akbar Basha K M Syncfusion Team 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.


Loader.
Up arrow icon