Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do you change the color of a trendline in a scatter plot?

I'm trying to change the color of my scatter plot's trendline (attached a picture) from a teal color to just black. Is there a way to do this? Thank you!

12 Replies
maxgro
MVP
MVP

try to change in colors tab the second color to black

1.png

Not applicable
Author

Hi Massimo,

The second color corresponds with one of my plotted points. Changing that color to black only changed one of my dots to black, not the trendline. Thanks anyway for your help.

maxgro
MVP
MVP

could you post the doc?

Not applicable
Author

try in the expression -under background color- use black(255)

Greg_Williams
Employee
Employee

In the Presentation tab > Reference Lines > change line formatting.

~Greg

Not applicable
Author

I didn't use a reference line, I added a linear trendline on the Expressions tab to the Y-axis expression.

Trendline.PNG.png

Not applicable
Author

Did you mean the expression that created the trendline? I created the line by checking the linear box under trendlines on the Expressions tab for my y-axis expression. I tried changing the background color in the expression that the trendline was for, but it still didn't do anything. Thank you for your help.

Not applicable
Author

I can't it's private information and I don't know how to replicate it in a dummy QV file. Thank you.

maxgro
MVP
MVP

I try to post mine, see attachment

scatter with trendline black

1.png