After I have migrated Saiku CE plugin (run within Pentaho CE) from 2.6 to 3.0, the colors of charts got pretty ugly and hard to read. They are all different types of red, which makes understanding charts very difficult. Question is - can colors be somehow controlled and changed?
Ugly colors on Saiku charts after upgrading to 3.0 CE
799 Views Asked by Robson At
2
There are 2 best solutions below
1

I don't know if you still need an answer, but here it is.
You can change the colors in a file :
[saiku_server_root]\tomcat\webapps\ROOT\js\saiku\render\SaikuChartRenderer.js
Search for "options.colors" string, it's an array with all the color values you want Saiku to use. In my case I use the base colors, which is the old set of colors used in Saiku :
options.colors = ["#1f77b4", "#aec7e8", "#ff7f0e", "#ffbb78", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5", "#8c564b", "#c49c94", "#e377c2", "#f7b6d2", "#7f7f7f", "#c7c7c7", "#bcbd22", "#dbdb8d", "#17becf", "#9edae5" ];
The right place to change that ugly colors is the file
biserver-ce\pentaho-solutions\system\saiku\ui\saiku.min.js
Search for the substring
a.colors=["#AE1717","#AE5B17","#0E6868"];
and replace it with your colors array:a.colors=["#1f77b4", "#aec7e8", "#ff7f0e", "#ffbb78", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5", "#8c564b", "#c49c94", "#e377c2", "#f7b6d2", "#7f7f7f", "#c7c7c7", "#bcbd22", "#dbdb8d", "#17becf", "#9edae5" ];