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

Need Help for creating RadHtml - Range bar chart

3 Answers 95 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rajendra
Top achievements
Rank 1
Rajendra asked on 06 May 2016, 01:28 PM

I want to create a range bar chart for Task Schedule. I would like to use Rad Html chart for that. I have tasks list and their respective planned start date - end date and Actual start date - end date. So I tried to plot the chart with Rad Html chart but, it's Y-Axis is not accepting date type of value. it is only allowing decimal type of values.

So please help me, how it can be achieved. I have attached image, which shows how the chart should be displayed.

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 11 May 2016, 12:32 PM
Hi Rajendra,

In order to adding DateTime object to numeric series item's X property you will need to convert the .NET DateTime object to to its JavaScript Date Object representation. Detailed steps on how to achieve this are provided in the following help article:
Programmatic Creation Of SeriesItems With DateTime

For convenience I am attaching a very simple project demonstrating how to apply this approach to a RangeBar chart, so you can use it as a base for your implementation.

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Rajendra
Top achievements
Rank 1
answered on 11 May 2016, 12:42 PM

Hi Vessy,

Thanks for your reply.

You have explained to set "Date" type of values for "X" axis, but I want it for "Y" axis. Please tell me how it can be achieved.

0
Vessy
Telerik team
answered on 14 May 2016, 12:21 PM
Hi Rajendra,

Setting dates for the Y axis can be done in a way, similar to the one shown in my previous reply (without any conversion needed). I am attaching a modified sample for your reference.

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Ajax
Asked by
Rajendra
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Rajendra
Top achievements
Rank 1
Share this question
or