This is a migrated thread and some comments may be shown as answers.
RadChart SeriesMapping.SeriesDefinition
4 Answers 97 Views
This is a migrated thread and some comments may be shown as answers.
Suresh K
Top achievements
Rank 1
Suresh K asked on 23 Sep 2011, 04:15 PM
Hi

I am new to Telerik Silverlight Tools.
Can any body tell me how to change the SeriesMapping.SeriesDefinition at runtime.
Actually i have the List of SeriesDefinition in Combobox.
i would like to change the SeriesMapping.SeriesDefinition in radComboBox1_SelectionChanged event. 

<telerik:RadComboBox HorizontalAlignment="Left" Margin="314,28,0,0" Name="radComboBox1" VerticalAlignment="Top" Width="250" DisplayMemberPath="SeriesName" SelectionChanged="radComboBox1_SelectionChanged">
            <telerik:RadComboBoxItem Content="Area3DSeriesDefinition" />
            <telerik:RadComboBoxItem Content="AreaSeriesDefinition" />
            <telerik:RadComboBoxItem Content="Bar3DSeriesDefinition" />
        </telerik:RadComboBox>
        <telerik:RadChart Height="328" HorizontalAlignment="Center" Margin="12,80,10,10" Name="radChart1" VerticalAlignment="Top" Width="834">
            <telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartTitle>
                        <telerik:ChartTitle Content="Demo">
                        </telerik:ChartTitle>
                    </telerik:ChartDefaultView.ChartTitle>
                    <telerik:ChartDefaultView.ChartArea>
                        <telerik:ChartArea>
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX Title="Country"></telerik:AxisX>
                            </telerik:ChartArea.AxisX>
                            <telerik:ChartArea.AxisY>
                                <telerik:AxisY Title="Billion dollars"></telerik:AxisY>
                            </telerik:ChartArea.AxisY>
                        </telerik:ChartArea>
                    </telerik:ChartDefaultView.ChartArea>
                </telerik:ChartDefaultView>
            </telerik:RadChart.DefaultView>
            <telerik:RadChart.SeriesMappings>
                <telerik:SeriesMapping LegendLabel="Sales">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:LineSeriesDefinition ShowItemLabels="False">
                        </telerik:LineSeriesDefinition>
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping DataPointMember="YValue" FieldName="Sales">
                        </telerik:ItemMapping>
                        <telerik:ItemMapping DataPointMember="XCategory" FieldName="Name">
                        </telerik:ItemMapping>
                    </telerik:SeriesMapping.ItemMappings>
                </telerik:SeriesMapping>
                <telerik:SeriesMapping LegendLabel="Turnover">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:LineSeriesDefinition ShowItemLabels="False">
                        </telerik:LineSeriesDefinition>
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping DataPointMember="YValue" FieldName="Turnover">
                        </telerik:ItemMapping>
                        <telerik:ItemMapping DataPointMember="XCategory" FieldName="Name">
                        </telerik:ItemMapping>
                    </telerik:SeriesMapping.ItemMappings>
                </telerik:SeriesMapping>
            </telerik:RadChart.SeriesMappings>
        </telerik:RadChart>
Thanks & Regards
Suresh K

4 Answers, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 27 Sep 2011, 01:23 PM
Hello Suresh,

This is shown in our demo with full source code.

Regards,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Suresh K
Top achievements
Rank 1
answered on 28 Sep 2011, 08:05 AM

Hi Evgenia .

Thanks for Reply.

it's very help full to me.

 

Thanks & Regards

 

Suresh K

0
jagan
Top achievements
Rank 1
answered on 26 Mar 2013, 12:16 PM
Hi All,
 In telerik im not able to see any demo. It is only showing 0% with "loading example" image...See this link
http://demos.telerik.com/silverlight/#Chart/EmptyValues

Can anyone help me out..
0
Evgenia
Telerik team
answered on 26 Mar 2013, 02:17 PM
Hi jagan,

We removed RadChart from our online demos - you may find why by reading this blogpost. RadChart's demos are now in separate qsf - here is a link to it.

Greetings,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Suresh K
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Suresh K
Top achievements
Rank 1
jagan
Top achievements
Rank 1
Share this question
or