impaktapps-design 0.2.86 → 0.2.87-alpha.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.
@@ -11554,7 +11554,7 @@ const finalDataProvider = (type2, value, theme) => {
11554
11554
  }
11555
11555
  },
11556
11556
  pieStyle: {
11557
- colorRange: theme.chartColours.pieChartColours,
11557
+ colorRange: theme.chartColours.pieChartColours || ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)"],
11558
11558
  outerRadius: 120,
11559
11559
  innerRadius: 60,
11560
11560
  cornerRadius: 2,
@@ -11615,7 +11615,7 @@ const finalDataProvider = (type2, value, theme) => {
11615
11615
  ...(_w = value == null ? void 0 : value.style) == null ? void 0 : _w.labelStyle
11616
11616
  },
11617
11617
  lineStyle: {
11618
- colorRange: theme.chartColours.lineChartColours,
11618
+ colorRange: theme.chartColours.lineChartColours || ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)"],
11619
11619
  lineAreaColor: "none",
11620
11620
  lineAreaOpacity: 0.2,
11621
11621
  ...(_x = value == null ? void 0 : value.style) == null ? void 0 : _x.lineStyle
@@ -11728,6 +11728,7 @@ const DrawPieGraph = ({
11728
11728
  domain: letters.map((l2) => l2[arr[0]]),
11729
11729
  range: (_g = (_f = value == null ? void 0 : value.style) == null ? void 0 : _f.pieStyle) == null ? void 0 : _g.colorRange
11730
11730
  });
11731
+ const dataKeyArray = letters.map((ele) => ele.branch);
11731
11732
  const {
11732
11733
  tooltipData,
11733
11734
  tooltipLeft,
@@ -11752,7 +11753,8 @@ const DrawPieGraph = ({
11752
11753
  const pieSortValues = (a2, b10) => a2 - b10;
11753
11754
  return /* @__PURE__ */ jsxs(Fragment, {
11754
11755
  children: [((_h = value == null ? void 0 : value.main) == null ? void 0 : _h.legendAvailable) && /* @__PURE__ */ jsx(Legend, {
11755
- value
11756
+ value,
11757
+ dataKeyArray
11756
11758
  }), /* @__PURE__ */ jsx("svg", {
11757
11759
  width: parentWidth,
11758
11760
  height: parentHeight,