I have used several polar plot properties successfully to customize my polar plot. However, direction
results in an error that angularaxis
does not have that property. Most of the other properties work as expected, though period
and rotation
also error out. Was it renamed to something else? Is there another way I can transform my plot to get 0 degrees at the top?
Here’s an example of my code that breaks when I add the line direction: 'clockwise'
let myPolarPlot = document.getElementById('myDiv');
PlotlyJS.newPlot(myPolarPlot, [
{
type: "scatterpolargl",
r: [.1, .2, .3],
theta: [40, 50, 60],
mode: "markers",
name: "Test",
marker: {
color: "rgb(200, 200, 200)",
size: 15,
line: {
color: "white"
},
opacity: 0.7
},
cliponaxis: false
}
], {
font: {
size: 15
},
showlegend: false,
polar: {
bgcolor: "rgb(245, 245, 245)",
angularaxis: {
layer: "below traces",
direction: "clockwise",
},
radialaxis: {
range: [-1, 1],
visible: true,
},
},
paper_bgcolor: "rgb(255, 255, 255)",
}, {displaylogo: false, responsive: true });