Hello,
I am using RadCartesianChart for my project and I need to show the data I have with Line Series.
I am able to show it with BarSeries, but I cannot do the same with LineSeries.
This is my code for the data binding
<telerik:RadCartesianChart.Series>
<telerik:BarSeries CategoryBinding="date" ValueBinding="value" ItemsSource="{Binding}">
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
However, when I use the following code
<telerik:RadCartesianChart.Series>
<telerik:LineSeries CategoryBinding="date" ValueBinding="value" ItemsSource="{Binding}">
</telerik:LineSeries>
</telerik:RadCartesianChart.Series>
it gives me the error:
Error 1 Ambiguous type reference. A type named 'LineSeries' occurs in at least two namespaces, 'Telerik.Windows.Controls.ChartView' and 'Telerik.Windows.Controls.Charting'. Consider adjusting the assembly XmlnsDefinition attributes. C:\Users\.......
And in Window I only have this:
<Window ...
....
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
... />
How do I fix this?
I am using RadCartesianChart for my project and I need to show the data I have with Line Series.
I am able to show it with BarSeries, but I cannot do the same with LineSeries.
This is my code for the data binding
<telerik:RadCartesianChart.Series>
<telerik:BarSeries CategoryBinding="date" ValueBinding="value" ItemsSource="{Binding}">
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
However, when I use the following code
<telerik:RadCartesianChart.Series>
<telerik:LineSeries CategoryBinding="date" ValueBinding="value" ItemsSource="{Binding}">
</telerik:LineSeries>
</telerik:RadCartesianChart.Series>
it gives me the error:
Error 1 Ambiguous type reference. A type named 'LineSeries' occurs in at least two namespaces, 'Telerik.Windows.Controls.ChartView' and 'Telerik.Windows.Controls.Charting'. Consider adjusting the assembly XmlnsDefinition attributes. C:\Users\.......
And in Window I only have this:
<Window ...
....
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
... />
How do I fix this?