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

Having date type in DataXColumn Property

1 Answer 48 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Achuthan
Top achievements
Rank 1
Achuthan asked on 18 Aug 2011, 01:40 PM
Hi telerik team, i have one table which has quantity and Date. i need to assign date column to ChartSeries.DataXColumn, when i am trying to assign this column i'm getting "Date is not numeric" exception. Is it a limitation or how can i assign this data to RadChart.

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 23 Aug 2011, 12:21 PM
Hello Achuthan,

There are some things you should have in mind when binding RadChart - both XAxis and YAxis expect their values to be of decimal type. This means that dates should be presented in their OLE Automation equivalent using the ToOADate() method provided by the Framework. You may find our Numerical Axis demo helpful for achieving this.

Greetings,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Chart (Obsolete)
Asked by
Achuthan
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or