Py.Cafe

huong-li-nguyen/

dash-iris-flower-visualization

Interactive Iris Flower Data Visualization

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# check out https://dash.plotly.com/ for documentation
# And check out https://py.cafe/maartenbreddels for more examples
from dash import Dash, Input, Output, callback, dcc, html
import plotly.express as px

app = Dash(__name__)

df = px.data.iris()

fig=px.scatter(df, x="sepal_width", y="sepal_length", title="Blah blah", color="species")
fig.update_layout(legend_orientation="h", legend_y=-0.20,legend_title_text="")

app.layout = html.Div(
    children=[
        dcc.Graph(figure=fig)
    ]
)