Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Customize Telerik RadCartesianChart XMLDataProvider
posted

I have WPF application RadCartesianChart 

This is the code of one of them......

  <telerik:RadCartesianChart x:Name="RadChart1"     Palette="Windows8"  DataContext="{Binding XPath=/Nodes/Node,Source={StaticResource xml_Chart}}">

            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis Background="#FFF50000" />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis />
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:BarSeries CategoryBinding="{Binding XPath=@shortTime}"
                                   ValueBinding="{Binding XPath=Item/@value}"
                                   ItemsSource="{Binding}"   ShowLabels="True">
                </telerik:BarSeries>
            </telerik:RadCartesianChart.Series>
       </telerik:RadCartesianChart>
     =============================================================

I want to work with xml..

<telerik:BarSeries CategoryBinding="{Binding XPath=@shortTime}"
                                   ValueBinding="{Binding XPath=Item/@value}"
                                   ItemsSource="{Binding}"   ShowLabels="True">
                </telerik:BarSeries>

I can not run it. Help..... Thanks.