I have a plot that displays difference between 2 values. It can be positve or negative. When it’s negative, I want to change fillcolor from green to red. Is it possible?
Currently I use spline shape
Plotly.plot(diff, [{ fill: 'tozeroy', line: { shape: 'spline', color: '#5ec950' }, fillcolor: '#bfefbf', x: [1, 2, 3, 4, 5], y: [100, -20, -70, 30, 50] }], {margin: {t: 0}} );