Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0501ef4

Browse files
authored
Merge pull request#157 from plotly/db_click_delay_py
doubleClickDelay.py
2 parents1127f40 +23fd4fe commit0501ef4

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.
@@ -118,6 +118,24 @@ fig.show(config={
118118
})
119119
```
120120

121+
###Double-click Delay
122+
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).
123+
This setting propagates to all on-subplot double clicks (except for geo and mapbox).
124+
125+
```python
126+
import plotly.graph_objectsas go
127+
128+
fig= go.Figure(go.Bar(
129+
y= [3,5,3,2],
130+
x= ["2019-09-02","2019-10-10","2019-11-12","2019-12-22"],
131+
texttemplate="%{label}",
132+
textposition="inside"))
133+
134+
fig.update_layout(xaxis= {'type':'date'})
135+
136+
fig.show(config= {'doubleClickDelay':1000})
137+
```
138+
121139
####Reference
122140

123141

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp