I am sorry to say that in the current version of RadControls datetime formats are not supported by the RadHtmlChart yet. However, our developers are currently working on handling DateTime objects as a datasource to the RadHtmlChart but I cannot guarantee any time bounds for its implementation due to the:
- The control should not modify the datasource the developer passes. We are still trying to find a way around this obvious contradiction of concepts
If you use, however, Series that have a categorical X-Axis (i.e. LineSeries, AreaSeries, BarSeries or ColumnSeries) then you can follow your current approach by inserting formatted date strings items on the XAxis. This
help article will shed more light on how to do that.
Another approach could be to hide the XAxis labels and create your own styled div/span element that wraps the date labels and then align it below the XAxis.
All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed