Skip to content

Commit

Permalink
Update graph.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stichbury committed Aug 7, 2024
1 parent cd77c4a commit 4e366c0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions vizro-core/docs/pages/user-guides/graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To add a [`Graph`][vizro.models.Graph] to your page, do the following:

!!! example "Graph"
=== "app.py"
```py
```{.python pycafe-link}
import vizro.models as vm
import vizro.plotly.express as px
from vizro import Vizro
Expand All @@ -39,7 +39,6 @@ To add a [`Graph`][vizro.models.Graph] to your page, do the following:
),
),
],
controls=[vm.Filter(column="species", selector=vm.Dropdown(title="Species"))],
)

dashboard = vm.Dashboard(pages=[page])
Expand All @@ -58,12 +57,6 @@ To add a [`Graph`][vizro.models.Graph] to your page, do the following:
data_frame: iris
dimensions: ["sepal_length", "sepal_width", "petal_length", "petal_width"]
type: graph
controls:
- column: species
type: filter
selector:
title: Species
type: dropdown
title: My first page
```
=== "Result"
Expand Down

0 comments on commit 4e366c0

Please sign in to comment.