Skip to content

Commit 3682408

Browse files
committed
Update selections.md
1 parent c5bf5df commit 3682408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/selections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fig.show()
8484

8585
## Fill Color for Active Selections
8686

87-
You can style active selections with `activeselection`. In this example, we set active selections to appear with a `fillcolor` of `blue`.
87+
You can style the active selection with `activeselection`. A selection is active when it is selected or created. In this example, we set active selections to appear with a `fillcolor` of `yellow`.
8888

8989
```python
9090
import plotly.express as px
@@ -95,7 +95,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length")
9595
fig.add_selection(type="rect", x0=3.0, y0=6.5, x1=3.5, y1=5.5)
9696

9797
fig.update_layout(dragmode='select',
98-
activeselection=dict(fillcolor='blue'))
98+
activeselection=dict(fillcolor='yellow'))
9999

100100
fig.show()
101101
```

0 commit comments

Comments
 (0)