SeriesMapping and Sum Label

3 posts, 1 answers
  1. nicolas
    nicolas avatar
    2 posts
    Member since:
    Sep 2010

    Posted 15 Feb 2011 Link to this post

    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. Answer
    Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 17 Feb 2011 Link to this post

    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
  3. nicolas
    nicolas avatar
    2 posts
    Member since:
    Sep 2010

    Posted 17 Feb 2011 Link to this post

    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>
Back to Top