Sometimes we notice that with new deployments of our software, the colours that we selected do not persist and we end up getting slightly different colours that are selected randomly(?) (see screenshot):
When changing the color, was the dashboard in edit or view mode?
From a quick look int he former case the SO it looks like the color is persisted on the visualization JSON and should be applied in all places.
In the latter the color is persisted on the dashboard panel config and seems to not be reflected when embedded.
Can you have a look in your dashboard/visualization SO if you can find the custom color defined?
Going to Stack Management > Saved Objects > find your visualization (if saved in the Visualize library) or Dashboard SO > click the ... > Inspect.
In the saved object there should be something like:
if the color is persisted instead in the embeddableConfig property, then it has been set when in dashboard view mode and it won't be reflected when embedded from my tests.
Is there a way we can still define the colours for the bars on objects that are not saved to the library? Or, is there anything else we can do in this scenario?
Is the visualization using the saved search working on the original cloud instance?
I've just tried on a 7.17.6 instance to create a dashboard with 4 agg based charts, two from a dataView and the other two from a saved search, all with custom color and export it as iframe.
Very interesting. This has never worked for me on any of our instances. Do you think we're doing something incorrectly somewhere - either, with the saved search or something in the stack management perhaps?
I see that I can change the threshold line colour pretty easily and I also see that Palette colour is defined, but is there a way to add in our own colours for the lines somewhere?
For the line charts, I know we can select a colour palette for the widget to follow but is there a way to set custom colours that is outside of the colour palette?
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.