Replies: 1 comment 3 replies
-
To change the colors of individual bars like this for a continuous gradient: marker:
color: $ex ys or like this if you have thresholds marker:
color: |
$ex ys.map(y => y > 1000 ? "green" : y > 0 ? "yellow" : "red") btw, you may want to increase your bottom margin to make space for the ticks text layout:
margin:
b: 50 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As I continue my replacement of Apexcard to Plotly, I want to recreate the below.
I have managed to make this, but can't change the colour of the bars. I believe this isn't possible with Plotly. Is the correct way to do this, use a line graph and then fill using the colour I want?
Also, hovering over the blue sections give me no data.
For completeness, this is the Apexcard yaml
Beta Was this translation helpful? Give feedback.
All reactions