Skip to content

Commit 0212372

Browse files
committed
improve image test by using relavant tickformats and colors
1 parent 33cf742 commit 0212372

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
-3.26 KB
Loading

test/image/mocks/period_positioning3.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"xperiod": 31557600000,
112112
"name": "bar (AVG-YEAR)",
113113
"type": "bar",
114+
"marker": { "color": "gray" },
114115
"y": [1, 2, 3, 4],
115116
"x": ["2001-01-01", "2002-01-01", "2003-01-01", "2004-01-01"],
116117
"xperiodalignment": "middle"
@@ -121,6 +122,7 @@
121122
"xperiod": 31557600000,
122123
"name": "scatter (AVG-YEAR)",
123124
"type": "scatter",
125+
"marker": { "color": "black" },
124126
"y": [1, 2, 3, 4],
125127
"x": ["2001-01-01", "2002-01-01", "2003-01-01", "2004-01-01"],
126128
"xperiodalignment": "end"
@@ -152,6 +154,7 @@
152154
},
153155
"xaxis3": {
154156
"dtick": "M3",
157+
"tickformat": "Q%q",
155158
"ticklabelmode": "period",
156159
"tickcolor": "black",
157160
"anchor": "y3",
@@ -162,6 +165,7 @@
162165
},
163166
"xaxis4": {
164167
"dtick": "M6",
168+
"tickformat": "%Y",
165169
"ticklabelmode": "period",
166170
"tickcolor": "black",
167171
"anchor": "y4",

0 commit comments

Comments
 (0)