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

RadHtmlChart set YAxis on Date Rages for RangeSeriesItem

1 Answer 35 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Jahangeer
Top achievements
Rank 1
Jahangeer asked on 28 Dec 2015, 03:12 PM

Hi,

 Can I set date range for RangeSeriesItem inside of RangeBarSeries for RadHTML Chart something like this

can I set 

 

  RangeSeriesItem rsi = new RangeSeriesItem();
        rsi.From = DateTime.Now.AddDays(-1);
        rsi.To = DateTime.Now.AddDays(1);
        bbs.SeriesItems.Add(rsi);

 

instead of setting decimal values in From and To for Range series Item??

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Jan 2016, 01:00 PM
Hello Jahangeer,

The From and To properties are of type nullable decimal so, it is not possible to directly assign date object to them. You can however try the approach suggested in this forum topic:
"Specified cas is not valid" Error when assigning Date variables to RangeSeriesItems

Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart (HTML5)
Asked by
Jahangeer
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or