@oliasoft-open-source/charts-library 3.5.0 → 3.5.1-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 +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25408,6 +25408,8 @@ const useUpdateAxesRanges = (range, dispatch) => {
|
|
|
25408
25408
|
const prevRange = useRef(null);
|
|
25409
25409
|
const updateAxesRanges = useCallback(() => {
|
|
25410
25410
|
if (range && range.x && range.y && !isEqual(range, prevRange.current)) {
|
|
25411
|
+
console.log("UPDATE_AXES_RANGES");
|
|
25412
|
+
console.log("Range", range);
|
|
25411
25413
|
const axes = Object.entries(range).map(([key, { min, max }]) => ({
|
|
25412
25414
|
id: key,
|
|
25413
25415
|
min: min ?? 0,
|
|
@@ -25456,7 +25458,10 @@ const useChartState = ({
|
|
|
25456
25458
|
} = memoOptions;
|
|
25457
25459
|
useStoreChartStateInStorage(memoState, persistenceId);
|
|
25458
25460
|
useToggleCustomLegendVisibility(memoState, memoOptions);
|
|
25459
|
-
useUpdateAxesRanges(
|
|
25461
|
+
useUpdateAxesRanges(
|
|
25462
|
+
range,
|
|
25463
|
+
dispatch
|
|
25464
|
+
);
|
|
25460
25465
|
useSaveInitialAxesRanges(chartRef, axes, generatedDatasets, dispatch);
|
|
25461
25466
|
};
|
|
25462
25467
|
const WORD_SEPARATOR = " ";
|