Skip to content
Advertisement

Plotly.js gradient color on time series chart

I am working on a time series chart and wondering if it’s possible for a chart to have like a gradient background. This is the pen of what I currently have: https://codepen.io/boinx-fm/pen/RqogXV

JavaScript

Attached is the sample background I’m trying to achieve:

gradient background

Thanks!

Advertisement

Answer

Plotly.js does not support gradient color at this moment.

You can subscribe to https://github.com/plotly/plotly.js/issues/581 for development info.

To change background color of the layout:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement