如何更改轮廓颜色 polar plotlyjs

How to change outline color polar plotlyjs

这里是代码示例 谢谢

data = [{
 type: 'scatterpolar',
  r: [39, 28, 8, 7, 28, 39],
  theta: ['A','B','C', 'D', 'E', 'A'],
  fill: 'toself'}]

layout = {
  polar: {
    radialaxis: {
      visible: true,
      range: [0, 50],
    },
  },
  showlegend: false,
}

 Plotly.newPlot("myDiv", data, layout)

Change the outline enter image description here

我找到了答案,它使用 angularaxis

data = [{
      type: 'scatterpolar',
      r: [39, 28, 8, 7, 28, 39],
      theta: ['A','B','C', 'D', 'E', 'A'],
      fill: 'toself'
    }]

layout = {
  polar: {
    radialaxis: {
      visible: true,
      range: [0, 50],
    },
    angularaxis:{
      linecolor:'red'
    },
  },
  showlegend: false,
}

Plotly.newPlot("myDiv", data, layout)