-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-plotly.clog
35 lines (35 loc) · 1.67 KB
/
test-plotly.clog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<data id="I3870083903" data-in-package="clog-plotly" data-custom-slots="" data-clog-next-id="5" data-clog-title="test-panel"></data><div style="width: 400px; height: 300px; box-sizing: content-box; position: absolute; left: 57px; top: 23px;" data-clog-type="clog-plotly" data-clog-composite-control="t" data-clog-name="clog-plotly-1" data-on-create="(clog-plotly::new-plot-plotly target
"[
{
type: 'scatter',
x: [1, 2, 3],
y: [3, 1, 6],
marker: {
color: 'rgb(16, 32, 77)'
}
},
{
type: 'bar',
x: [1, 2, 3],
y: [3, 1, 6],
name: 'bar chart example'
}
]"
"{
title: 'simple example',
xaxis: {
title: 'time'
},
annotations: [
{
text: 'simple annotation',
x: 0,
xref: 'paper',
y: 0,
yref: 'paper'
}
]
}")" class="w3-border" data-on-plotly-to-image="(create-img panel :url-src data)
"></div><button data-clog-type="button" data-clog-name="button-3" style="box-sizing: content-box; position: absolute; left: 482px; top: 92px; width: 120px;" data-on-click="(to-image-plotly (clog-plotly-1 panel) "{format: 'png', width: 800, height: 600}")
">get png</button><button data-clog-type="button" data-clog-name="button-4" style="box-sizing: content-box; position: absolute; left: 482px; top: 131px; width: 120px;" data-on-click="(download-image-plotly (clog-plotly-1 panel)
"{format: 'png', width: 800, height: 600, filename: 'newplot'}")">download png</button>