import
matplotlib.pyplot as plt
import
numpy as np
employee
=
[
"Rahul"
,
"Joy"
,
"Abhishek"
,
"Tina"
,
"Sneha"
]
actual
=
[
41
,
57
,
59
,
63
,
52
,
41
]
expected
=
[
40
,
59
,
58
,
64
,
55
,
40
]
plt.figure(figsize
=
(
10
,
6
))
plt.subplot(polar
=
True
)
theta
=
np.linspace(
0
,
2
*
np.pi,
len
(actual))
lines, labels
=
plt.thetagrids(
range
(
0
,
360
,
int
(
360
/
len
(employee))),
(employee))
plt.plot(theta, actual)
plt.fill(theta, actual,
'b'
, alpha
=
0.1
)
plt.plot(theta, expected)
plt.legend(labels
=
(
'Actual'
,
'Expected'
),
loc
=
1
)
plt.title(
"Actual vs Expected sales by Employee"
)
plt.show()