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

Chart Value Problem

1 Answer 27 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
beray
Top achievements
Rank 2
beray asked on 06 Aug 2014, 08:05 PM
Hello;

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

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 11 Aug 2014, 01:24 PM
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.

Regards,
Rosy Topchiyska
Telerik
 

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.

 
Tags
Chart
Asked by
beray
Top achievements
Rank 2
Answers by
Rosy Topchiyska
Telerik team
Share this question
or