I am trying to update the radius of the trace points when a certain event occurs. I have tried using relayout
as described in the documentation, but when the graph updates the points have the wrong radius (equal to 1, 2, …, n). Here is the code I am trying to use: https://codepen.io/ag-dnaphone/pen/MWPgYxg: click the Update button below the chart to see the problem.
An example of the update code is given below. Here I try to change to 20 the radius of the 4 points of a trace I added to the polar chart.
var update = {
r: [20, 20, 20, 20]
};
Plotly.restyle("polarChart", update, 0);
This code is taken from the doc I linked above and works correctly for properties such as the marker features.
var update = {
opacity: 0.4,
'marker.color': 'red'
};