@makolabs/ripple 0.0.1-dev.14 → 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 +6 -0
- package/package.json +1 -1
package/dist/charts/Chart.svelte
CHANGED
|
@@ -422,6 +422,12 @@
|
|
|
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,
|