Skip to content

Commit 8f47a7a

Browse files
committed
validate uniformtext_* mocks
1 parent 64514ab commit 8f47a7a

6 files changed

+18
-42
lines changed

test/image/mocks/uniformtext_bar-like_10_auto.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
"invisible"
1313
],
1414
"type": "bar",
15-
"textinfo": "text",
1615
"textposition": "auto",
17-
"xaxis": "x1",
18-
"yaxis": "y1"
16+
"xaxis": "x",
17+
"yaxis": "y"
1918
},
2019
{
2120
"y": [
@@ -29,10 +28,9 @@
2928
"visible"
3029
],
3130
"type": "bar",
32-
"textinfo": "text",
3331
"textposition": "auto",
34-
"xaxis": "x1",
35-
"yaxis": "y1"
32+
"xaxis": "x",
33+
"yaxis": "y"
3634
},
3735
{
3836
"y": [
@@ -46,7 +44,6 @@
4644
"invisible"
4745
],
4846
"type": "bar",
49-
"textinfo": "text",
5047
"textposition": "inside",
5148
"xaxis": "x2",
5249
"yaxis": "y2"
@@ -63,7 +60,6 @@
6360
"invisible"
6461
],
6562
"type": "bar",
66-
"textinfo": "text",
6763
"textposition": "inside",
6864
"xaxis": "x2",
6965
"yaxis": "y2"

test/image/mocks/uniformtext_bar-like_8_horizontal.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
],
1414
"type": "bar",
1515
"textangle": 0,
16-
"textinfo": "text",
1716
"textposition": "auto",
18-
"xaxis": "x1",
19-
"yaxis": "y1"
17+
"xaxis": "x",
18+
"yaxis": "y"
2019
},
2120
{
2221
"y": [
@@ -31,10 +30,9 @@
3130
],
3231
"type": "bar",
3332
"textangle": 0,
34-
"textinfo": "text",
3533
"textposition": "auto",
36-
"xaxis": "x1",
37-
"yaxis": "y1"
34+
"xaxis": "x",
35+
"yaxis": "y"
3836
},
3937
{
4038
"y": [
@@ -49,7 +47,6 @@
4947
],
5048
"type": "bar",
5149
"textangle": 0,
52-
"textinfo": "text",
5350
"textposition": "inside",
5451
"xaxis": "x2",
5552
"yaxis": "y2"
@@ -67,7 +64,6 @@
6764
],
6865
"type": "bar",
6966
"textangle": 0,
70-
"textinfo": "text",
7167
"textposition": "inside",
7268
"xaxis": "x2",
7369
"yaxis": "y2"

test/image/mocks/uniformtext_bar-like_8_textangle.json

Lines changed: 4 additions & 8 deletions
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": -90,
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": -90,
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": -90,
5451
"xaxis": "x2",
@@ -66,7 +63,6 @@
6663
"invisible"
6764
],
6865
"type": "bar",
69-
"textinfo": "text",
7066
"textposition": "inside",
7167
"textangle": -90,
7268
"xaxis": "x2",

test/image/mocks/uniformtext_bar-like_8_textangle45.json

Lines changed: 4 additions & 8 deletions
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/uniformtext_bar_axis_textangle_inside.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
],
2121
"textposition": "inside",
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": "inside",
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": "inside",
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": "inside",
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/uniformtext_bar_axis_textangle_outside.json

Lines changed: 1 addition & 5 deletions
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
}

0 commit comments

Comments
 (0)