@oliasoft-open-source/charts-library 4.1.6 → 4.1.8-beta-1
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/index.js
CHANGED
|
@@ -24683,7 +24683,7 @@ const generateLineChartDatasets = (datasets, state, options, { label }) => {
|
|
|
24683
24683
|
pointBackgroundColor: pointBackgroundColor ?? indexedColor ?? generateRandomColor(COLORS),
|
|
24684
24684
|
pointRadius: pointState ? linePointRadius : 0,
|
|
24685
24685
|
pointHoverRadius: hoverRadius,
|
|
24686
|
-
pointHitRadius: line.pointHitRadius ?? hoverRadius,
|
|
24686
|
+
pointHitRadius: (line == null ? void 0 : line.pointHitRadius) ?? hoverRadius,
|
|
24687
24687
|
...hasCustomOpt ? { hasCustomOpt } : {}
|
|
24688
24688
|
};
|
|
24689
24689
|
});
|
|
@@ -24903,9 +24903,13 @@ const getAxesDataFromMetasets = (chartRef, scalesKeys, annotationsData) => {
|
|
|
24903
24903
|
}, {}));
|
|
24904
24904
|
};
|
|
24905
24905
|
const autoScale = (options, state, generatedDatasets, chartRef) => {
|
|
24906
|
-
const {
|
|
24906
|
+
const {
|
|
24907
|
+
additionalAxesOptions,
|
|
24908
|
+
annotations: { annotationsData = [], controlAnnotation = false } = {}
|
|
24909
|
+
} = options || {};
|
|
24907
24910
|
const scales = getLineChartScales(options, state) || {};
|
|
24908
|
-
|
|
24911
|
+
const datasets = controlAnnotation ? generatedDatasets.filter(({ isAnnotation }) => !isAnnotation) : generatedDatasets;
|
|
24912
|
+
if (!(additionalAxesOptions == null ? void 0 : additionalAxesOptions.autoAxisPadding) && !estimateDataSeriesHaveCloseValues(datasets)) {
|
|
24909
24913
|
return scales;
|
|
24910
24914
|
}
|
|
24911
24915
|
const scalesKeys = Object.keys(scales) ?? [];
|