@oliasoft-open-source/charts-library 3.5.0 → 3.5.1-beta-2

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
@@ -25406,8 +25406,13 @@ const useStoreChartStateInStorage = (memoState, persistenceId) => {
25406
25406
  };
25407
25407
  const useUpdateAxesRanges = (range, dispatch) => {
25408
25408
  const prevRange = useRef(null);
25409
+ console.log("Range", range);
25409
25410
  const updateAxesRanges = useCallback(() => {
25411
+ console.log(
25412
+ range && range.x && range.y && !isEqual(range, prevRange.current)
25413
+ );
25410
25414
  if (range && range.x && range.y && !isEqual(range, prevRange.current)) {
25415
+ console.log("UPDATE_AXES_RANGES", range);
25411
25416
  const axes = Object.entries(range).map(([key, { min, max }]) => ({
25412
25417
  id: key,
25413
25418
  min: min ?? 0,
@@ -25456,7 +25461,10 @@ const useChartState = ({
25456
25461
  } = memoOptions;
25457
25462
  useStoreChartStateInStorage(memoState, persistenceId);
25458
25463
  useToggleCustomLegendVisibility(memoState, memoOptions);
25459
- useUpdateAxesRanges(range, dispatch);
25464
+ useUpdateAxesRanges(
25465
+ range,
25466
+ dispatch
25467
+ );
25460
25468
  useSaveInitialAxesRanges(chartRef, axes, generatedDatasets, dispatch);
25461
25469
  };
25462
25470
  const WORD_SEPARATOR = " ";