Black Lives Matter. Please consider donating to Black Girls Code today.

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

1 Like

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

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?