From da0f79659eff156351f39e86cb9627637fe6f51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cmahdis-z=E2=80=9D?= <“maahhddiiss@gmail.com”> Date: Tue, 29 Oct 2019 13:35:50 -0400 Subject: [PATCH 1/3] doubleClickDelay.js --- .../2019-10-24-double-click-delay.html | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 _posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html diff --git a/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html b/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html new file mode 100755 index 000000000000..397369ec4e31 --- /dev/null +++ b/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html @@ -0,0 +1,24 @@ +--- +name: Double CLick Delay +plot_url: https://codepen.io/plotly/embed/VwwMLBQ/?height=500&theme-id=15263&default-tab=result +language: plotly_js +suite: configuration +order: 11 +sitemap: false +arrangement: horizontal +markdown_content: | + 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). + This setting propagates to all on-subplot double clicks, (except for geo and mapbox). +--- +var gd = document.getElementById('graphDiv'); +var data = [{ + type: "bar", + y: [3, 5, 3, 2], + x: ["2019-09-02", "2019-10-10", "2019-11-12", "2019-12-22"] +}]; + +var layout = {xaxis: {type: 'date'}}; + +var config = {doubleClickDelay: 1000} + +Plotly.newPlot(gd, data, layout, config) From e65327cc8dccd3ce9c9897bf7daba62b5339e6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cmahdis-z=E2=80=9D?= <“maahhddiiss@gmail.com”> Date: Tue, 29 Oct 2019 16:43:51 -0400 Subject: [PATCH 2/3] Edit in chart studio button in modebar --- .../2019-10-24-edit-in-chart-studio.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 _posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html diff --git a/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html b/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html new file mode 100755 index 000000000000..29c5d0ca689b --- /dev/null +++ b/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html @@ -0,0 +1,18 @@ +--- +name: Edit in Chart Studio Modebar Button +plot_url: https://codepen.io/plotly/embed/gOOGwMw/?height=500&theme-id=15263&default-tab=result +language: plotly_js +suite: configuration +order: 11 +sitemap: false +arrangement: horizontal +markdown_content: | + +--- +var data = [{ + y: [1, 2, 1, 3, 4, 2], + type: 'line' +}] +var config = {showEditInChartStudio: true} + +Plotly.newPlot('graph', data, {}, config) From 0314f365be2db9356a662dfeaf1dedbea94461bb Mon Sep 17 00:00:00 2001 From: Joseph Damiba Date: Fri, 20 Dec 2019 01:12:00 -0500 Subject: [PATCH 3/3] textemplate example charts will be inlined once branch is merged --- .../config-options/2019-10-24-double-click-delay.html | 6 ++---- .../config-options/2019-10-24-edit-in-chart-studio.html | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html b/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html index 397369ec4e31..75b4334d5c4b 100755 --- a/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html +++ b/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html @@ -1,6 +1,5 @@ --- -name: Double CLick Delay -plot_url: https://codepen.io/plotly/embed/VwwMLBQ/?height=500&theme-id=15263&default-tab=result +name: Double Click Delay language: plotly_js suite: configuration order: 11 @@ -10,7 +9,6 @@ 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). This setting propagates to all on-subplot double clicks, (except for geo and mapbox). --- -var gd = document.getElementById('graphDiv'); var data = [{ type: "bar", y: [3, 5, 3, 2], @@ -21,4 +19,4 @@ var config = {doubleClickDelay: 1000} -Plotly.newPlot(gd, data, layout, config) +Plotly.newPlot("myDiv", data, layout, config) diff --git a/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html b/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html index 29c5d0ca689b..cfd6e73b4c2b 100755 --- a/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html +++ b/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html @@ -1,6 +1,5 @@ --- name: Edit in Chart Studio Modebar Button -plot_url: https://codepen.io/plotly/embed/gOOGwMw/?height=500&theme-id=15263&default-tab=result language: plotly_js suite: configuration order: 11 @@ -15,4 +14,4 @@ }] var config = {showEditInChartStudio: true} -Plotly.newPlot('graph', data, {}, config) +Plotly.newPlot('myDiv', data, {}, config)