Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Scatter line gradient?

Does plotly support gradient paths?
I’m buildlng a line graph and would like to make the line a gradient. Is this possible?

Not at the moment. You can subscribe to https://github.com/plotly/plotly.js/issues/581 for the latest development info.

Regarding this, I can’t tell whether this is available or not: https://github.com/plotly/plotly.js/pull/1620

My use case is in plotting markers on a map, and changing their colour based on other metrics. It’s for some running/jogging data - I have lat/lon and speed, so want to set the colour to red when it’s fast and green for slow. Would the above pull be suitable?

It is hard to follow the references issue, but i assume it is not implemented yet.

I did something similar to what you are trying to achieve by coloring individual markeres iso lines - did it for cycling maps.

Rendering time and plot responsivity will suffer dramatically.