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

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
@@ -31558,10 +31558,18 @@ const DragOptions = ({
31558
31558
  Menu,
31559
31559
  {
31560
31560
  menu: {
31561
- label: selectedOption.buttonLabel || selectedOption.label,
31562
31561
  sections: optionsWithDragPoints,
31563
- trigger: "DropDownButton",
31564
- small: true
31562
+ trigger: "Component",
31563
+ component: /* @__PURE__ */ jsx(
31564
+ Button,
31565
+ {
31566
+ colored: "muted",
31567
+ basic: true,
31568
+ small: true,
31569
+ label: selectedOption.buttonLabel || selectedOption.label,
31570
+ icon: selectedOption.icon
31571
+ }
31572
+ )
31565
31573
  }
31566
31574
  }
31567
31575
  );
@@ -32862,17 +32870,16 @@ const formatAxisLabelNumbers = (tickValue, ticks, locale = "en-gb") => {
32862
32870
  Math.abs(ticks[0].value),
32863
32871
  Math.abs(ticks[ticks.length - 1].value)
32864
32872
  );
32865
- if (maxTick < 1e-4 || maxTick > 1e7) {
32873
+ if (maxTick < 1e-4 || maxTick > 1e15) {
32866
32874
  notation = "scientific";
32867
32875
  }
32868
32876
  delta = calculateDelta(tickValue, ticks);
32869
32877
  }
32870
32878
  const logDelta = Math.log10(Math.abs(delta));
32871
32879
  const numDecimal = isNaN(logDelta) ? 1 : Math.max(Math.min(-1 * Math.floor(logDelta), 20), 0);
32872
- const roundScientificCoefficient = numDecimal === 0 ? 1 : numDecimal;
32873
32880
  return displayNumber(round$2(tickValue, numDecimal), {
32874
32881
  scientific: notation === "scientific",
32875
- roundScientificCoefficient
32882
+ roundScientificCoefficientToNDecimals: numDecimal
32876
32883
  });
32877
32884
  };
32878
32885
  const getLineChartAxis = (options, axisType, state, currentScales, i2 = 0) => {