Skip to content

Commit 16848b3

Browse files
committed
improve treemap image test with unifromtext and pathbar custom font
1 parent 6a4b451 commit 16848b3

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed
-3.77 KB
Loading

test/image/mocks/uniformtext_treemap.json

+23-9
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
"textinfo": "label",
141141
"textfont": {
142142
"family": "Raleway, sans-serif",
143-
"color": "#FFF"
143+
"color": "#FFF",
144+
"size": 15
144145
},
145146
"domain": {
146147
"x": [
@@ -217,9 +218,17 @@
217218
"Zulu"
218219
],
219220
"textinfo": "label",
220-
"textfont": {
221+
"insidetextfont": {
221222
"family": "Courier New, monospace",
222-
"color": "#000"
223+
"color": "#000",
224+
"size": 10
225+
},
226+
"pathbar": {
227+
"textfont": {
228+
"family": "Times New Roman, Times, serif",
229+
"color": "#FF0",
230+
"size": 20
231+
}
223232
},
224233
"domain": {
225234
"x": [
@@ -296,9 +305,17 @@
296305
"Zulu"
297306
],
298307
"textinfo": "label",
299-
"textfont": {
308+
"insidetextfont": {
300309
"family": "Times New Roman, Times, serif",
301-
"color": "#FF0"
310+
"color": "#FF0",
311+
"size": 20
312+
},
313+
"pathbar": {
314+
"textfont": {
315+
"family": "Courier New, monospace",
316+
"color": "#000",
317+
"size": 10
318+
}
302319
},
303320
"domain": {
304321
"x": [
@@ -326,11 +343,8 @@
326343
"l": 10,
327344
"r": 10
328345
},
329-
"font": {
330-
"size": 20
331-
},
332346
"uniformtext": {
333-
"minsize": 20,
347+
"minsize": 15,
334348
"mode": "hide"
335349
}
336350
}

0 commit comments

Comments
 (0)