We would like to change the palette and the default color in the graphs.
We do not mind if we need to update the code everytime we update for the time being.
I updated:
./src/ui/public/vis/components/color/seed_colors.js (changed the seedColor)
./src/ui/public/vislib/components/color/colormaps.js (added a new palette)
I restarted Kibana, cleaned my browser cache, ...
The colors are the same as initially...
Would you have any idea?
which type of graph are you using (normal charts, timelion or time series visual builder)? When running Kibana after you made your changes, did you see a notice about optimization/bundling in the Kibana log?
I was able to change the default colors by manipulating the seed_colors.js file you indicated.
Another thing that could override your color mapping changes is the advanced setting visualization:colorMapping. You can check it in Kibana's management section.
also as mentioned by Felix, you can look into visualization:colorMapping advanced setting. It is configured by default to map counts to blue. This indeed throws a lot of people off ( if its only showing a single color) even after all the changes. Do let us know if this works.
Thank you Felix @weltenwort,
I tried visualization:colorMapping. It's good for general terms, like counts...
But for example, I have:
a donut with the default bright colors which I would like to change, as well as the palette
a USA heatmap which I would like to change to go from yellow to blue.
Changing the code directly from the deployed tar.gz doesn't seem to work.
I'll use the github and set up a devenv, if you think this is why I'm stuck with default colors. (?)
It might be that the changes to the source files are not incorporated into the browser bundle when the Kibana server is not running in devopment mode. Let us know if that still does not make a difference.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.