@oliasoft-open-source/charts-library 3.6.8-beta-1 → 3.6.8

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
@@ -39208,7 +39208,7 @@ const defaultInteractions = (interactions) => ({
39208
39208
  onUnhover: interactions == null ? void 0 : interactions.onUnhover
39209
39209
  });
39210
39210
  const defaultDragData = (dragData) => ({
39211
- enableDragData: (dragData == null ? void 0 : dragData.enableDragData) || false,
39211
+ enableDragData: (dragData == null ? void 0 : dragData.enableDragData) ?? false,
39212
39212
  showTooltip: (dragData == null ? void 0 : dragData.showTooltip) ?? true,
39213
39213
  roundPoints: (dragData == null ? void 0 : dragData.roundPoints) ?? true,
39214
39214
  dragX: (dragData == null ? void 0 : dragData.dragX) ?? true,
@@ -39470,7 +39470,7 @@ const BarChart = (props) => {
39470
39470
  const [pointHover, setPointHover] = useState(false);
39471
39471
  const chart2 = getDefaultProps(props);
39472
39472
  const { options, testId } = chart2;
39473
- const { annotations, chartStyling, interactions, graph } = chart2.options;
39473
+ const { annotations, chartStyling, interactions, graph, dragData } = chart2.options;
39474
39474
  const [visibleAnnotationsIndices, setVisibleAnnotationsIndices] = useState(
39475
39475
  setAnnotations(annotations.annotationsData)
39476
39476
  );
@@ -39610,7 +39610,7 @@ const BarChart = (props) => {
39610
39610
  chartAreaBorder: {
39611
39611
  borderColor: BORDER_COLOR
39612
39612
  },
39613
- dragData: getDraggableData(options)
39613
+ dragData: (dragData == null ? void 0 : dragData.enableDragData) && getDraggableData(options)
39614
39614
  }
39615
39615
  },
39616
39616
  plugins: getPlugins(graph, options.legend)