1import plotly.graph_objects as go
2
3categories = ['processing cost','mechanical properties','chemical stability',
4 'thermal stability', 'device integration']
5
6fig = go.Figure()
7
8fig.add_trace(go.Scatterpolar(
9 r=[1, 5, 2, 2, 3],
10 theta=categories,
11 fill='toself',
12 name='Product A'
13))
14fig.add_trace(go.Scatterpolar(
15 r=[4, 3, 2.5, 1, 2],
16 theta=categories,
17 fill='toself',
18 name='Product B'
19))
20
21fig.update_layout(
22 polar=dict(
23 radialaxis=dict(
24 visible=True,
25 range=[0, 5]
26 )),
27 showlegend=False
28)
29
30fig.show()