Bind DataTable to Chart in Code Behind

2 posts, 0 answers
  1. Manoj
    Manoj avatar
    1 posts
    Member since:
    Feb 2014

    Posted 21 Feb 2014 Link to this post

    I am lookinf forward to bind DataTable to Telerik chart in code behind, Kindly look at datatable which is attached. In that i have three column(DataTemp,PlantNo,Stator) Out of this DataTemp is my Y axis, PlantNo is my Series, Stator is X Axis. Kindly Help.
  2. Martin Ivanov
    Martin Ivanov avatar
    1452 posts

    Posted 25 Feb 2014 Link to this post

    Hi Manoj,

    Note that the RadChart has many known limitations and this is why we created new charting components (RadChartView) with better implementation and improved performance. You can read about the differences between the charts in the RadChart vs. RadChartView help article.

    As for your question you can take a look at the Binding to a DataTable help article which demonstrates how to populate RadCartesianChart with a DataTable consisted of 3 Columns. I also attached a project with a sample implementation. You could use it as a base for your scenario. 

    Also keep in mind that you cannot directly populate an axis with data. The values on the ticks of an axis depends on the data passed to its Series via their ItemsSource property.

Back to Top