Colors in Radar Chart

Am using the same code as mentioned in forum for radar chart.
However the colors are predefined. Kindly suggest how to change colors in radar chart.

Regards,
Amit

That’s https://plot.ly/javascript/reference/#scatterpolar-line-color

But the background color is still white in my code.
used bgcolor

2 Likes

Python radar chart layout
return go.Layout(
polar = dict(
bgcolor=’#1e2130’
),
title = β€˜MyRadar’,
paper_bgcolor=’#1e2130’
)

1 Like

It appears that in plotly.js you need to put it in

layout: { 
  polar: {
     bgcolor: 'chartreuse'
  }
}

Is there a reason we can’t just use the plot_bgcolor attribute?

1 Like