How to change color of plot line?
GaryKG
New Altair Community Member
In Visualizations -> Scatter / Bubble, I tried to change the color of the Linear line by going to Plot Style and even clicked on 'Color palette', but no luck.
(I also tried searching here and in the online documentation, but did not find anything. I'm sure it's something very simple that I'm missing!)
Please help.
(I also tried searching here and in the online documentation, but did not find anything. I'm sure it's something very simple that I'm missing!)
Please help.
Tagged:
0
Answers
-
Hi @GaryKG,
Your intuition was correct in going into Plot Styles, the only thing you need to do is click on the first colour (default blue) and then select the colour you'd like. You can also change the order of default colours in the 'Color palette', for example here I've made green my first default colour. Hope this helps!
Best,
Roland0 -
Hi Roland,
Thanks for your response. However, I'm referring to the color of the Regression line. I found no way to change that from the default. Please change Regression interpolation from 'None' to 'Linear' and change the color of the line.
Please advise.
Thanks.0 -
Hi @GaryKG,
I've had a look at our plot configurations, and to me it looks like the Regression line will take the colour of the first default colour. I will raise an RFE, in the meantime, I would use 2 plots to achieve what you're after:
I've attached the configuration file, which is using the Polynomial dataset from the Samples. Any questions let me know.
Best,
Roland0