Background color on treemap

Posted by: ehh on 30 November 2021, 6:53 pm EST

    • Post Options:
    • Link

    Posted 30 November 2021, 6:53 pm EST - Updated 29 September 2022, 12:49 am EST

    Hello,

    Is there a way to set the background color of items in the treemap, that would overwrite the colors from the CustomPalette.

    I made a example in paint below.

    Im currently using a class like this to load the treemap.

    
    class TreeMapItem
        {
            public string Color { get; set; }
            public string Category { get; set; }
            public double Amount { get; set; }
            public List<TreeMapItem> Items { get; set; }
        }
    
    

    Best Regards,

    Emil

  • Posted 1 December 2021, 8:27 pm EST

    Hi Emil,

    We are sorry, currently this feature is unavailable. We have asked the same to the concerned team for the further investigation with the internal tracking id C1-3841.

    We would let you know as we get an update on this.

    Regards,

    Manish Gupta

  • Posted 20 December 2021, 1:58 pm EST

    Hi Emil,

    For changing the Node Color, we need to handle the NodeRendering event and fill the color for the specified node.

    Please refer to the attached sample for reference.

    Regards,

    Manish Gupta

    TreeMap_Node_colorChange.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels