chart wpf

2 posts, 0 answers
  1. inaam
    inaam avatar
    1 posts
    Member since:
    Apr 2016

    Posted 18 Apr 2016 Link to this post

    hi 
    it's my very first time using wpf , and i don't know how to create a chart and link it to my database.

    any idea how to start ?

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1352 posts

    Posted 19 Apr 2016 Link to this post

    Hi Inaam,

    Let me start RadChart is the old charting component. There is a new one (RadChartView) that resolves many of the known issues and limitations of RadChart. You can read about the differences between the controls in the RadChart vs. RadChartView help article.

    As for your question, the chart control is working with all IEnumerable collections so after fetching your data from the data base and storing it in a collection you can pass it to the chart's series ItemsSource and bind the corresponding properties from the model. You can see how to populate the chart with a collection in the Create Data-Bound Chart help article.

    Regards,
    Martin
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top