Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 592ff4b

Browse files
Mahdis-zJoseph Damiba
authored andcommitted
doubleClickDelay.js (#1569)
* doubleClickDelay.js * Edit in chart studio button in modebar * textemplate example charts will be inlined once branch is merged Co-authored-by: Joseph Damiba <[email protected]>
1 parent bbd652a commit 592ff4b

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Double Click Delay
3+
language: plotly_js
4+
suite: configuration
5+
order: 11
6+
sitemap: false
7+
arrangement: horizontal
8+
markdown_content: |
9+
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).
10+
This setting propagates to all on-subplot double clicks, (except for geo and mapbox).
11+
---
12+
var data = [{
13+
type: "bar",
14+
y: [3, 5, 3, 2],
15+
x: ["2019-09-02", "2019-10-10", "2019-11-12", "2019-12-22"]
16+
}];
17+
18+
var layout = {xaxis: {type: 'date'}};
19+
20+
var config = {doubleClickDelay: 1000}
21+
22+
Plotly.newPlot("myDiv", data, layout, config)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Edit in Chart Studio Modebar Button
3+
language: plotly_js
4+
suite: configuration
5+
order: 11
6+
sitemap: false
7+
arrangement: horizontal
8+
markdown_content: |
9+
10+
---
11+
var data = [{
12+
y: [1, 2, 1, 3, 4, 2],
13+
type: 'line'
14+
}]
15+
var config = {showEditInChartStudio: true}
16+
17+
Plotly.newPlot('myDiv', data, {}, config)

0 commit comments

Comments
 (0)