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

SeriesMapping and Sum Label

2 Answers 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
nicolas
Top achievements
Rank 1
nicolas asked on 15 Feb 2011, 02:36 PM
Hello,

I have a stackedBar Chart (Silverlight 4):
<telerik_charting:RadChart x:Name="radChart" Margin="8" 
                ItemsSource="{Binding Path=StackedBarCollectionGlobalRevenue}" >
                        <telerik_charting:RadChart.SeriesMappings >
  
                            <charting:SeriesMapping CollectionIndex="0" LegendLabel="RoomRev (R)">
  
                                <charting:SeriesMapping.SeriesDefinition>
                                    <charting:StackedBarSeriesDefinition ShowItemLabels="True" StackGroupName="Real" ItemLabelFormat="#Y{0} €" SeriesItemLabelStyle="{StaticResource CustomLabelStyle}" >
                                        <charting:StackedBarSeriesDefinition.Appearance>
                                            <charting:SeriesAppearanceSettings Fill="DarkGoldenrod">
  
                                            </charting:SeriesAppearanceSettings>
                                        </charting:StackedBarSeriesDefinition.Appearance>
                                    </charting:StackedBarSeriesDefinition>
                                </charting:SeriesMapping.SeriesDefinition>
                                <charting:SeriesMapping.ItemMappings>
                                    <charting:ItemMapping FieldName="RoomRevenue" DataPointMember="YValue"/>
                                    <charting:ItemMapping FieldName="GroupLevel" DataPointMember="XCategory"/>
                                </charting:SeriesMapping.ItemMappings>
                            </charting:SeriesMapping>

A lot of ItemSeriesMapping After (4 for each Collection Index).

<telerik_charting:RadChart.DefaultView>
                            <charting:ChartDefaultView >
                                <charting:ChartDefaultView.ChartArea>
                                    <charting:ChartArea LegendName="Legend" >
                                        <charting:ChartArea.ZoomScrollSettingsX>
                                            <charting:ZoomScrollSettings ScrollMode="ScrollAndZoom" MinZoomRange="0.03" />
                                        </charting:ChartArea.ZoomScrollSettingsX>
                                        <charting:ChartArea.AxisX>
                                            <charting:AxisX DefaultLabelFormat="#VAL{MM/yy}"></charting:AxisX>
                                        </charting:ChartArea.AxisX>
                                        <charting:ChartArea.AxisY>
                                            <charting:AxisY DefaultLabelFormat="#VAL{C000000}">
                                                </charting:AxisY>
                                                </charting:ChartArea.AxisY>
                                    </charting:ChartArea>
                                </charting:ChartDefaultView.ChartArea>
                                <charting:ChartDefaultView.ChartLegend>
                                    <charting:ChartLegend x:Name="Legend"></charting:ChartLegend>
                                </charting:ChartDefaultView.ChartLegend>
                            </charting:ChartDefaultView>
                        </telerik_charting:RadChart.DefaultView>
                    </telerik_charting:RadChart>

 

 

 

 

I would like to show (above ItemsSeriesMappings) Sum Label of each CollectionIndex but I need to show Label For Each ItemSeriesMapping.
Thanks.
Nicolas DENIS

 

 

 

 

 

 

 

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 17 Feb 2011, 09:27 AM
Hi nicolas,

Can you please supply some additional information on the required setup. Where would you like to position the additional information?
Basically, there is no easy way to alter the default rendering of the control, and/or add elements to the chart area - for example, a label summarizing some of the information rendered by the control. One possible option, however, is to use the chart legend, to add the relevant data there. Let me know if this is a suitable approach for you, or if you are looking for another behavior.

Greetings,
Yavor
the Telerik team
0
nicolas
Top achievements
Rank 1
answered on 17 Feb 2011, 12:18 PM
Sorry, I've resolve the problem
<charting:SeriesMapping CollectionIndex="3" LegendLabel="SUM (B)" >
                               <charting:SeriesMapping.SeriesDefinition>
                                   <charting:StackedBarSeriesDefinition ShowItemLabels="True" StackGroupName="Booking" ItemLabelFormat="#STSUM{0} €" >
                                       <charting:StackedBarSeriesDefinition.Appearance>
                                           <charting:SeriesAppearanceSettings Fill="Olive"></charting:SeriesAppearanceSettings>
                                       </charting:StackedBarSeriesDefinition.Appearance>
                                   </charting:StackedBarSeriesDefinition>
                               </charting:SeriesMapping.SeriesDefinition>
                               <charting:SeriesMapping.ItemMappings>
                                   <charting:ItemMapping FieldName="GroupLevel" DataPointMember="XCategory"/>
                               </charting:SeriesMapping.ItemMappings>
                           </charting:SeriesMapping>
Tags
Chart
Asked by
nicolas
Top achievements
Rank 1
Answers by
Yavor
Telerik team
nicolas
Top achievements
Rank 1
Share this question
or