@makolabs/ripple 0.0.1-dev.13 → 0.0.1-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts/Chart.svelte +13 -1
- package/package.json +1 -1
package/dist/charts/Chart.svelte
CHANGED
|
@@ -422,11 +422,23 @@
|
|
|
422
422
|
}),
|
|
423
423
|
formatter: xAxis.format || '{value}'
|
|
424
424
|
},
|
|
425
|
+
// If all series are lines, no gap. If any bar, gap.
|
|
426
|
+
boundaryGap: series.every((s) => s.type === 'line')
|
|
427
|
+
? false
|
|
428
|
+
: series.some((s) => s.type === 'bar' || s.type === 'horizontal-bar')
|
|
429
|
+
? true
|
|
430
|
+
: undefined,
|
|
425
431
|
name: xAxis.label,
|
|
426
432
|
nameLocation: 'middle',
|
|
427
433
|
nameGap: 30,
|
|
428
434
|
splitLine: {
|
|
429
435
|
show: grid.vertical || false
|
|
436
|
+
},
|
|
437
|
+
axisLine: {
|
|
438
|
+
show: true,
|
|
439
|
+
lineStyle: {
|
|
440
|
+
color: '#333'
|
|
441
|
+
}
|
|
430
442
|
}
|
|
431
443
|
},
|
|
432
444
|
|
|
@@ -442,7 +454,7 @@
|
|
|
442
454
|
axisLine: {
|
|
443
455
|
show: true,
|
|
444
456
|
lineStyle: {
|
|
445
|
-
color:
|
|
457
|
+
color: '#333'
|
|
446
458
|
}
|
|
447
459
|
},
|
|
448
460
|
axisLabel: {
|