@likable-hair/svelte 3.1.48 → 3.1.49
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.
|
@@ -25,7 +25,7 @@ ChartJS.register(
|
|
|
25
25
|
export let data = {
|
|
26
26
|
labels: [],
|
|
27
27
|
datasets: []
|
|
28
|
-
}, horizontal = false, responsive = true, maintainAspectRatio = true, showLegend = true, showYTicks = false, showXTicks = false, displayYGrid = true, lineWidth = 1, enableZoom = true, resetZoom = false, tooltipLabel = void 0, yTickLabel = void 0, xTickLabel = void 0;
|
|
28
|
+
}, horizontal = false, responsive = true, maintainAspectRatio = true, showLegend = true, showYTicks = false, showXTicks = false, displayYGrid = true, lineWidth = 1, enableZoom = true, resetZoom = false, tooltipLabel = void 0, yTickLabel = void 0, xTickLabel = void 0, xTickStepSize = void 0, yTickStepSize = void 0;
|
|
29
29
|
let mounted = false, zoomMounted = false;
|
|
30
30
|
onMount(() => {
|
|
31
31
|
mounted = true;
|
|
@@ -120,7 +120,8 @@ $:
|
|
|
120
120
|
},
|
|
121
121
|
ticks: {
|
|
122
122
|
display: showYTicks,
|
|
123
|
-
callback: xTickLabel
|
|
123
|
+
callback: xTickLabel,
|
|
124
|
+
stepSize: xTickStepSize
|
|
124
125
|
}
|
|
125
126
|
},
|
|
126
127
|
y: {
|
|
@@ -136,7 +137,8 @@ $:
|
|
|
136
137
|
},
|
|
137
138
|
ticks: {
|
|
138
139
|
display: showXTicks,
|
|
139
|
-
callback: yTickLabel
|
|
140
|
+
callback: yTickLabel,
|
|
141
|
+
stepSize: yTickStepSize
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
}
|
|
@@ -25,6 +25,8 @@ declare const __propDef: {
|
|
|
25
25
|
tooltipLabel?: ((tooltip: import("chart.js").TooltipItem<"bar">) => string) | undefined;
|
|
26
26
|
yTickLabel?: ((tickValue: string | number, index: number, ticks: any[]) => (string | number)) | undefined;
|
|
27
27
|
xTickLabel?: ((tickValue: string | number, index: number, ticks: any[]) => (string | number)) | undefined;
|
|
28
|
+
xTickStepSize?: number | undefined;
|
|
29
|
+
yTickStepSize?: number | undefined;
|
|
28
30
|
rgbTooltipColor?: string | undefined;
|
|
29
31
|
rgbTooltipBackgroundColor?: string | undefined;
|
|
30
32
|
rgbBackgroundColor?: string | undefined;
|