Skip to content

Commit 9d9aaa7

Browse files
committed
add mock of bar and histogram on same subplot
1 parent 4875e59 commit 9d9aaa7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
13 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"data": [
3+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram" },
4+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar" },
5+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar", "yaxis":"y2" },
6+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram", "yaxis":"y2" }
7+
],
8+
"layout": {
9+
"yaxis": { "domain": [0,0.49] },
10+
"yaxis2": { "domain": [0.51, 1] },
11+
"showlegend": false
12+
}
13+
}

0 commit comments

Comments
 (0)