Coloring in RadPivotMap

2 posts, 0 answers
  1. rakesh
    rakesh avatar
    5 posts
    Member since:
    May 2015

    Posted 20 May 2015 Link to this post

    How to add colors in RadPivotMap? the example shows using the gdp data on RadTreeMap... There is no proper documentation on adding color to RadpivotMap.
    Please do help with example to add color to RadpivotMap    
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 25 May 2015 Link to this post

    Hi Rakesh,

    The API between these controls is pretty much the same. So please have a look at the Colorizer help article. Also in the PivotMap First Look sample you can see Colorizers in the leaf level:

    <telerik:RadPivotMap.LeafMappings>
                   <telerik:DesaturationColorizer From="0.9" To="0.6" ParentSourceColorPropertyName="ChildrenBackgroundBrush" />
               </telerik:RadPivotMap.LeafMappings>

    and Colorizers and different colorizers when you change the grouping strategy:
    <telerik:RadComboBox x:Name="GroupCombo" SelectedIndex="0">
                   <treeMap:PivotMapGroupDefinition Member="Genre">
                       <treeMap:PivotMapGroupDefinition.Mappings>
                           <telerik:BrushColorizer Brush="{StaticResource GroupHeaderColor}" />
                           <telerik:PaletteColorizer TargetPropertyName="ChildrenBackgroundBrush" Brushes="{StaticResource FillColorizerBrushes}" />
                       </treeMap:PivotMapGroupDefinition.Mappings>
                   </treeMap:PivotMapGroupDefinition>
                   <treeMap:PivotMapGroupDefinition Member="Distributor">
                       <treeMap:PivotMapGroupDefinition.Mappings>
                           <telerik:BrushColorizer Brush="{StaticResource GroupHeaderColor}" />
                           <telerik:PaletteColorizer TargetPropertyName="ChildrenBackgroundBrush" Brushes="{StaticResource FillColorizerBrushes}" />
                       </treeMap:PivotMapGroupDefinition.Mappings>
                   </treeMap:PivotMapGroupDefinition>
               </telerik:RadComboBox>


    Regards,
    Petar Mladenov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top