-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbar_chart_test.go
392 lines (375 loc) · 147 KB
/
bar_chart_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
package charts
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func makeBasicBarChartOption() BarChartOption {
seriesList := NewSeriesListBar([][]float64{
{2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3},
{2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3},
})
for index := range seriesList {
seriesList[index].Label.Show = True()
}
return BarChartOption{
Padding: NewBoxEqual(10),
SeriesList: seriesList,
XAxis: XAxisOption{
Data: []string{
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
},
},
YAxis: []YAxisOption{
{
Data: []string{
"Rainfall", "Evaporation",
},
},
},
}
}
func makeMinimalBarChartOption() BarChartOption {
opt := NewBarChartOptionWithData([][]float64{
{12, 24},
{24, 48},
})
opt.XAxis = XAxisOption{
Show: False(),
Data: []string{
"A", "B",
},
}
opt.YAxis[0].Show = False()
return opt
}
func makeFullBarChartStackedOption() BarChartOption {
seriesList := NewSeriesListBar([][]float64{
{4.9, 23.2, 25.6, 102.6, 142.2, 32.6, 20.0, 3.3},
{9.0, 26.4, 28.7, 144.6, 122.2, 48.7, 18.8, 2.3},
{80.0, 40.4, 28.4, 28.8, 24.4, 24.2, 40.8, 80.8},
}, BarSeriesOption{
Label: SeriesLabel{
Show: False(),
},
MarkPoint: NewMarkPoint("max"),
MarkLine: NewMarkLine("min", "max", "average"),
})
dataLabels := []string{"A", "B", "C"}
return BarChartOption{
Padding: NewBoxEqual(20),
SeriesList: seriesList,
StackSeries: True(),
XAxis: XAxisOption{
Data: []string{
"1", "2", "3", "4", "5", "6", "7", "8",
},
},
Legend: LegendOption{
Data: dataLabels,
},
YAxis: []YAxisOption{
{
RangeValuePaddingScale: FloatPointer(1.0),
Data: dataLabels,
},
},
}
}
func TestNewBarChartOptionWithData(t *testing.T) {
t.Parallel()
opt := NewBarChartOptionWithData([][]float64{
{12, 24},
{24, 48},
})
assert.Len(t, opt.SeriesList, 2)
assert.Equal(t, ChartTypeBar, opt.SeriesList[0].Type)
assert.Len(t, opt.YAxis, 1)
assert.Equal(t, defaultPadding, opt.Padding)
p := NewPainter(PainterOptions{})
assert.NoError(t, p.BarChart(opt))
}
func TestBarChart(t *testing.T) {
t.Parallel()
tests := []struct {
name string
defaultTheme bool
makeOptions func() BarChartOption
result string
}{
{
name: "default",
defaultTheme: true,
makeOptions: makeBasicBarChartOption,
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"19\" y=\"211\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"19\" y=\"250\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"19\" y=\"289\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"19\" y=\"328\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 92 365\nL 92 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 137 365\nL 137 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 182 365\nL 182 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 228 365\nL 228 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 273 365\nL 273 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 318 365\nL 318 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 363 365\nL 363 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 409 365\nL 409 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 454 365\nL 454 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 499 365\nL 499 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 544 365\nL 544 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 47 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"56\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"101\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"145\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"193\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"235\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"282\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"330\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"372\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"418\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"464\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"507\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"554\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 52 357\nL 68 357\nL 68 359\nL 52 359\nL 52 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 97 351\nL 113 351\nL 113 359\nL 97 359\nL 97 351\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 142 348\nL 158 348\nL 158 359\nL 142 359\nL 142 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 187 318\nL 203 318\nL 203 359\nL 187 359\nL 187 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 233 313\nL 249 313\nL 249 359\nL 233 359\nL 233 313\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 278 218\nL 294 218\nL 294 359\nL 278 359\nL 278 218\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 323 109\nL 339 109\nL 339 359\nL 323 359\nL 323 109\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 368 60\nL 384 60\nL 384 359\nL 368 359\nL 368 60\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 414 300\nL 430 300\nL 430 359\nL 414 359\nL 414 300\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 459 323\nL 475 323\nL 475 359\nL 459 359\nL 459 323\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 504 349\nL 520 349\nL 520 359\nL 504 359\nL 504 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 549 354\nL 565 354\nL 565 359\nL 549 359\nL 549 354\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 71 356\nL 87 356\nL 87 359\nL 71 359\nL 71 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 116 350\nL 132 350\nL 132 359\nL 116 359\nL 116 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 161 344\nL 177 344\nL 177 359\nL 161 359\nL 161 344\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 206 312\nL 222 312\nL 222 359\nL 206 359\nL 206 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 252 307\nL 268 307\nL 268 359\nL 252 359\nL 252 307\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 297 230\nL 313 230\nL 313 359\nL 297 359\nL 297 230\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 342 35\nL 358 35\nL 358 359\nL 342 359\nL 342 35\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 387 23\nL 403 23\nL 403 359\nL 387 359\nL 387 23\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 433 270\nL 449 270\nL 449 359\nL 433 359\nL 433 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 478 326\nL 494 326\nL 494 359\nL 478 359\nL 478 326\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 523 349\nL 539 349\nL 539 359\nL 523 359\nL 523 349\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 568 356\nL 584 356\nL 584 359\nL 568 359\nL 568 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"56\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"96\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"146\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"182\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"228\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"273\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"315\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"360\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"409\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"460\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"503\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"548\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"70\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"115\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"165\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"201\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"247\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"292\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"334\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"379\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"428\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"473\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"527\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "themed",
defaultTheme: false,
makeOptions: makeBasicBarChartOption,
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:rgb(40,40,40)\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"19\" y=\"211\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"19\" y=\"250\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"19\" y=\"289\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"19\" y=\"328\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(72,71,83);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 92 365\nL 92 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 137 365\nL 137 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 182 365\nL 182 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 228 365\nL 228 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 273 365\nL 273 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 318 365\nL 318 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 363 365\nL 363 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 409 365\nL 409 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 454 365\nL 454 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 499 365\nL 499 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 544 365\nL 544 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><path d=\"M 47 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(185,184,206);fill:none\"/><text x=\"56\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"101\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"145\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"193\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"235\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"282\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"330\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"372\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"418\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"464\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"507\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"554\" y=\"385\" style=\"stroke:none;fill:rgb(238,238,238);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 52 357\nL 68 357\nL 68 359\nL 52 359\nL 52 357\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 97 351\nL 113 351\nL 113 359\nL 97 359\nL 97 351\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 142 348\nL 158 348\nL 158 359\nL 142 359\nL 142 348\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 187 318\nL 203 318\nL 203 359\nL 187 359\nL 187 318\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 233 313\nL 249 313\nL 249 359\nL 233 359\nL 233 313\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 278 218\nL 294 218\nL 294 359\nL 278 359\nL 278 218\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 323 109\nL 339 109\nL 339 359\nL 323 359\nL 323 109\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 368 60\nL 384 60\nL 384 359\nL 368 359\nL 368 60\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 414 300\nL 430 300\nL 430 359\nL 414 359\nL 414 300\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 459 323\nL 475 323\nL 475 359\nL 459 359\nL 459 323\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 504 349\nL 520 349\nL 520 359\nL 504 359\nL 504 349\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 549 354\nL 565 354\nL 565 359\nL 549 359\nL 549 354\" style=\"stroke:none;fill:rgb(255,100,100)\"/><path d=\"M 71 356\nL 87 356\nL 87 359\nL 71 359\nL 71 356\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 116 350\nL 132 350\nL 132 359\nL 116 359\nL 116 350\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 161 344\nL 177 344\nL 177 359\nL 161 359\nL 161 344\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 206 312\nL 222 312\nL 222 359\nL 206 359\nL 206 312\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 252 307\nL 268 307\nL 268 359\nL 252 359\nL 252 307\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 297 230\nL 313 230\nL 313 359\nL 297 359\nL 297 230\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 342 35\nL 358 35\nL 358 359\nL 342 359\nL 342 35\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 387 23\nL 403 23\nL 403 359\nL 387 359\nL 387 23\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 433 270\nL 449 270\nL 449 359\nL 433 359\nL 433 270\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 478 326\nL 494 326\nL 494 359\nL 478 359\nL 478 326\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 523 349\nL 539 349\nL 539 359\nL 523 359\nL 523 349\" style=\"stroke:none;fill:rgb(255,210,100)\"/><path d=\"M 568 356\nL 584 356\nL 584 359\nL 568 359\nL 568 356\" style=\"stroke:none;fill:rgb(255,210,100)\"/><text x=\"56\" y=\"352\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"96\" y=\"346\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"146\" y=\"343\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"182\" y=\"313\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"228\" y=\"308\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"273\" y=\"213\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"315\" y=\"104\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"360\" y=\"55\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"409\" y=\"295\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"460\" y=\"318\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"503\" y=\"344\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"548\" y=\"349\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"70\" y=\"351\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"115\" y=\"345\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"165\" y=\"339\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"201\" y=\"307\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"247\" y=\"302\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"292\" y=\"225\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"334\" y=\"30\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"379\" y=\"18\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"428\" y=\"265\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"473\" y=\"321\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"527\" y=\"344\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "rounded_caps",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
opt.RoundedBarCaps = True()
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"19\" y=\"211\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"19\" y=\"250\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"19\" y=\"289\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"19\" y=\"328\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 92 365\nL 92 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 137 365\nL 137 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 182 365\nL 182 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 228 365\nL 228 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 273 365\nL 273 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 318 365\nL 318 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 363 365\nL 363 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 409 365\nL 409 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 454 365\nL 454 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 499 365\nL 499 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 544 365\nL 544 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 47 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"56\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"101\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"145\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"193\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"235\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"282\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"330\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"372\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"418\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"464\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"507\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"554\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 60 357\nL 60 357\nL 60 357\nA 8 8 90.00 0 1 68 365\nL 68 359\nL 52 359\nL 52 365\nL 52 365\nA 8 8 90.00 0 1 60 357\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 105 351\nL 105 351\nL 105 351\nA 8 8 90.00 0 1 113 359\nL 113 359\nL 97 359\nL 97 359\nL 97 359\nA 8 8 90.00 0 1 105 351\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 150 348\nL 150 348\nL 150 348\nA 8 8 90.00 0 1 158 356\nL 158 359\nL 142 359\nL 142 356\nL 142 356\nA 8 8 90.00 0 1 150 348\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 195 318\nL 195 318\nL 195 318\nA 8 8 90.00 0 1 203 326\nL 203 359\nL 187 359\nL 187 326\nL 187 326\nA 8 8 90.00 0 1 195 318\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 241 313\nL 241 313\nL 241 313\nA 8 8 90.00 0 1 249 321\nL 249 359\nL 233 359\nL 233 321\nL 233 321\nA 8 8 90.00 0 1 241 313\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 286 218\nL 286 218\nL 286 218\nA 8 8 90.00 0 1 294 226\nL 294 359\nL 278 359\nL 278 226\nL 278 226\nA 8 8 90.00 0 1 286 218\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 331 109\nL 331 109\nL 331 109\nA 8 8 90.00 0 1 339 117\nL 339 359\nL 323 359\nL 323 117\nL 323 117\nA 8 8 90.00 0 1 331 109\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 376 60\nL 376 60\nL 376 60\nA 8 8 90.00 0 1 384 68\nL 384 359\nL 368 359\nL 368 68\nL 368 68\nA 8 8 90.00 0 1 376 60\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 422 300\nL 422 300\nL 422 300\nA 8 8 90.00 0 1 430 308\nL 430 359\nL 414 359\nL 414 308\nL 414 308\nA 8 8 90.00 0 1 422 300\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 467 323\nL 467 323\nL 467 323\nA 8 8 90.00 0 1 475 331\nL 475 359\nL 459 359\nL 459 331\nL 459 331\nA 8 8 90.00 0 1 467 323\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 512 349\nL 512 349\nL 512 349\nA 8 8 90.00 0 1 520 357\nL 520 359\nL 504 359\nL 504 357\nL 504 357\nA 8 8 90.00 0 1 512 349\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 557 354\nL 557 354\nL 557 354\nA 8 8 90.00 0 1 565 362\nL 565 359\nL 549 359\nL 549 362\nL 549 362\nA 8 8 90.00 0 1 557 354\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 79 356\nL 79 356\nL 79 356\nA 8 8 90.00 0 1 87 364\nL 87 359\nL 71 359\nL 71 364\nL 71 364\nA 8 8 90.00 0 1 79 356\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 124 350\nL 124 350\nL 124 350\nA 8 8 90.00 0 1 132 358\nL 132 359\nL 116 359\nL 116 358\nL 116 358\nA 8 8 90.00 0 1 124 350\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 169 344\nL 169 344\nL 169 344\nA 8 8 90.00 0 1 177 352\nL 177 359\nL 161 359\nL 161 352\nL 161 352\nA 8 8 90.00 0 1 169 344\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 214 312\nL 214 312\nL 214 312\nA 8 8 90.00 0 1 222 320\nL 222 359\nL 206 359\nL 206 320\nL 206 320\nA 8 8 90.00 0 1 214 312\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 260 307\nL 260 307\nL 260 307\nA 8 8 90.00 0 1 268 315\nL 268 359\nL 252 359\nL 252 315\nL 252 315\nA 8 8 90.00 0 1 260 307\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 305 230\nL 305 230\nL 305 230\nA 8 8 90.00 0 1 313 238\nL 313 359\nL 297 359\nL 297 238\nL 297 238\nA 8 8 90.00 0 1 305 230\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 350 35\nL 350 35\nL 350 35\nA 8 8 90.00 0 1 358 43\nL 358 359\nL 342 359\nL 342 43\nL 342 43\nA 8 8 90.00 0 1 350 35\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 395 23\nL 395 23\nL 395 23\nA 8 8 90.00 0 1 403 31\nL 403 359\nL 387 359\nL 387 31\nL 387 31\nA 8 8 90.00 0 1 395 23\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 441 270\nL 441 270\nL 441 270\nA 8 8 90.00 0 1 449 278\nL 449 359\nL 433 359\nL 433 278\nL 433 278\nA 8 8 90.00 0 1 441 270\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 486 326\nL 486 326\nL 486 326\nA 8 8 90.00 0 1 494 334\nL 494 359\nL 478 359\nL 478 334\nL 478 334\nA 8 8 90.00 0 1 486 326\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 531 349\nL 531 349\nL 531 349\nA 8 8 90.00 0 1 539 357\nL 539 359\nL 523 359\nL 523 357\nL 523 357\nA 8 8 90.00 0 1 531 349\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 576 356\nL 576 356\nL 576 356\nA 8 8 90.00 0 1 584 364\nL 584 359\nL 568 359\nL 568 364\nL 568 364\nA 8 8 90.00 0 1 576 356\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"56\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"96\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"146\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"182\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"228\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"273\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"315\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"360\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"409\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"460\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"503\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"548\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"70\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"115\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"165\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"201\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"247\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"292\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"334\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"379\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"428\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"473\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"527\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "custom_font",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
customFont := NewFontStyleWithSize(4.0).WithColor(ColorBlue)
opt.Legend.FontStyle = customFont
opt.XAxis.FontStyle = customFont
opt.Title.FontStyle = customFont
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"19\" y=\"211\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"19\" y=\"250\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"19\" y=\"289\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"19\" y=\"328\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 92 365\nL 92 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 137 365\nL 137 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 182 365\nL 182 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 228 365\nL 228 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 273 365\nL 273 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 318 365\nL 318 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 363 365\nL 363 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 409 365\nL 409 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 454 365\nL 454 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 499 365\nL 499 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 544 365\nL 544 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 47 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"65\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"110\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"154\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"201\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"245\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"291\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"337\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"381\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"427\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"472\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"516\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"563\" y=\"375\" style=\"stroke:none;fill:blue;font-size:5.1px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 52 357\nL 68 357\nL 68 359\nL 52 359\nL 52 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 97 351\nL 113 351\nL 113 359\nL 97 359\nL 97 351\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 142 348\nL 158 348\nL 158 359\nL 142 359\nL 142 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 187 318\nL 203 318\nL 203 359\nL 187 359\nL 187 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 233 313\nL 249 313\nL 249 359\nL 233 359\nL 233 313\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 278 218\nL 294 218\nL 294 359\nL 278 359\nL 278 218\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 323 109\nL 339 109\nL 339 359\nL 323 359\nL 323 109\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 368 60\nL 384 60\nL 384 359\nL 368 359\nL 368 60\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 414 300\nL 430 300\nL 430 359\nL 414 359\nL 414 300\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 459 323\nL 475 323\nL 475 359\nL 459 359\nL 459 323\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 504 349\nL 520 349\nL 520 359\nL 504 359\nL 504 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 549 354\nL 565 354\nL 565 359\nL 549 359\nL 549 354\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 71 356\nL 87 356\nL 87 359\nL 71 359\nL 71 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 116 350\nL 132 350\nL 132 359\nL 116 359\nL 116 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 161 344\nL 177 344\nL 177 359\nL 161 359\nL 161 344\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 206 312\nL 222 312\nL 222 359\nL 206 359\nL 206 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 252 307\nL 268 307\nL 268 359\nL 252 359\nL 252 307\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 297 230\nL 313 230\nL 313 359\nL 297 359\nL 297 230\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 342 35\nL 358 35\nL 358 359\nL 342 359\nL 342 35\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 387 23\nL 403 23\nL 403 359\nL 387 359\nL 387 23\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 433 270\nL 449 270\nL 449 359\nL 433 359\nL 433 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 478 326\nL 494 326\nL 494 359\nL 478 359\nL 478 326\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 523 349\nL 539 349\nL 539 359\nL 523 359\nL 523 349\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 568 356\nL 584 356\nL 584 359\nL 568 359\nL 568 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"56\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"96\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"146\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"182\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"228\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"273\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"315\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"360\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"409\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"460\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"503\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"548\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"70\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"115\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"165\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"201\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"247\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"292\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"334\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"379\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"428\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"473\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"527\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "boundary_gap_enable",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
opt.XAxis.BoundaryGap = True()
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"19\" y=\"211\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"19\" y=\"250\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"19\" y=\"289\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"19\" y=\"328\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 92 365\nL 92 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 137 365\nL 137 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 182 365\nL 182 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 228 365\nL 228 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 273 365\nL 273 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 318 365\nL 318 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 363 365\nL 363 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 409 365\nL 409 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 454 365\nL 454 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 499 365\nL 499 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 544 365\nL 544 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 47 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"56\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"101\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"145\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"193\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"235\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"282\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"330\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"372\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"418\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"464\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"507\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"554\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 52 357\nL 68 357\nL 68 359\nL 52 359\nL 52 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 97 351\nL 113 351\nL 113 359\nL 97 359\nL 97 351\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 142 348\nL 158 348\nL 158 359\nL 142 359\nL 142 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 187 318\nL 203 318\nL 203 359\nL 187 359\nL 187 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 233 313\nL 249 313\nL 249 359\nL 233 359\nL 233 313\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 278 218\nL 294 218\nL 294 359\nL 278 359\nL 278 218\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 323 109\nL 339 109\nL 339 359\nL 323 359\nL 323 109\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 368 60\nL 384 60\nL 384 359\nL 368 359\nL 368 60\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 414 300\nL 430 300\nL 430 359\nL 414 359\nL 414 300\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 459 323\nL 475 323\nL 475 359\nL 459 359\nL 459 323\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 504 349\nL 520 349\nL 520 359\nL 504 359\nL 504 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 549 354\nL 565 354\nL 565 359\nL 549 359\nL 549 354\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 71 356\nL 87 356\nL 87 359\nL 71 359\nL 71 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 116 350\nL 132 350\nL 132 359\nL 116 359\nL 116 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 161 344\nL 177 344\nL 177 359\nL 161 359\nL 161 344\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 206 312\nL 222 312\nL 222 359\nL 206 359\nL 206 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 252 307\nL 268 307\nL 268 359\nL 252 359\nL 252 307\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 297 230\nL 313 230\nL 313 359\nL 297 359\nL 297 230\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 342 35\nL 358 35\nL 358 359\nL 342 359\nL 342 35\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 387 23\nL 403 23\nL 403 359\nL 387 359\nL 387 23\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 433 270\nL 449 270\nL 449 359\nL 433 359\nL 433 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 478 326\nL 494 326\nL 494 359\nL 478 359\nL 478 326\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 523 349\nL 539 349\nL 539 359\nL 523 359\nL 523 349\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 568 356\nL 584 356\nL 584 359\nL 568 359\nL 568 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"56\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"96\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"146\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"182\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"228\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"273\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"315\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"360\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"409\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"460\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"503\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"548\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"70\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"115\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"165\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"201\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"247\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"292\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"334\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"379\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"428\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"473\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"527\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "boundary_gap_disable",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
opt.XAxis.BoundaryGap = False()
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"19\" y=\"211\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"19\" y=\"250\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"19\" y=\"289\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"19\" y=\"328\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 96 365\nL 96 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 145 365\nL 145 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 195 365\nL 195 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 244 365\nL 244 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 293 365\nL 293 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 343 365\nL 343 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 392 365\nL 392 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 441 365\nL 441 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 491 365\nL 491 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 540 365\nL 540 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 47 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"46\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"95\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"144\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"194\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"243\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"292\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"342\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"391\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"440\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"490\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"539\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"563\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 52 357\nL 68 357\nL 68 359\nL 52 359\nL 52 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 97 351\nL 113 351\nL 113 359\nL 97 359\nL 97 351\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 142 348\nL 158 348\nL 158 359\nL 142 359\nL 142 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 187 318\nL 203 318\nL 203 359\nL 187 359\nL 187 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 233 313\nL 249 313\nL 249 359\nL 233 359\nL 233 313\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 278 218\nL 294 218\nL 294 359\nL 278 359\nL 278 218\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 323 109\nL 339 109\nL 339 359\nL 323 359\nL 323 109\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 368 60\nL 384 60\nL 384 359\nL 368 359\nL 368 60\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 414 300\nL 430 300\nL 430 359\nL 414 359\nL 414 300\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 459 323\nL 475 323\nL 475 359\nL 459 359\nL 459 323\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 504 349\nL 520 349\nL 520 359\nL 504 359\nL 504 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 549 354\nL 565 354\nL 565 359\nL 549 359\nL 549 354\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 71 356\nL 87 356\nL 87 359\nL 71 359\nL 71 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 116 350\nL 132 350\nL 132 359\nL 116 359\nL 116 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 161 344\nL 177 344\nL 177 359\nL 161 359\nL 161 344\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 206 312\nL 222 312\nL 222 359\nL 206 359\nL 206 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 252 307\nL 268 307\nL 268 359\nL 252 359\nL 252 307\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 297 230\nL 313 230\nL 313 359\nL 297 359\nL 297 230\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 342 35\nL 358 35\nL 358 359\nL 342 359\nL 342 35\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 387 23\nL 403 23\nL 403 359\nL 387 359\nL 387 23\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 433 270\nL 449 270\nL 449 359\nL 433 359\nL 433 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 478 326\nL 494 326\nL 494 359\nL 478 359\nL 478 326\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 523 349\nL 539 349\nL 539 359\nL 523 359\nL 523 349\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 568 356\nL 584 356\nL 584 359\nL 568 359\nL 568 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"56\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"96\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"146\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"182\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"228\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"273\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"315\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"360\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"409\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"460\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"503\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"548\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"70\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"115\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"165\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"201\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"247\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"292\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"334\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"379\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"428\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"473\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"527\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "value_formatter",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
opt.ValueFormatter = func(f float64) string {
return "f"
}
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"17\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"133\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"172\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"211\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"250\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"289\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"328\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><text x=\"10\" y=\"367\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">f</text><path d=\"M 26 10\nL 590 10\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 48\nL 590 48\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 87\nL 590 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 126\nL 590 126\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 165\nL 590 165\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 204\nL 590 204\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 243\nL 590 243\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 282\nL 590 282\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 321\nL 590 321\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 26 365\nL 26 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 73 365\nL 73 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 120 365\nL 120 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 167 365\nL 167 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 214 365\nL 214 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 261 365\nL 261 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 308 365\nL 308 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 355 365\nL 355 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 402 365\nL 402 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 449 365\nL 449 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 496 365\nL 496 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 543 365\nL 543 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 590 365\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 26 360\nL 590 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"36\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"83\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"129\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"178\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"222\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"271\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"321\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jul</text><text x=\"364\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"412\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"460\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"505\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"553\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 31 357\nL 48 357\nL 48 359\nL 31 359\nL 31 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 78 351\nL 95 351\nL 95 359\nL 78 359\nL 78 351\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 125 348\nL 142 348\nL 142 359\nL 125 359\nL 125 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 172 318\nL 189 318\nL 189 359\nL 172 359\nL 172 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 219 313\nL 236 313\nL 236 359\nL 219 359\nL 219 313\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 266 218\nL 283 218\nL 283 359\nL 266 359\nL 266 218\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 313 109\nL 330 109\nL 330 359\nL 313 359\nL 313 109\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 360 60\nL 377 60\nL 377 359\nL 360 359\nL 360 60\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 407 300\nL 424 300\nL 424 359\nL 407 359\nL 407 300\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 454 323\nL 471 323\nL 471 359\nL 454 359\nL 454 323\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 501 349\nL 518 349\nL 518 359\nL 501 359\nL 501 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 548 354\nL 565 354\nL 565 359\nL 548 359\nL 548 354\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 51 356\nL 68 356\nL 68 359\nL 51 359\nL 51 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 98 350\nL 115 350\nL 115 359\nL 98 359\nL 98 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 145 344\nL 162 344\nL 162 359\nL 145 359\nL 145 344\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 192 312\nL 209 312\nL 209 359\nL 192 359\nL 192 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 239 307\nL 256 307\nL 256 359\nL 239 359\nL 239 307\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 286 230\nL 303 230\nL 303 359\nL 286 359\nL 286 230\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 333 35\nL 350 35\nL 350 359\nL 333 359\nL 333 35\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 380 23\nL 397 23\nL 397 359\nL 380 359\nL 380 23\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 427 270\nL 444 270\nL 444 359\nL 427 359\nL 427 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 474 326\nL 491 326\nL 491 359\nL 474 359\nL 474 326\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 521 349\nL 538 349\nL 538 359\nL 521 359\nL 521 349\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 568 356\nL 585 356\nL 585 359\nL 568 359\nL 568 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"35\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"77\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"129\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"167\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"214\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"261\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"305\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"352\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"402\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"455\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"500\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"547\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"50\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"97\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"149\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"187\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"234\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"281\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"325\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"372\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"422\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"469\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"525\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"567\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "bar_width_truncate",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
opt.XAxis.Show = False()
opt.YAxis[0].Show = False()
opt.BarWidth = 1000
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 15 357\nL 32 357\nL 32 359\nL 15 359\nL 15 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 63 351\nL 80 351\nL 80 359\nL 63 359\nL 63 351\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 111 348\nL 128 348\nL 128 359\nL 111 359\nL 111 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 160 318\nL 177 318\nL 177 359\nL 160 359\nL 160 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 208 313\nL 225 313\nL 225 359\nL 208 359\nL 208 313\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 256 218\nL 273 218\nL 273 359\nL 256 359\nL 256 218\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 305 109\nL 322 109\nL 322 359\nL 305 359\nL 305 109\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 353 60\nL 370 60\nL 370 359\nL 353 359\nL 353 60\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 401 300\nL 418 300\nL 418 359\nL 401 359\nL 401 300\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 450 323\nL 467 323\nL 467 359\nL 450 359\nL 450 323\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 498 349\nL 515 349\nL 515 359\nL 498 359\nL 498 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 546 354\nL 563 354\nL 563 359\nL 546 359\nL 546 354\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 35 356\nL 52 356\nL 52 359\nL 35 359\nL 35 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 83 350\nL 100 350\nL 100 359\nL 83 359\nL 83 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 131 344\nL 148 344\nL 148 359\nL 131 359\nL 131 344\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 180 312\nL 197 312\nL 197 359\nL 180 359\nL 180 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 228 307\nL 245 307\nL 245 359\nL 228 359\nL 228 307\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 276 230\nL 293 230\nL 293 359\nL 276 359\nL 276 230\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 325 35\nL 342 35\nL 342 359\nL 325 359\nL 325 35\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 373 23\nL 390 23\nL 390 359\nL 373 359\nL 373 23\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 421 270\nL 438 270\nL 438 359\nL 421 359\nL 421 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 470 326\nL 487 326\nL 487 359\nL 470 359\nL 470 326\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 518 349\nL 535 349\nL 535 359\nL 518 359\nL 518 349\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 566 356\nL 583 356\nL 583 359\nL 566 359\nL 566 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"19\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"62\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"115\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"155\" y=\"313\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"203\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"251\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"297\" y=\"104\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"345\" y=\"55\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"396\" y=\"295\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"451\" y=\"318\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"497\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"545\" y=\"349\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"34\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"82\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"135\" y=\"339\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"175\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"223\" y=\"302\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"271\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"317\" y=\"30\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"365\" y=\"18\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"416\" y=\"265\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"465\" y=\"321\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"522\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"565\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "bar_width_thin",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
opt.BarWidth = 2
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 155 304\nL 157 304\nL 157 349\nL 155 349\nL 155 304\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 435 225\nL 437 225\nL 437 349\nL 435 349\nL 435 225\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 162 225\nL 164 225\nL 164 349\nL 162 349\nL 162 225\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 442 67\nL 444 67\nL 444 349\nL 442 349\nL 442 67\" style=\"stroke:none;fill:rgb(145,204,117)\"/></svg>",
},
{
name: "bar_margin_narrow",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
opt.BarMargin = FloatPointer(0)
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 30 304\nL 160 304\nL 160 349\nL 30 349\nL 30 304\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 225\nL 440 225\nL 440 349\nL 310 349\nL 310 225\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 160 225\nL 290 225\nL 290 349\nL 160 349\nL 160 225\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 440 67\nL 570 67\nL 570 349\nL 440 349\nL 440 67\" style=\"stroke:none;fill:rgb(145,204,117)\"/></svg>",
},
{
name: "bar_margin_wide",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
opt.BarMargin = FloatPointer(1000) // will be limited to fit graph
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 30 304\nL 90 304\nL 90 349\nL 30 349\nL 30 304\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 225\nL 370 225\nL 370 349\nL 310 349\nL 310 225\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 230 225\nL 290 225\nL 290 349\nL 230 349\nL 230 225\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 510 67\nL 570 67\nL 570 349\nL 510 349\nL 510 67\" style=\"stroke:none;fill:rgb(145,204,117)\"/></svg>",
},
{
name: "bar_width_and_narrow_margin",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
opt.BarWidth = 10
opt.BarMargin = FloatPointer(0)
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 150 304\nL 160 304\nL 160 349\nL 150 349\nL 150 304\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 430 225\nL 440 225\nL 440 349\nL 430 349\nL 430 225\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 160 225\nL 170 225\nL 170 349\nL 160 349\nL 160 225\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 440 67\nL 450 67\nL 450 349\nL 440 349\nL 440 67\" style=\"stroke:none;fill:rgb(145,204,117)\"/></svg>",
},
{
name: "bar_width_and_wide_margin",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
opt.BarWidth = 10
opt.BarMargin = FloatPointer(1000) // will be limited for readability
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 85 304\nL 95 304\nL 95 349\nL 85 349\nL 85 304\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 365 225\nL 375 225\nL 375 349\nL 365 349\nL 365 225\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 225 225\nL 235 225\nL 235 349\nL 225 349\nL 225 225\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 505 67\nL 515 67\nL 515 349\nL 505 349\nL 505 67\" style=\"stroke:none;fill:rgb(145,204,117)\"/></svg>",
},
{
name: "double_yaxis",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeBasicBarChartOption()
opt.Theme = GetTheme(ThemeLight)
opt.Title.Text = "T"
opt.SeriesList[1].YAxisIndex = 1
opt.YAxis = append(opt.YAxis, opt.YAxis[0])
opt.YAxis[0].AxisColor = opt.Theme.GetSeriesColor(0)
opt.YAxis[1].AxisColor = opt.Theme.GetSeriesColor(1)
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><text x=\"10\" y=\"25\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">T</text><text x=\"563\" y=\"47\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">189</text><text x=\"563\" y=\"82\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">168</text><text x=\"563\" y=\"118\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">147</text><text x=\"563\" y=\"153\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">126</text><text x=\"563\" y=\"189\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">105</text><text x=\"563\" y=\"224\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">84</text><text x=\"563\" y=\"260\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">63</text><text x=\"563\" y=\"295\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">42</text><text x=\"563\" y=\"331\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">21</text><text x=\"563\" y=\"367\" style=\"stroke:none;fill:rgb(145,204,117);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><text x=\"10\" y=\"47\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">180</text><text x=\"10\" y=\"82\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">160</text><text x=\"10\" y=\"118\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">140</text><text x=\"10\" y=\"153\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">120</text><text x=\"10\" y=\"189\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">100</text><text x=\"19\" y=\"224\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">80</text><text x=\"19\" y=\"260\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">60</text><text x=\"19\" y=\"295\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">40</text><text x=\"19\" y=\"331\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"28\" y=\"367\" style=\"stroke:none;fill:rgb(84,112,198);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 47 40\nL 553 40\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 75\nL 553 75\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 111\nL 553 111\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 146\nL 553 146\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 182\nL 553 182\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 217\nL 553 217\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 253\nL 553 253\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 288\nL 553 288\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 324\nL 553 324\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 47 365\nL 47 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 89 365\nL 89 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 131 365\nL 131 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 173 365\nL 173 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 215 365\nL 215 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 257 365\nL 257 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 342 365\nL 342 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 384 365\nL 384 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 426 365\nL 426 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 468 365\nL 468 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 510 365\nL 510 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 553 365\nL 553 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 47 360\nL 553 360\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"46\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jan</text><text x=\"97\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Feb</text><text x=\"138\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Mar</text><text x=\"182\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Apr</text><text x=\"221\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">May</text><text x=\"265\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Jun</text><text x=\"349\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Aug</text><text x=\"392\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Sep</text><text x=\"435\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Oct</text><text x=\"475\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Nov</text><text x=\"526\" y=\"385\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">Dec</text><path d=\"M 52 357\nL 66 357\nL 66 359\nL 52 359\nL 52 357\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 94 352\nL 108 352\nL 108 359\nL 94 359\nL 94 352\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 136 348\nL 150 348\nL 150 359\nL 136 359\nL 136 348\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 178 319\nL 192 319\nL 192 359\nL 178 359\nL 178 319\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 220 315\nL 234 315\nL 234 359\nL 220 359\nL 220 315\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 262 224\nL 276 224\nL 276 359\nL 262 359\nL 262 224\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 305 119\nL 319 119\nL 319 359\nL 305 359\nL 305 119\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 347 72\nL 361 72\nL 361 359\nL 347 359\nL 347 72\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 389 303\nL 403 303\nL 403 359\nL 389 359\nL 389 303\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 431 325\nL 445 325\nL 445 359\nL 431 359\nL 431 325\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 473 349\nL 487 349\nL 487 359\nL 473 359\nL 473 349\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 515 355\nL 529 355\nL 529 359\nL 515 359\nL 515 355\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 69 356\nL 83 356\nL 83 359\nL 69 359\nL 69 356\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 111 351\nL 125 351\nL 125 359\nL 111 359\nL 111 351\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 153 345\nL 167 345\nL 167 359\nL 153 359\nL 153 345\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 195 316\nL 209 316\nL 209 359\nL 195 359\nL 195 316\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 237 312\nL 251 312\nL 251 359\nL 237 359\nL 237 312\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 279 241\nL 293 241\nL 293 359\nL 279 359\nL 279 241\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 322 63\nL 336 63\nL 336 359\nL 322 359\nL 322 63\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 364 52\nL 378 52\nL 378 359\nL 364 359\nL 364 52\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 406 278\nL 420 278\nL 420 359\nL 406 359\nL 406 278\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 448 329\nL 462 329\nL 462 359\nL 448 359\nL 448 329\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 490 350\nL 504 350\nL 504 359\nL 490 359\nL 490 350\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 532 357\nL 546 357\nL 546 359\nL 532 359\nL 532 357\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"55\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"92\" y=\"347\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4.9</text><text x=\"139\" y=\"343\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"172\" y=\"314\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23.2</text><text x=\"214\" y=\"310\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25.6</text><text x=\"256\" y=\"219\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">76.7</text><text x=\"296\" y=\"114\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">135.6</text><text x=\"338\" y=\"67\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">162.2</text><text x=\"383\" y=\"298\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32.6</text><text x=\"431\" y=\"320\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"471\" y=\"344\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6.4</text><text x=\"513\" y=\"350\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><text x=\"67\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.6</text><text x=\"109\" y=\"346\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">5.9</text><text x=\"156\" y=\"340\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"189\" y=\"311\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26.4</text><text x=\"231\" y=\"307\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28.7</text><text x=\"273\" y=\"236\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">70.7</text><text x=\"313\" y=\"58\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">175.6</text><text x=\"355\" y=\"47\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">182.2</text><text x=\"400\" y=\"273\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48.7</text><text x=\"442\" y=\"324\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18.8</text><text x=\"493\" y=\"345\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"530\" y=\"352\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2.3</text></svg>",
},
{
name: "mark_line",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
for i := range opt.SeriesList {
opt.SeriesList[i].MarkLine = NewMarkLine("min", "max", "average")
}
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 30 304\nL 157 304\nL 157 349\nL 30 349\nL 30 304\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 225\nL 437 225\nL 437 349\nL 310 349\nL 310 225\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 162 225\nL 289 225\nL 289 349\nL 162 349\nL 162 225\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 442 67\nL 569 67\nL 569 349\nL 442 349\nL 442 67\" style=\"stroke:none;fill:rgb(145,204,117)\"/><circle cx=\"23\" cy=\"304\" r=\"3\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 304\nL 562 304\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 299\nL 578 304\nL 562 309\nL 567 304\nL 562 299\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"580\" y=\"308\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">12</text><circle cx=\"23\" cy=\"225\" r=\"3\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 225\nL 562 225\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 220\nL 578 225\nL 562 230\nL 567 225\nL 562 220\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"580\" y=\"229\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><circle cx=\"23\" cy=\"265\" r=\"3\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 265\nL 562 265\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 260\nL 578 265\nL 562 270\nL 567 265\nL 562 260\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"580\" y=\"269\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18</text><circle cx=\"23\" cy=\"225\" r=\"3\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 225\nL 562 225\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 220\nL 578 225\nL 562 230\nL 567 225\nL 562 220\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><text x=\"580\" y=\"229\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><circle cx=\"23\" cy=\"67\" r=\"3\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 67\nL 562 67\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 62\nL 578 67\nL 562 72\nL 567 67\nL 562 62\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><text x=\"580\" y=\"71\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48</text><circle cx=\"23\" cy=\"146\" r=\"3\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 146\nL 562 146\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 141\nL 578 146\nL 562 151\nL 567 146\nL 562 141\" style=\"stroke-width:1;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><text x=\"580\" y=\"150\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">36</text></svg>",
},
{
name: "mark_point",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeMinimalBarChartOption()
for i := range opt.SeriesList {
opt.SeriesList[i].MarkPoint = NewMarkPoint("min", "max")
}
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 30 277\nL 157 277\nL 157 349\nL 30 349\nL 30 277\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 204\nL 437 204\nL 437 349\nL 310 349\nL 310 204\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 162 204\nL 289 204\nL 289 349\nL 162 349\nL 162 204\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 442 57\nL 569 57\nL 569 349\nL 442 349\nL 442 57\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 90 269\nA 14 14 330.00 1 1 96 269\nL 93 256\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 79 256\nQ93,291 107,256\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><text x=\"86\" y=\"261\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">12</text><path d=\"M 370 196\nA 14 14 330.00 1 1 376 196\nL 373 183\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 359 183\nQ373,218 387,183\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><text x=\"366\" y=\"188\" style=\"stroke:none;fill:rgb(238,238,238);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><path d=\"M 222 196\nA 14 14 330.00 1 1 228 196\nL 225 183\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 211 183\nQ225,218 239,183\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"218\" y=\"188\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><path d=\"M 502 49\nA 14 14 330.00 1 1 508 49\nL 505 36\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 491 36\nQ505,71 519,36\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"498\" y=\"41\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48</text></svg>",
},
{
name: "stack_series",
defaultTheme: true,
makeOptions: makeFullBarChartStackedOption,
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 218 29\nL 248 29\" style=\"stroke-width:3;stroke:rgb(84,112,198);fill:none\"/><circle cx=\"233\" cy=\"29\" r=\"5\" style=\"stroke-width:3;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"250\" y=\"35\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">A</text><path d=\"M 281 29\nL 311 29\" style=\"stroke-width:3;stroke:rgb(145,204,117);fill:none\"/><circle cx=\"296\" cy=\"29\" r=\"5\" style=\"stroke-width:3;stroke:rgb(145,204,117);fill:rgb(145,204,117)\"/><text x=\"313\" y=\"35\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">B</text><path d=\"M 343 29\nL 373 29\" style=\"stroke-width:3;stroke:rgb(250,200,88);fill:none\"/><circle cx=\"358\" cy=\"29\" r=\"5\" style=\"stroke-width:3;stroke:rgb(250,200,88);fill:rgb(250,200,88)\"/><text x=\"375\" y=\"35\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">C</text><text x=\"20\" y=\"62\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">297</text><text x=\"20\" y=\"94\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">264</text><text x=\"20\" y=\"127\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">231</text><text x=\"20\" y=\"160\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">198</text><text x=\"20\" y=\"193\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">165</text><text x=\"20\" y=\"225\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">132</text><text x=\"29\" y=\"258\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">99</text><text x=\"29\" y=\"291\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">66</text><text x=\"29\" y=\"324\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">33</text><text x=\"38\" y=\"357\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">0</text><path d=\"M 57 55\nL 580 55\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 87\nL 580 87\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 120\nL 580 120\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 153\nL 580 153\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 186\nL 580 186\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 218\nL 580 218\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 251\nL 580 251\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 284\nL 580 284\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 317\nL 580 317\" style=\"stroke-width:1;stroke:rgb(224,230,242);fill:none\"/><path d=\"M 57 355\nL 57 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 122 355\nL 122 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 187 355\nL 187 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 253 355\nL 253 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 318 355\nL 318 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 383 355\nL 383 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 449 355\nL 449 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 514 355\nL 514 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 580 355\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 57 350\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"85\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">1</text><text x=\"150\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"216\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">3</text><text x=\"281\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">4</text><text x=\"346\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">5</text><text x=\"412\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"477\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"543\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">8</text><path d=\"M 67 346\nL 112 346\nL 112 350\nL 67 350\nL 67 346\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 132 327\nL 177 327\nL 177 350\nL 132 350\nL 132 327\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 197 325\nL 242 325\nL 242 350\nL 197 350\nL 197 325\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 263 249\nL 308 249\nL 308 350\nL 263 350\nL 263 249\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 328 209\nL 373 209\nL 373 350\nL 328 350\nL 328 209\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 393 318\nL 438 318\nL 438 350\nL 393 350\nL 393 318\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 459 331\nL 504 331\nL 504 350\nL 459 350\nL 459 331\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 524 347\nL 569 347\nL 569 350\nL 524 350\nL 524 347\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 67 338\nL 112 338\nL 112 346\nL 67 346\nL 67 338\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 132 301\nL 177 301\nL 177 327\nL 132 327\nL 132 301\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 197 297\nL 242 297\nL 242 325\nL 197 325\nL 197 297\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 263 106\nL 308 106\nL 308 249\nL 263 249\nL 263 106\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 328 88\nL 373 88\nL 373 209\nL 328 209\nL 328 88\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 393 270\nL 438 270\nL 438 318\nL 393 318\nL 393 270\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 459 313\nL 504 313\nL 504 331\nL 459 331\nL 459 313\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 524 345\nL 569 345\nL 569 347\nL 524 347\nL 524 345\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 67 259\nL 112 259\nL 112 338\nL 67 338\nL 67 259\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 132 261\nL 177 261\nL 177 301\nL 132 301\nL 132 261\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 197 269\nL 242 269\nL 242 297\nL 197 297\nL 197 269\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 263 78\nL 308 78\nL 308 106\nL 263 106\nL 263 78\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 328 64\nL 373 64\nL 373 88\nL 328 88\nL 328 64\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 393 246\nL 438 246\nL 438 270\nL 393 270\nL 393 246\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 459 273\nL 504 273\nL 504 313\nL 459 313\nL 459 273\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 524 265\nL 569 265\nL 569 345\nL 524 345\nL 524 265\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 347 201\nA 14 14 330.00 1 1 353 201\nL 350 188\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 336 188\nQ350,223 364,188\nZ\" style=\"stroke:none;fill:rgb(84,112,198)\"/><text x=\"337\" y=\"193\" style=\"stroke:none;fill:rgb(238,238,238);font-size:10.2px;font-family:'Roboto Medium',sans-serif\">142.2</text><path d=\"M 282 98\nA 14 14 330.00 1 1 288 98\nL 285 85\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 271 85\nQ285,120 299,85\nZ\" style=\"stroke:none;fill:rgb(145,204,117)\"/><text x=\"272\" y=\"90\" style=\"stroke:none;fill:rgb(70,70,70);font-size:10.2px;font-family:'Roboto Medium',sans-serif\">144.6</text><path d=\"M 543 257\nA 14 14 330.00 1 1 549 257\nL 546 244\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 532 244\nQ546,279 560,244\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><text x=\"533\" y=\"249\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">80.8</text><circle cx=\"60\" cy=\"347\" r=\"3\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 66 347\nL 562 347\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 342\nL 578 347\nL 562 352\nL 567 347\nL 562 342\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"580\" y=\"351\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3.3</text><circle cx=\"60\" cy=\"209\" r=\"3\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 66 209\nL 562 209\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 204\nL 578 209\nL 562 214\nL 567 209\nL 562 204\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"580\" y=\"213\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">142.2</text><circle cx=\"60\" cy=\"306\" r=\"3\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 66 306\nL 562 306\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 301\nL 578 306\nL 562 311\nL 567 306\nL 562 301\" style=\"stroke-width:1;stroke:rgb(84,112,198);fill:rgb(84,112,198)\"/><text x=\"580\" y=\"310\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">44.3</text></svg>",
},
{
name: "stack_series_capped_bar",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeFullBarChartStackedOption()
opt.RoundedBarCaps = True()
// disable some extra visuals
for i := range opt.SeriesList {
opt.SeriesList[i].Label.Show = True()
opt.SeriesList[i].Label.ValueFormatter = func(f float64) string {
return strconv.Itoa(int(f))
}
opt.SeriesList[i].MarkLine.Data = nil
opt.SeriesList[i].MarkPoint.Data = nil
}
opt.YAxis[0].Show = False()
opt.Legend.Show = False()
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 20 355\nL 20 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 90 355\nL 90 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 160 355\nL 160 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 230 355\nL 230 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 300 355\nL 300 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 370 355\nL 370 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 440 355\nL 440 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 510 355\nL 510 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 580 355\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 20 350\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"51\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">1</text><text x=\"121\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"191\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">3</text><text x=\"261\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">4</text><text x=\"331\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">5</text><text x=\"401\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"471\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"541\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">8</text><path d=\"M 30 345\nL 80 345\nL 80 350\nL 30 350\nL 30 345\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 100 325\nL 150 325\nL 150 350\nL 100 350\nL 100 325\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 170 322\nL 220 322\nL 220 350\nL 170 350\nL 170 322\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 240 236\nL 290 236\nL 290 350\nL 240 350\nL 240 236\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 192\nL 360 192\nL 360 350\nL 310 350\nL 310 192\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 380 314\nL 430 314\nL 430 350\nL 380 350\nL 380 314\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 450 328\nL 500 328\nL 500 350\nL 450 350\nL 450 328\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 520 347\nL 570 347\nL 570 350\nL 520 350\nL 520 347\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 30 335\nL 80 335\nL 80 345\nL 30 345\nL 30 335\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 100 296\nL 150 296\nL 150 325\nL 100 325\nL 100 296\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 170 291\nL 220 291\nL 220 322\nL 170 322\nL 170 291\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 240 76\nL 290 76\nL 290 236\nL 240 236\nL 240 76\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 310 57\nL 360 57\nL 360 192\nL 310 192\nL 310 57\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 380 260\nL 430 260\nL 430 314\nL 380 314\nL 380 260\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 450 308\nL 500 308\nL 500 328\nL 450 328\nL 450 308\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 520 345\nL 570 345\nL 570 347\nL 520 347\nL 520 345\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 55 247\nL 55 247\nL 55 247\nA 25 25 90.00 0 1 80 272\nL 80 335\nL 30 335\nL 30 272\nL 30 272\nA 25 25 90.00 0 1 55 247\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 125 252\nL 125 252\nL 125 252\nA 25 25 90.00 0 1 150 277\nL 150 296\nL 100 296\nL 100 277\nL 100 277\nA 25 25 90.00 0 1 125 252\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 195 260\nL 195 260\nL 195 260\nA 25 25 90.00 0 1 220 285\nL 220 291\nL 170 291\nL 170 285\nL 170 285\nA 25 25 90.00 0 1 195 260\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 265 44\nL 265 44\nL 265 44\nA 25 25 90.00 0 1 290 69\nL 290 76\nL 240 76\nL 240 69\nL 240 69\nA 25 25 90.00 0 1 265 44\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 335 30\nL 335 30\nL 335 30\nA 25 25 90.00 0 1 360 55\nL 360 57\nL 310 57\nL 310 55\nL 310 55\nA 25 25 90.00 0 1 335 30\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 405 234\nL 405 234\nL 405 234\nA 25 25 90.00 0 1 430 259\nL 430 260\nL 380 260\nL 380 259\nL 380 259\nA 25 25 90.00 0 1 405 234\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 475 263\nL 475 263\nL 475 263\nA 25 25 90.00 0 1 500 288\nL 500 308\nL 450 308\nL 450 288\nL 450 288\nA 25 25 90.00 0 1 475 263\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 545 256\nL 545 256\nL 545 256\nA 25 25 90.00 0 1 570 281\nL 570 345\nL 520 345\nL 520 281\nL 520 281\nA 25 25 90.00 0 1 545 256\nZ\" style=\"stroke:none;fill:rgb(250,200,88)\"/><text x=\"51\" y=\"340\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4</text><text x=\"118\" y=\"320\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23</text><text x=\"188\" y=\"317\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25</text><text x=\"254\" y=\"231\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">102</text><text x=\"324\" y=\"187\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">142</text><text x=\"398\" y=\"309\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32</text><text x=\"468\" y=\"323\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"541\" y=\"342\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3</text><text x=\"51\" y=\"330\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"118\" y=\"291\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26</text><text x=\"188\" y=\"286\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28</text><text x=\"254\" y=\"71\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">144</text><text x=\"324\" y=\"52\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">122</text><text x=\"398\" y=\"255\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48</text><text x=\"468\" y=\"303\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18</text><text x=\"541\" y=\"340\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"48\" y=\"242\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">80</text><text x=\"118\" y=\"247\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">40</text><text x=\"188\" y=\"255\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28</text><text x=\"258\" y=\"39\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28</text><text x=\"328\" y=\"25\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><text x=\"398\" y=\"229\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><text x=\"468\" y=\"258\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">40</text><text x=\"538\" y=\"251\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">80</text></svg>",
},
{
name: "stack_series_global_mark_point",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeFullBarChartStackedOption()
opt.SeriesList[len(opt.SeriesList)-1].MarkPoint.GlobalPoint = true
// disable some extra visuals
for i := range opt.SeriesList {
opt.SeriesList[i].Label.Show = True()
opt.SeriesList[i].Label.ValueFormatter = func(f float64) string {
return strconv.Itoa(int(f))
}
opt.SeriesList[i].MarkLine.Data = nil
if i != len(opt.SeriesList)-1 {
opt.SeriesList[i].MarkPoint.Data = nil
}
}
opt.YAxis[0].Show = False()
opt.Legend.Show = False()
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 20 355\nL 20 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 90 355\nL 90 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 160 355\nL 160 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 230 355\nL 230 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 300 355\nL 300 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 370 355\nL 370 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 440 355\nL 440 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 510 355\nL 510 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 580 355\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 20 350\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"51\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">1</text><text x=\"121\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"191\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">3</text><text x=\"261\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">4</text><text x=\"331\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">5</text><text x=\"401\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"471\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"541\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">8</text><path d=\"M 30 345\nL 80 345\nL 80 350\nL 30 350\nL 30 345\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 100 325\nL 150 325\nL 150 350\nL 100 350\nL 100 325\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 170 322\nL 220 322\nL 220 350\nL 170 350\nL 170 322\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 240 236\nL 290 236\nL 290 350\nL 240 350\nL 240 236\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 192\nL 360 192\nL 360 350\nL 310 350\nL 310 192\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 380 314\nL 430 314\nL 430 350\nL 380 350\nL 380 314\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 450 328\nL 500 328\nL 500 350\nL 450 350\nL 450 328\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 520 347\nL 570 347\nL 570 350\nL 520 350\nL 520 347\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 30 335\nL 80 335\nL 80 345\nL 30 345\nL 30 335\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 100 296\nL 150 296\nL 150 325\nL 100 325\nL 100 296\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 170 291\nL 220 291\nL 220 322\nL 170 322\nL 170 291\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 240 76\nL 290 76\nL 290 236\nL 240 236\nL 240 76\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 310 57\nL 360 57\nL 360 192\nL 310 192\nL 310 57\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 380 260\nL 430 260\nL 430 314\nL 380 314\nL 380 260\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 450 308\nL 500 308\nL 500 328\nL 450 328\nL 450 308\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 520 345\nL 570 345\nL 570 347\nL 520 347\nL 520 345\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 30 247\nL 80 247\nL 80 335\nL 30 335\nL 30 247\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 100 252\nL 150 252\nL 150 296\nL 100 296\nL 100 252\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 170 260\nL 220 260\nL 220 291\nL 170 291\nL 170 260\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 240 44\nL 290 44\nL 290 76\nL 240 76\nL 240 44\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 310 30\nL 360 30\nL 360 57\nL 310 57\nL 310 30\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 380 234\nL 430 234\nL 430 260\nL 380 260\nL 380 234\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 450 263\nL 500 263\nL 500 308\nL 450 308\nL 450 263\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 520 256\nL 570 256\nL 570 345\nL 520 345\nL 520 256\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 332 22\nA 14 14 330.00 1 1 338 22\nL 335 9\nZ\" style=\"stroke:none;fill:rgb(211,211,211)\"/><path d=\"M 321 9\nQ335,44 349,9\nZ\" style=\"stroke:none;fill:rgb(211,211,211)\"/><text x=\"324\" y=\"14\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">288</text><text x=\"51\" y=\"340\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">4</text><text x=\"118\" y=\"320\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">23</text><text x=\"188\" y=\"317\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">25</text><text x=\"254\" y=\"231\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">102</text><text x=\"324\" y=\"187\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">142</text><text x=\"398\" y=\"309\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">32</text><text x=\"468\" y=\"323\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">20</text><text x=\"541\" y=\"342\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">3</text><text x=\"51\" y=\"330\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">9</text><text x=\"118\" y=\"291\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">26</text><text x=\"188\" y=\"286\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28</text><text x=\"254\" y=\"71\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">144</text><text x=\"324\" y=\"52\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">122</text><text x=\"398\" y=\"255\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">48</text><text x=\"468\" y=\"303\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">18</text><text x=\"541\" y=\"340\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"48\" y=\"242\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">80</text><text x=\"118\" y=\"247\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">40</text><text x=\"188\" y=\"255\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28</text><text x=\"258\" y=\"39\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">28</text><text x=\"398\" y=\"229\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">24</text><text x=\"468\" y=\"258\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">40</text><text x=\"538\" y=\"251\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">80</text></svg>",
},
{
name: "stack_series_global_mark_line",
defaultTheme: true,
makeOptions: func() BarChartOption {
opt := makeFullBarChartStackedOption()
opt.SeriesList[len(opt.SeriesList)-1].MarkLine.GlobalLine = true
// disable some extra visuals
opt.SeriesList[0].MarkLine.Data = nil
for i := range opt.SeriesList {
opt.SeriesList[i].Label.Show = False()
opt.SeriesList[i].Label.ValueFormatter = func(f float64) string {
return strconv.Itoa(int(f))
}
opt.SeriesList[i].MarkPoint.Data = nil
}
opt.YAxis[0].Show = False()
opt.Legend.Show = False()
return opt
},
result: "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 600 400\"><path d=\"M 0 0\nL 600 0\nL 600 400\nL 0 400\nL 0 0\" style=\"stroke:none;fill:white\"/><path d=\"M 20 355\nL 20 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 90 355\nL 90 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 160 355\nL 160 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 230 355\nL 230 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 300 355\nL 300 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 370 355\nL 370 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 440 355\nL 440 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 510 355\nL 510 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 580 355\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><path d=\"M 20 350\nL 580 350\" style=\"stroke-width:1;stroke:rgb(110,112,121);fill:none\"/><text x=\"51\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">1</text><text x=\"121\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">2</text><text x=\"191\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">3</text><text x=\"261\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">4</text><text x=\"331\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">5</text><text x=\"401\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">6</text><text x=\"471\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">7</text><text x=\"541\" y=\"375\" style=\"stroke:none;fill:rgb(70,70,70);font-size:15.3px;font-family:'Roboto Medium',sans-serif\">8</text><path d=\"M 30 345\nL 80 345\nL 80 350\nL 30 350\nL 30 345\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 100 325\nL 150 325\nL 150 350\nL 100 350\nL 100 325\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 170 322\nL 220 322\nL 220 350\nL 170 350\nL 170 322\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 240 236\nL 290 236\nL 290 350\nL 240 350\nL 240 236\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 310 192\nL 360 192\nL 360 350\nL 310 350\nL 310 192\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 380 314\nL 430 314\nL 430 350\nL 380 350\nL 380 314\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 450 328\nL 500 328\nL 500 350\nL 450 350\nL 450 328\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 520 347\nL 570 347\nL 570 350\nL 520 350\nL 520 347\" style=\"stroke:none;fill:rgb(84,112,198)\"/><path d=\"M 30 335\nL 80 335\nL 80 345\nL 30 345\nL 30 335\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 100 296\nL 150 296\nL 150 325\nL 100 325\nL 100 296\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 170 291\nL 220 291\nL 220 322\nL 170 322\nL 170 291\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 240 76\nL 290 76\nL 290 236\nL 240 236\nL 240 76\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 310 57\nL 360 57\nL 360 192\nL 310 192\nL 310 57\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 380 260\nL 430 260\nL 430 314\nL 380 314\nL 380 260\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 450 308\nL 500 308\nL 500 328\nL 450 328\nL 450 308\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 520 345\nL 570 345\nL 570 347\nL 520 347\nL 520 345\" style=\"stroke:none;fill:rgb(145,204,117)\"/><path d=\"M 30 247\nL 80 247\nL 80 335\nL 30 335\nL 30 247\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 100 252\nL 150 252\nL 150 296\nL 100 296\nL 100 252\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 170 260\nL 220 260\nL 220 291\nL 170 291\nL 170 260\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 240 44\nL 290 44\nL 290 76\nL 240 76\nL 240 44\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 310 30\nL 360 30\nL 360 57\nL 310 57\nL 310 30\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 380 234\nL 430 234\nL 430 260\nL 380 260\nL 380 234\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 450 263\nL 500 263\nL 500 308\nL 450 308\nL 450 263\" style=\"stroke:none;fill:rgb(250,200,88)\"/><path d=\"M 520 256\nL 570 256\nL 570 345\nL 520 345\nL 520 256\" style=\"stroke:none;fill:rgb(250,200,88)\"/><circle cx=\"23\" cy=\"262\" r=\"3\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 262\nL 562 262\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 257\nL 578 262\nL 562 267\nL 567 262\nL 562 257\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><text x=\"580\" y=\"266\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">79</text><circle cx=\"23\" cy=\"30\" r=\"3\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 30\nL 562 30\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 25\nL 578 30\nL 562 35\nL 567 30\nL 562 25\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><text x=\"580\" y=\"34\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">288</text><circle cx=\"23\" cy=\"197\" r=\"3\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 29 197\nL 562 197\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><path stroke-dasharray=\"4.0, 2.0\" d=\"M 562 192\nL 578 197\nL 562 202\nL 567 197\nL 562 192\" style=\"stroke-width:1;stroke:rgb(211,211,211);fill:rgb(211,211,211)\"/><text x=\"580\" y=\"201\" style=\"stroke:none;fill:rgb(70,70,70);font-size:12.8px;font-family:'Roboto Medium',sans-serif\">137</text></svg>",
},
}
for i, tt := range tests {
painterOptions := PainterOptions{
OutputFormat: ChartOutputSVG,
Width: 600,
Height: 400,
}
if tt.defaultTheme {
t.Run(strconv.Itoa(i)+"-"+tt.name, func(t *testing.T) {
p := NewPainter(painterOptions)
validateBarChartRender(t, p, tt.makeOptions(), tt.result)
})
} else {
t.Run(strconv.Itoa(i)+"-"+tt.name+"-painter", func(t *testing.T) {
p := NewPainter(painterOptions, PainterThemeOption(GetTheme(ThemeVividDark)))
validateBarChartRender(t, p, tt.makeOptions(), tt.result)
})
t.Run(strconv.Itoa(i)+"-"+tt.name+"-options", func(t *testing.T) {
p := NewPainter(painterOptions)
opt := tt.makeOptions()
opt.Theme = GetTheme(ThemeVividDark)
validateBarChartRender(t, p, opt, tt.result)
})
}
}
}
func validateBarChartRender(t *testing.T, p *Painter, opt BarChartOption, expectedResult string) {
t.Helper()
err := p.BarChart(opt)
require.NoError(t, err)
data, err := p.Bytes()
require.NoError(t, err)
assertEqualSVG(t, expectedResult, data)
}