Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

Fix the colors in Treemap chart

$
0
0
Hi all,

I'm new here and I begin to use Pentaho:) , so I need you please...
My problem is to fix colors for each category in TreeMap chart.
For eg:
I have 2 categories of car : BMW and VW and for each category I have many types of car;
BMW: Serie1, Serie2....
VW: Golf, Jetta, Passat....

So, I would like to fix colors for this two categories: BMW and VW (all BMW in blue and all VW in red).
I used many things but nothing :(, I can't fix the colors!

I use also in Pre Execution, in Post Excution, in Post Fetch, in Pre Change, Post Change:

function f() { // Series Value => Fixed Color
this.chartDefinition.colorMap = {
"BMW": 'blue',
"VW": 'red'
};
}

But nothing

Thank you for help!!

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>