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

How to stop HTMLChart automatic formatting to date?

1 Answer 38 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Abram
Top achievements
Rank 1
Abram asked on 18 Mar 2014, 09:59 PM
HTMLChart is automatically formatting the ranges of some of my range categories to dates.  I tried changing the XAxis type to 'Category' and put in a dataformatstring in the labelsappearance tag to {0} but it didn't fix the issue.  It auto-formats it for ranges it thinks are dates (e.g. '5 - 9' and '10 - 14').   How can I fix this problem?

1 Answer, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 19 Mar 2014, 01:42 PM
Hi Abram,

This issue is fixed in Q1 2014. I can suggest that you do the following:
1)Upgrade your version of Telerik UI to 2014.1.225 version.
2)Set the XAxis type to "Category".
3)Define the type of the data source field used for the x-axis to "string".


Regards,
Danail Vasilev
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

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