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.
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.