Hello, I would like to add text annotation on marker for Polar Chart. As study of the Plotly documentation, there is example having x and y Data values which is shown below in example 1. So, I want to implement simple annotation on markers for Polar Chart having data values of radius and theta.
I would appreciate if someone give the solution for this topic.
Here is my code and result images below
var trace1 = {
r: [0, 1, 2, 3, 4, 5, 6, 7, 8],
t: [10, 30, 20, 40, 30, 40, 60, 50],
type: 'scatterpolar'
};
var data = [trace1];
var layout = {
showlegend: false,
annotations: [
{
r: 6,
t: 240,
text: 'Annotation Text',
}
]
};
Plotly.newPlot('myDiv', data, layout);