Skip to content

Commit a9bf216

Browse files
author
“mahdis-z”
committed
doubleClickDelay.py
1 parent 68ce728 commit a9bf216

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

python/configuration-options.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.1'
9-
jupytext_version: 1.1.7
9+
jupytext_version: 1.2.1
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.5
23+
version: 3.7.3
2424
plotly:
2525
description: How to set configuration options of plotly graphs in python. Examples
2626
of both online and offline configurations.
@@ -122,6 +122,24 @@ fig.show(config={
122122
})
123123
```
124124

125+
### Double Click Delay
126+
Sets the maximum delay between two consecutive clicks to be interpreted as a double-click in ms. This is the time interval between first mousedown, and' second mouseup. The default timing is 300 ms (less than half a second).
127+
This setting propagates to all on-subplot double clicks (except for geo and mapbox).
128+
129+
```python
130+
import plotly.graph_objects as go
131+
132+
fig = go.Figure(go.Bar(
133+
y = [3, 5, 3, 2],
134+
x = ["2019-09-02", "2019-10-10", "2019-11-12", "2019-12-22"],
135+
texttemplate = "%{label}",
136+
textposition = "inside"))
137+
138+
fig.update_layout(xaxis = {'type': 'date'})
139+
140+
fig.show(config = {'doubleClickDelay': 1000})
141+
```
142+
125143
#### Reference
126144

127145

0 commit comments

Comments
 (0)