next-helios-fe 1.10.25 → 1.10.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.10.25",
3
+ "version": "1.10.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,6 +32,7 @@ interface ChartProps {
32
32
  datetime?: boolean;
33
33
  min?: number;
34
34
  max?: number;
35
+ format?: string;
35
36
  };
36
37
  yaxis?: {
37
38
  min?: number;
@@ -41,7 +42,7 @@ interface ChartProps {
41
42
  theme?: "light" | "dark";
42
43
  mainColor?: string;
43
44
  height?: number;
44
- barChart?: { variant: "vertical" | "horizontal" };
45
+ barChart?: { variant: "vertical" | "horizontal"; stacked?: boolean };
45
46
  sparkline?: boolean;
46
47
  };
47
48
  }
@@ -155,6 +156,7 @@ export const Chart: React.FC<ChartProps> = ({
155
156
  },
156
157
  },
157
158
  foreColor: options?.theme === "light" ? "#475569" : "#ffffff",
159
+ stacked: options?.barChart?.stacked ? true : false,
158
160
  },
159
161
  dataLabels: {
160
162
  enabled: false,
@@ -199,7 +201,7 @@ export const Chart: React.FC<ChartProps> = ({
199
201
  fillSeriesColor: false,
200
202
  ...(xaxis?.datetime
201
203
  ? {
202
- x: { format: "dd MMM yyyy" },
204
+ x: { format: xaxis.format ? xaxis.format : "dd MMM yyyy" },
203
205
  }
204
206
  : {}),
205
207
  },