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

Skip to content

Commit 62cacdb

Browse files
committed
add baseline with a "toggle" updatemenu button
1 parent 576c54b commit 62cacdb

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
18.2 KB
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"data": [
3+
{
4+
"mode": "lines",
5+
"y": [1, 1],
6+
"line": {
7+
"width": 5,
8+
"color": "blue"
9+
}
10+
}
11+
],
12+
"layout": {
13+
"updatemenus": [
14+
{
15+
"type": "buttons",
16+
"buttons": [
17+
{
18+
"label": "toggle",
19+
"method": "restyle",
20+
"args": [
21+
"line.color",
22+
"blue"
23+
],
24+
"args2": [
25+
"line.color",
26+
"red"
27+
]
28+
}
29+
]
30+
}
31+
]
32+
}
33+
}

0 commit comments

Comments
 (0)