Skip to content

Commit 3f173a4

Browse files
committed
test new histogram logic in images
1 parent ec12eab commit 3f173a4

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

test/image/baselines/hist_grouped.png

-908 Bytes
Loading

test/image/baselines/hist_stacked.png

-207 Bytes
Loading

test/image/mocks/hist_grouped.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"data":[{
3-
"x":["1","2","3","4"],
4-
"type":"histogram"
5-
},{
6-
"x":["1","2","3","4"],
7-
"type":"histogram"
3+
"x": [1, 1, 1, 2, 2],
4+
"type": "histogram"
5+
}, {
6+
"x": [1, 2, 3, 4],
7+
"type": "histogram"
88
}],
9-
"layout":{"height":300,"width":400}
9+
"layout": {"height": 300, "width": 400}
1010
}

test/image/mocks/hist_stacked.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"data":[{
3-
"x":["1","2","3","4"],
4-
"type":"histogram"
5-
},{
6-
"x":["1","2","3","4"],
7-
"type":"histogram"
2+
"data": [{
3+
"x": [1, 1, 1, 2, 2],
4+
"type": "histogram"
5+
}, {
6+
"x": [1, 2, 3, 4],
7+
"type": "histogram"
88
}],
9-
"layout":{"height":300,"width":400,"barmode":"stack"}
9+
"layout": {"height": 300, "width": 400, "barmode": "stack"}
1010
}

0 commit comments

Comments
 (0)