Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 6, 2021 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/39786a698ce599ba5872041a048a0c87 to your computer and use it in GitHub Desktop.
Save amankharwal/39786a698ce599ba5872041a048a0c87 to your computer and use it in GitHub Desktop.
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