Closing line for radar cart and popup window on chart radar

Hi, I have such a question.
How can I close the lines on Radar Charts and make some popup window like the image.
the code is as shown https://plotly.com/python/radar-chart/#
tempsnip

thanks beforehand

If you’re using plotly.express you can use the line_close=True parameter, otherwise you’ll have to manually duplicate the first point at the end of your series.

For a “popup” you will have to use annotations and shapes: https://plotly.com/python/text-and-annotations/ and https://plotly.com/python/shapes/

4 Likes

Hello,

So if we use go.Scatterpolar with plotly.graphs_objects we can’t close the last point with the first ?
I’m using this instead of plotly.express because I want create a radar charte with 2 parameters.
It’s possible to do that also with plotly.express ?

Thanks
Simon

1 Like

Yes, you can use Plotly Express to make radar charts with multiple traces, by setting the color argument.

You can also close lines with go.Scatterpolar by repeating the first point in your trace at the end.

3 Likes

Hey Nicolas,
I know this thread seems to be a little bit outdated, but I could not close my lines either with go.Scatterpolar. Could you describe what exactly you mean by “repeating the first point in your trace”?
My values come from a dataframe, and if I were to repeat values, wouldn’t that create a new attribute/column?

Best Regards
Dennis