You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snapshot.md
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Where do we attach toImage on the graph div?
10
10
Is it _toImage?
11
11
Do we just require /snapshot and bind to `this`?
12
12
13
+
Will any of the chart types require special snapshot abilities or features?
14
+
13
15
What is the expected use case of our new ability?
14
16
15
17
How do we piggyback on the snapshot button in the toolbar?
@@ -25,4 +27,16 @@ Are there reference points from other libraries that we could mimic or learn fro
25
27
26
28
`Plotly.Snapshot.clone` could be used to resize by adding this to `options` when/if we use `Plotly.plot` with our cloned `div`. We could also dynamically show a resulting view in a modal or something similar and adjust with `Plotly.relayout`.
27
29
28
-
`Plotly.Snapshot.clone` by default sets `staticPlot:true` in `config`.
30
+
`Plotly.Snapshot.clone` by default sets `staticPlot:true` in `config`.
31
+
32
+
A very basic way to attach this assuming there is a modebar would be to do something like this.
0 commit comments