Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/radar plot.py Secret

Created Apr 6, 2021
Embed
What would you like to do?
import plotly.express as px
import pandas as pd
data = pd.DataFrame(dict(keys=[10, 20, 30, 40], values=["Labour Cost", "Manufacturing Cost", "Promotion Cost", "Selling Cost"]))
figure = px.line_polar(data, r='keys', theta='values', line_close=True)
figure.update_traces(fill="toself")
figure.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment