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..75b4334d5c4b --- /dev/null +++ b/_posts/plotly_js/fundamentals/config-options/2019-10-24-double-click-delay.html @@ -0,0 +1,22 @@ +--- +name: Double Click Delay +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 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("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 new file mode 100755 index 000000000000..cfd6e73b4c2b --- /dev/null +++ b/_posts/plotly_js/fundamentals/config-options/2019-10-24-edit-in-chart-studio.html @@ -0,0 +1,17 @@ +--- +name: Edit in Chart Studio Modebar Button +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('myDiv', data, {}, config)