Chart Value Problem

2 posts, 0 answers
  1. Beray
    Beray avatar
    12 posts
    Member since:
    Mar 2014

    Posted 06 Aug 2014 Link to this post


    I have a problem about values of graph. I want to enter foreach horizontal and vertical values without using xaml. But example code ( on documentation ) adds only one value.

    Do u have any suggestion ?

    Regards, Beray
  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    547 posts

    Posted 11 Aug 2014 Link to this post

    Hello Beray,

    Thank you for the question.

    Generally there are two groups of chart series:
    • Categorical series - use CategoricalDataPoint, that has the following properties:
      • Category
      • Value
    • Scatter series - use ScatterDataPoint, with the following properties:
      • XValue
      • YValue
    When adding data points to categorical series, you can leave the Caregory property unset (as in the examples).

    Another way to to add data to the chart series is to set the series' ItemsSource and the following properties:
    • For categorical series: CategoryBinding and ValueBinding
    • For scatter series: XValueBinding and YValueBinding 
    These properties specify the name of the property from the ItemsSource data items that will be used to set the series data point properties.

    I have attached a sample project that demonstrates several ways to add data points to the chart series. Please, take a look and let us know if you have further questions.

    Rosy Topchiyska

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft banner
Back to Top