Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Customize the color of treemap

Occasional Contributor
Posts: 9

Customize the color of treemap

When I use  treemap, it seems I can only set the Data Colors

VA changes the colors of meter automatically.

However, can I appoint the color to a specific value?

In the following example, the value has changed since I choice different parameters. But the color is the same.

Can I customized my color setting with fixed value


Occasional Contributor
Posts: 9

Re: Customize the color of treemap

Posted in reply to SullivanC

Hello SullivanC,

Listed below are step by step instructions on how to customize the colors in order for it to represent a specified value for the Treemap:

First, Access VA.

Go to Create a Report.

From here, select the desired data you want to analyze within your Treemap.

Next, in the objects tab click on Treemap.

Then, put in the desired fields from your data (ex: Product sales, Product Quality, Sales Rep ID, etc.)

From here, on the right side, click on the styles tab.

Next, select Treemap 1 and you should see the following tabs:
Data Styling, Fills, Frame Styling, Text Styling, and Data Colors

Because you want to customize the colors on the Treemap select
the tab, Data Colors, moreover you can select the colors for fill, gradient,
missing, and data tip fill. Here is where you can select the colors to represent a specific value.

In addition, you can customize the text and the style of your Treemap.

I hope I assisted you in answering your question, please reply if you need further clarification. 

Occasional Contributor
Posts: 9

Re: Customize the color of treemap

Posted in reply to Meredith_SAS

Thanks for you replying. I'm sorry I reply late since I have to try in Monday morning in my office.

I have tried solution. But I still cannot find the setting.

I hope to give a specific color to a specific range. For example


In my example pic, the value of the 1st pic is 105.28% and the value of 2 pic is 52.64%.

The are from the same treemap and I just change the value of controls.

I hope the color of 52.64% become yellow/green, not keep the same color(red) as that of 105.28%

Frequent Contributor
Posts: 85

Re: Customize the color of treemap

Posted in reply to SullivanC

Hi Sullivan,

Did you attempt doing this in Display rule. There you can specify desired values and make an expression.

Cheers. satlr

Ask a Question
Discussion stats
  • 3 replies
  • 3 in conversation