Skip to content

Documentation for 5.10 features #3818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Jul 26, 2022
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a8ae4ab
Update parallel-coordinates-plot.md
LiamConnors Jul 19, 2022
7f97ac2
Adding a prefix and suffix
LiamConnors Jul 19, 2022
7ff8954
Create selections.md
LiamConnors Jul 19, 2022
cfcf5f5
Update link
LiamConnors Jul 19, 2022
16880be
add methods to calculate quartiles
LiamConnors Jul 19, 2022
540d9d9
Update violin.md
LiamConnors Jul 19, 2022
600bf7a
Update setting-graph-size.md
LiamConnors Jul 19, 2022
11347f2
minor edits
LiamConnors Jul 19, 2022
15afc11
Update indicator.md
LiamConnors Jul 19, 2022
b47c824
Update indicator.md
LiamConnors Jul 19, 2022
e8d9959
minor edits
LiamConnors Jul 19, 2022
8741c88
Update setting-graph-size.md
LiamConnors Jul 19, 2022
5627314
Update doc/python/selections.md
LiamConnors Jul 21, 2022
ae737ac
Update doc/python/selections.md
LiamConnors Jul 21, 2022
b5fa284
Update parallel-coordinates-plot.md
LiamConnors Jul 21, 2022
c5bf5df
Update parallel-coordinates-plot.md
LiamConnors Jul 21, 2022
3682408
Update selections.md
LiamConnors Jul 21, 2022
e955334
Update selections.md
LiamConnors Jul 21, 2022
186dec4
Update doc/python/selections.md
LiamConnors Jul 21, 2022
6d1a2da
Update selections.md
LiamConnors Jul 21, 2022
e2eb238
add time series example
LiamConnors Jul 21, 2022
cb07e20
Update selections.md
LiamConnors Jul 21, 2022
0e536e9
Update selections.md
LiamConnors Jul 21, 2022
fbc1668
Update selections.md
LiamConnors Jul 21, 2022
a8c5649
Update doc/python/selections.md
LiamConnors Jul 22, 2022
263a9b8
add random seed
LiamConnors Jul 22, 2022
9e66af4
Update doc/python/selections.md
LiamConnors Jul 22, 2022
222b3b2
Update selections.md
LiamConnors Jul 22, 2022
b705619
Update doc/python/selections.md
LiamConnors Jul 22, 2022
1d753ed
Update selections.md
LiamConnors Jul 22, 2022
fa2f3f4
Update selections.md
LiamConnors Jul 22, 2022
c674802
Update selections.md
LiamConnors Jul 22, 2022
51e599e
Update selections.md
LiamConnors Jul 22, 2022
66443e1
Merge branch 'master' into docs-5-10
LiamConnors Jul 26, 2022
9417bcb
Update doc/python/selections.md
LiamConnors Jul 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions doc/python/selections.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,20 @@ fig.update_layout(dragmode='select',
fig.show()
```

## Selections with Time Series

Selections are also supported on time series figures. Here, we add a rectangular selection with a region between the dates `2019-01-01"` and `"2019-10-01"` on the x axis and between `1` and `1.15` on the y axis.


```python
import plotly.express as px

df = px.data.stocks()
fig = px.line(df, x='date', y="GOOG")
fig.add_selection(x0="2019-01-01", y0=1, x1="2019-10-01", y1=1.17)
fig.show()
```

## More on Selections

For more on selections, see the [selections section of the `dcc.Graph` page](https://dash.plotly.com/dash-core-components/graph#selections) in the Dash docs.