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

Coloring in RadPivotMap

1 Answer 44 Views
TreeMap and PivotMap
This is a migrated thread and some comments may be shown as answers.
rakesh
Top achievements
Rank 1
rakesh asked on 20 May 2015, 08:24 AM
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    

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 25 May 2015, 07:15 AM
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
Tags
TreeMap and PivotMap
Asked by
rakesh
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or