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

RadChart BoxPlot Demo - Can't create declaratively

1 Answer 127 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 01 May 2013, 09:04 PM
I am trying to translate the box plot demo into an implementation done using the XAML instead of the codebehind. I want to be able to reuse the chart and bind the series to different data, but in the XAML I cannot set the SeriesDefinition to a custom class. The code below:

<telerik:RadChart ItemsSource="{Binding BpsSensitivityPer1StdDevMoveChartData}" >
    <telerik:RadChart.DefaultView>
        <telerik:ChartDefaultView>
            <telerik:ChartDefaultView.ChartArea>
                <telerik:ChartArea EnableAnimations="False">                                                                           
                </telerik:ChartArea>
            </telerik:ChartDefaultView.ChartArea>
        </telerik:ChartDefaultView>                                               
    </telerik:RadChart.DefaultView>
    <telerik:RadChart.SeriesMappings>
        <telerik:SeriesMapping>
            <telerik:SeriesMapping.SeriesDefinition>
                <bamcontrols:CustomCandleStickSeriesDefinition>                                                                                                                  
                </bamcontrols:CustomCandleStickSeriesDefinition>
            </telerik:SeriesMapping.SeriesDefinition>
        </telerik:SeriesMapping>
    </telerik:RadChart.SeriesMappings>
</telerik:RadChart>

gives me the following error:

Property 'SeriesDefinition' does not support values of type 'CustomCandleStickSeriesDefinition' 

even though the class is a direct copy from the sample code. Am I missing a step somewhere? Any guidance would be appreciated, I am out of ideas.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 06 May 2013, 02:41 PM
Hi Josh,

I couldn't reproduce the problem you reported with the sample code and the only thing I can see that's omitted are the ItemMappings. In any case, I've prepared the box plot demo in XAML. Please find it attached to this post along with a screenshot of the Silverlight application running.

Regards,
Ivan N.
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Josh
Top achievements
Rank 1
Answers by
Missing User
Share this question
or