This is a migrated thread and some comments may be shown as answers.

RadHTMLChart with past 8 hours of data

1 Answer 56 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Satish
Top achievements
Rank 1
Satish asked on 04 Dec 2014, 09:38 AM
Hi,

I get the datasource data as date time and I want to display the x-axis data for past 8 hours. But the data is there only for 1hour. How can I set the MinValue and MaxValue so that I see all the 8 hours in x-axis but see data only in the particular hours and gaps for other data.

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 08 Dec 2014, 01:54 PM
Hello Satish,

The RadHtmlChart supports different baseUnits for its date x-axis, so you can try to set a lower base unit(e.g., BaseUnit="minutes"). More information on the matter is available in the Date Axis help article and this online demo.

As for setting min and max values for the x-axis:
    - For a category series like line, bar, column, etc. you can use the MinDateValue and MaxDateValue properties.
    - For numeric series like scatter and scatterline series you can convert the min/max dates to its JavaScript representation as illustrated in the Programmatic Creation Of SeriesItems With DateTime help article and then set it to the MinValue and MaxValue properties.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart (Obsolete)
Asked by
Satish
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or