Skip to content

Commit 0195049

Browse files
committed
Rename mocks and add horizontal example
1 parent 5ec6f66 commit 0195049

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"data": [
3+
{
4+
"colorbar": {
5+
"orientation": "h",
6+
"yref": "container",
7+
"y": 0,
8+
"yanchor": "bottom",
9+
"thickness": 10,
10+
"ticks": "outside",
11+
"bgcolor": "rgba(255,255,0,0.5)",
12+
"borderwidth": 4,
13+
"bordercolor": "gray",
14+
"title": {
15+
"side": "left",
16+
"text": "Colorbar<br>title",
17+
"font": {
18+
"size": 16
19+
}
20+
}
21+
},
22+
"z": [
23+
[
24+
1,
25+
3,
26+
5
27+
],
28+
[
29+
4,
30+
7,
31+
10
32+
],
33+
[
34+
7,
35+
11,
36+
14
37+
]
38+
],
39+
"type": "heatmap"
40+
}
41+
],
42+
"layout": {
43+
"margin": {"l": 0, "r": 0, "t": 0, "b": 0},
44+
"height": 300,
45+
"width": 400,
46+
"xaxis": {"automargin": true, "title": {"text": "X-axis title"}},
47+
"title": {"text": "Colorbar with `yref='container'` | horizontal", "automargin": true}
48+
}
49+
}

test/image/mocks/zz-container-colorbar.json renamed to test/image/mocks/zz-container-colorbar_vertical.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"height": 300,
4343
"width": 400,
4444
"yaxis": {"automargin": true, "side": "right", "title": {"text": "Y-axis title"}},
45-
"title": {"text": "Colorbar with `xref='container'`", "automargin": true}
45+
"title": {"text": "Colorbar with `xref='container' | vertical`", "automargin": true}
4646
}
4747
}

0 commit comments

Comments
 (0)