Skip to content

Commit fea81e4

Browse files
committed
validate bar_* mocks
1 parent 8a56627 commit fea81e4

7 files changed

+10
-31
lines changed

test/image/mocks/bar-like_textangle45.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
"invisible"
1313
],
1414
"type": "bar",
15-
"textinfo": "text",
1615
"textposition": "auto",
1716
"textangle": -45,
18-
"xaxis": "x1",
19-
"yaxis": "y1"
17+
"xaxis": "x",
18+
"yaxis": "y"
2019
},
2120
{
2221
"y": [
@@ -30,11 +29,10 @@
3029
"visible"
3130
],
3231
"type": "bar",
33-
"textinfo": "text",
3432
"textposition": "auto",
3533
"textangle": -45,
36-
"xaxis": "x1",
37-
"yaxis": "y1"
34+
"xaxis": "x",
35+
"yaxis": "y"
3836
},
3937
{
4038
"y": [
@@ -48,7 +46,6 @@
4846
"invisible"
4947
],
5048
"type": "bar",
51-
"textinfo": "text",
5249
"textposition": "inside",
5350
"textangle": -45,
5451
"xaxis": "x2",
@@ -66,7 +63,6 @@
6663
"invisible"
6764
],
6865
"type": "bar",
69-
"textinfo": "text",
7066
"textposition": "inside",
7167
"textangle": -45,
7268
"xaxis": "x2",

test/image/mocks/bar-like_textangle60.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
"invisible"
1313
],
1414
"type": "bar",
15-
"textinfo": "text",
1615
"textposition": "auto",
1716
"textangle": -60,
18-
"xaxis": "x1",
19-
"yaxis": "y1"
17+
"xaxis": "x",
18+
"yaxis": "y"
2019
},
2120
{
2221
"y": [
@@ -30,11 +29,10 @@
3029
"visible"
3130
],
3231
"type": "bar",
33-
"textinfo": "text",
3432
"textposition": "auto",
3533
"textangle": -60,
36-
"xaxis": "x1",
37-
"yaxis": "y1"
34+
"xaxis": "x",
35+
"yaxis": "y"
3836
},
3937
{
4038
"y": [
@@ -48,7 +46,6 @@
4846
"invisible"
4947
],
5048
"type": "bar",
51-
"textinfo": "text",
5249
"textposition": "inside",
5350
"textangle": -60,
5451
"xaxis": "x2",
@@ -66,7 +63,6 @@
6663
"invisible"
6764
],
6865
"type": "bar",
69-
"textinfo": "text",
7066
"textposition": "inside",
7167
"textangle": -60,
7268
"xaxis": "x2",

test/image/mocks/bar_attrs_group_norm.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"text":"50%",
55
"textposition":"inside",
6-
"outsidetextfont": {"size":32},
76
"base":[100,40,25,10],
87
"x":[-50,10,25,40],
98
"type":"bar"

test/image/mocks/bar_attrs_overlay.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"xaxis": {"showgrid":true},
3333
"height":400,
3434
"width":400,
35-
"barmode":"overlay",
36-
"barnorm":""
35+
"barmode":"overlay"
3736
}
3837
}

test/image/mocks/bar_axis_textangle_outside.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
],
2121
"textposition": "outside",
2222
"cliponaxis": false,
23-
"textangle": -15,
24-
"textinfo": "value+percent initial+percent previous+percent total"
23+
"textangle": -15
2524
},
2625
{
2726
"type": "bar",
@@ -44,7 +43,6 @@
4443
"textposition": "outside",
4544
"cliponaxis": false,
4645
"textangle": 135,
47-
"textinfo": "value+percent initial+percent previous+percent total",
4846
"xaxis": "x2",
4947
"yaxis": "y2"
5048
},
@@ -69,7 +67,6 @@
6967
"textposition": "outside",
7068
"cliponaxis": false,
7169
"textangle": 30,
72-
"textinfo": "value+percent initial+percent previous+percent total",
7370
"xaxis": "x3",
7471
"yaxis": "y3"
7572
},
@@ -94,7 +91,6 @@
9491
"textposition": "outside",
9592
"cliponaxis": false,
9693
"textangle": -90,
97-
"textinfo": "value+percent initial+percent previous+percent total",
9894
"xaxis": "x4",
9995
"yaxis": "y4"
10096
}

test/image/mocks/bar_errorbars_inherit_color.json

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"x": [0, 1, 2, 3, 4],
55
"y": [0, 100, 500, 600, 0],
66
"type": "bar",
7-
"barmode": "group",
87
"error_y": {
98
"type": "sqrt"
109
}
@@ -13,7 +12,6 @@
1312
"x": [0, 1, 2, 3, 4],
1413
"y": [100, 200, 600, 700, 100],
1514
"type": "bar",
16-
"barmode": "group",
1715
"marker": {
1816
"line": {
1917
"width": 2,
@@ -28,7 +26,6 @@
2826
"x": [0, 1, 2, 3, 4],
2927
"y": [200, 300, 700, 800, 200],
3028
"type": "bar",
31-
"barmode": "group",
3229
"marker": {
3330
"color": "yellow"
3431
},
@@ -40,7 +37,6 @@
4037
"x": [0, 1, 2, 3, 4],
4138
"y": [300, 400, 800, 900, 300],
4239
"type": "bar",
43-
"barmode": "group",
4440
"marker": {
4541
"line": {
4642
"color": "green"
@@ -54,7 +50,6 @@
5450
"x": [0, 1, 2, 3, 4],
5551
"y": [400, 500, 900, 1000, 400],
5652
"type": "bar",
57-
"barmode": "group",
5853
"marker": {
5954
"line": {
6055
"color": "blue"
@@ -68,7 +63,6 @@
6863
],
6964
"layout": {
7065
"width": 600,
71-
"heigh": 600,
7266
"title": {
7367
"text": "Bar chart error bars inherit color from marker.line not marker"
7468
}

test/image/mocks/bar_multiline_labels.json

-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@
154154
"anchor": "x8",
155155
"tickangle": 45
156156
},
157-
"legend": "none",
158157
"height":800,
159158
"width":800
160159
}

0 commit comments

Comments
 (0)