4

Summary

I want to add colorscale to multiple lines chart using plotly-python (plotly==3.7.1).

  • I don't want to declare each color hex manually.
  • The years should order the colormap (ex: 2000 is soft blue ... 2018 is dark blue)

Currently plot

series with default colors

Example plot

series with colormap

Code

layout = go.Layout(
        title              = '',
        showlegend         = True,
        xaxis = dict(
            title          = '',
            zeroline       = False
        ),
        yaxis = dict(
            title          = '',
            zeroline       = False,
        )
    )    

fig = go.Figure(data = data, layout = layout)
Flavia Giammarino
  • 7,987
  • 11
  • 30
  • 40
Filipe Filardi
  • 170
  • 2
  • 12

0 Answers0