pace-chart-lib 1.0.54 → 1.0.56

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.
Files changed (32) hide show
  1. package/dist/Components/Charts/ChartJS/charts/CJSAreaChart.d.ts +18 -0
  2. package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +16 -0
  3. package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +18 -0
  4. package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +18 -0
  5. package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +17 -0
  6. package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +18 -0
  7. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +16 -0
  8. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +16 -0
  9. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +16 -0
  10. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +16 -0
  11. package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +22 -0
  12. package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +18 -0
  13. package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +16 -0
  14. package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +16 -0
  15. package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +15 -0
  16. package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +15 -0
  17. package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +15 -0
  18. package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +15 -0
  19. package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +31 -0
  20. package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +9 -0
  21. package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +27 -0
  22. package/dist/Components/Charts/ChartJS/index.d.ts +21 -0
  23. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +3 -3
  24. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +1 -1
  25. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +1 -1
  26. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +1 -0
  27. package/dist/Components/Charts/Core/Common.types.d.ts +2 -12
  28. package/dist/Components/Charts/Core/CommonFunctions.d.ts +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/pace-chart-lib.es.js +17024 -734
  31. package/dist/pace-chart-lib.umd.js +17022 -732
  32. package/package.json +4 -1
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSAreaChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ /** When true, stacks area datasets on the Y-axis */
9
+ isChartStacked?: boolean;
10
+ /** Active theme colour bank from the host application. Falls back to default palette. */
11
+ colorBank?: string[];
12
+ }
13
+ /**
14
+ * Chart.js area chart.
15
+ * Built on the line type with fill: true and a semi-transparent background.
16
+ */
17
+ declare const CJSAreaChart: React.FC<ICJSAreaChartProps>;
18
+ export default CJSAreaChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSBubbleChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth: number;
7
+ clientHeight: number;
8
+ /** Active theme colour bank from the host application. Falls back to default palette. */
9
+ colorBank?: string[];
10
+ }
11
+ /**
12
+ * Chart.js bubble chart.
13
+ * Uses TDataPoint.markerSize (or properties.markerSize) as bubble radius.
14
+ */
15
+ declare const CJSBubbleChart: React.FC<ICJSBubbleChartProps>;
16
+ export default CJSBubbleChart;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSColumnChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ /** When true renders a stacked bar chart */
9
+ isChartStacked?: boolean;
10
+ /** Active theme colour bank from the host application. Falls back to default palette. */
11
+ colorBank?: string[];
12
+ }
13
+ /**
14
+ * Chart.js vertical bar chart.
15
+ * Accepts the same TData / formatOptions props used throughout the library.
16
+ */
17
+ declare const CJSColumnChart: React.FC<ICJSColumnChartProps>;
18
+ export default CJSColumnChart;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSDonutChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth: number;
7
+ clientHeight: number;
8
+ /** Active theme colour bank from the host application. Falls back to default palette. */
9
+ colorBank?: string[];
10
+ }
11
+ /**
12
+ * Chart.js doughnut (donut) chart.
13
+ * The inner radius cutout is derived from formatOptions.plotArea.innerRadius (0–100).
14
+ * Segment colours are derived from the active colorBank so they match
15
+ * the host application's selected theme.
16
+ */
17
+ declare const CJSDonutChart: React.FC<ICJSDonutChartProps>;
18
+ export default CJSDonutChart;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSHorizontalBarChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ isChartStacked?: boolean;
9
+ /** Active theme colour bank from the host application. Falls back to default palette. */
10
+ colorBank?: string[];
11
+ }
12
+ /**
13
+ * Chart.js horizontal bar chart.
14
+ * Chart.js v4 uses indexAxis: "y" on a regular "bar" chart for horizontal bars.
15
+ */
16
+ declare const CJSHorizontalBarChart: React.FC<ICJSHorizontalBarChartProps>;
17
+ export default CJSHorizontalBarChart;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSLineChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ /** When true, stacks line datasets on the Y-axis */
9
+ isChartStacked?: boolean;
10
+ /** Active theme colour bank from the host application. Falls back to default palette. */
11
+ colorBank?: string[];
12
+ }
13
+ /**
14
+ * Chart.js line chart.
15
+ * Supports secondary Y axis, per-series line styles, and optional Y-axis stacking.
16
+ */
17
+ declare const CJSLineChart: React.FC<ICJSLineChartProps>;
18
+ export default CJSLineChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSNormalizedStackAreaChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js 100% normalized stacked area chart.
12
+ * Values are converted to percentages of the column total before rendering.
13
+ * The Y-axis is bounded 0–100 and ticked as whole-number percentages.
14
+ */
15
+ declare const CJSNormalizedStackAreaChart: React.FC<ICJSNormalizedStackAreaChartProps>;
16
+ export default CJSNormalizedStackAreaChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSNormalizedStackColumnChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js 100% normalized stacked vertical bar chart.
12
+ * Values are converted to percentages of the column total before rendering.
13
+ * The Y-axis is bounded 0–100 and ticked as whole-number percentages.
14
+ */
15
+ declare const CJSNormalizedStackColumnChart: React.FC<ICJSNormalizedStackColumnChartProps>;
16
+ export default CJSNormalizedStackColumnChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSNormalizedStackHorizontalBarChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js 100% normalized stacked horizontal bar chart.
12
+ * Values are converted to percentages of the row total before rendering.
13
+ * The X-axis is bounded 0–100 and ticked as whole-number percentages.
14
+ */
15
+ declare const CJSNormalizedStackHorizontalBarChart: React.FC<ICJSNormalizedStackHorizontalBarChartProps>;
16
+ export default CJSNormalizedStackHorizontalBarChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSNormalizedStackLineChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js 100% normalized stacked line chart.
12
+ * Values are converted to percentages of the column total before rendering.
13
+ * The Y-axis is bounded 0–100 and ticked as whole-number percentages.
14
+ */
15
+ declare const CJSNormalizedStackLineChart: React.FC<ICJSNormalizedStackLineChartProps>;
16
+ export default CJSNormalizedStackLineChart;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSPieChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth: number;
7
+ clientHeight: number;
8
+ /** Active theme colour bank from the host application. Falls back to default palette. */
9
+ colorBank?: string[];
10
+ }
11
+ /**
12
+ * Chart.js pie chart.
13
+ *
14
+ * Data mapping:
15
+ * - Multiple series → each series becomes one dataset (multi-ring pie)
16
+ * - Most common case: single series whose data points are the pie slices
17
+ *
18
+ * Segment colours are derived from the active colorBank so they match
19
+ * the host application's selected theme.
20
+ */
21
+ declare const CJSPieChart: React.FC<ICJSPieChartProps>;
22
+ export default CJSPieChart;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSPolarAreaChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth: number;
7
+ clientHeight: number;
8
+ /** Active theme colour bank from the host application. Falls back to default palette. */
9
+ colorBank?: string[];
10
+ }
11
+ /**
12
+ * Chart.js polar area chart.
13
+ * Segments are sized by value (area). Same data shape as pie.
14
+ * Segment colours are derived from the active colorBank so they match
15
+ * the host application's selected theme.
16
+ */
17
+ declare const CJSPolarAreaChart: React.FC<ICJSPolarAreaChartProps>;
18
+ export default CJSPolarAreaChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSRadarChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth: number;
7
+ clientHeight: number;
8
+ /** Active theme colour bank from the host application. Falls back to default palette. */
9
+ colorBank?: string[];
10
+ }
11
+ /**
12
+ * Chart.js radar chart.
13
+ * Labels are the dimension values; each series becomes one polygon.
14
+ */
15
+ declare const CJSRadarChart: React.FC<ICJSRadarChartProps>;
16
+ export default CJSRadarChart;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSScatterChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth: number;
7
+ clientHeight: number;
8
+ /** Active theme colour bank from the host application. Falls back to default palette. */
9
+ colorBank?: string[];
10
+ }
11
+ /**
12
+ * Chart.js scatter chart.
13
+ * Data points use TDataPoint[0] (or parsed dimension) as X and value as Y.
14
+ */
15
+ declare const CJSScatterChart: React.FC<ICJSScatterChartProps>;
16
+ export default CJSScatterChart;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSStackAreaChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js stacked area chart.
12
+ * Delegates to CJSAreaChart with isChartStacked always enabled.
13
+ */
14
+ declare const CJSStackAreaChart: React.FC<ICJSStackAreaChartProps>;
15
+ export default CJSStackAreaChart;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSStackColumnChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js stacked vertical bar (column) chart.
12
+ * Delegates to CJSColumnChart with isChartStacked always enabled.
13
+ */
14
+ declare const CJSStackColumnChart: React.FC<ICJSStackColumnChartProps>;
15
+ export default CJSStackColumnChart;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSStackHorizontalBarChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js stacked horizontal bar chart.
12
+ * Delegates to CJSHorizontalBarChart with isChartStacked always enabled.
13
+ */
14
+ declare const CJSStackHorizontalBarChart: React.FC<ICJSStackHorizontalBarChartProps>;
15
+ export default CJSStackHorizontalBarChart;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ interface ICJSStackLineChartProps {
4
+ data: TData;
5
+ formatOptions: TDefaultChartFormatOptionsType;
6
+ clientWidth?: number;
7
+ clientHeight?: number;
8
+ colorBank?: string[];
9
+ }
10
+ /**
11
+ * Chart.js stacked line chart.
12
+ * Delegates to CJSLineChart with isChartStacked always enabled.
13
+ */
14
+ declare const CJSStackLineChart: React.FC<ICJSStackLineChartProps>;
15
+ export default CJSStackLineChart;
@@ -0,0 +1,31 @@
1
+ import type { ChartData } from "chart.js";
2
+ import type { TData, TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ export declare const CJS_DEFAULT_COLORS: string[];
4
+ /** Returns rgba string with the given opacity, e.g. "#FF0000" + 0.4 → "rgba(255,0,0,0.4)" */
5
+ export declare function hexToRgba(hex: string, alpha?: number): string;
6
+ export type TCJSChartType = "bar" | "horizontalBar" | "line" | "area" | "pie" | "doughnut" | "scatter" | "bubble" | "radar" | "polarArea";
7
+ /**
8
+ * Transforms TData (the existing input format) into a Chart.js ChartData object.
9
+ *
10
+ * @param chartData The raw chart data in the existing TData format.
11
+ * @param chartType Target Chart.js chart type.
12
+ * @param formatOptions Current format options (used for opacity, marker config, etc.).
13
+ * @param colorBank Ordered color array derived from the active theme/palette in the host
14
+ * application. Falls back to CJS_DEFAULT_COLORS when omitted.
15
+ *
16
+ * For cartesian charts (bar, line, area, radar) the output is:
17
+ * { labels: string[], datasets: ChartDataset[] }
18
+ *
19
+ * For circular charts (pie, doughnut, polarArea) each label becomes one segment.
20
+ * The colorBank is used to assign one distinct color per segment so the palette
21
+ * matches the host application's active theme.
22
+ *
23
+ * For scatter/bubble the data points are { x, y } / { x, y, r } objects.
24
+ */
25
+ export declare function transformToChartJSData(chartData: TData, chartType: TCJSChartType, formatOptions: TDefaultChartFormatOptionsType, colorBank?: string[]): ChartData;
26
+ /**
27
+ * Produces the same cartesian structure as buildCartesianData but converts all
28
+ * values to percentages of the column total so that Chart.js renders a 100%
29
+ * stacked chart when scales are configured with stacked:true and max:100.
30
+ */
31
+ export declare function transformToNormalizedChartJSData(chartData: TData, chartType: "bar" | "horizontalBar" | "line" | "area", formatOptions: TDefaultChartFormatOptionsType, colorBank?: string[]): ChartData;
@@ -0,0 +1,9 @@
1
+ import type { ChartOptions } from "chart.js";
2
+ import type { TDefaultChartFormatOptionsType } from "../../Core/Common.types";
3
+ import type { TCJSChartType } from "./ChartJSDataTransformer";
4
+ /**
5
+ * Converts existing formatOptions into a Chart.js-compatible options object.
6
+ * All colours, fonts, and visibility flags are derived from formatOptions so the
7
+ * CJS charts match the styling configured in the host application's right pane.
8
+ */
9
+ export declare function mapFormatOptionsToChartJS(formatOptions: TDefaultChartFormatOptionsType, chartType: TCJSChartType, hasSecondaryAxis?: boolean): ChartOptions;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { type ChartData, type ChartOptions, type ChartType } from "chart.js";
3
+ import type { TDefaultChartFormatOptionsType } from "../../Core/Common.types";
4
+ export interface ICJSWrapperProps {
5
+ /** Chart.js chart type string */
6
+ chartType: ChartType;
7
+ /** Transformed Chart.js data (labels + datasets) */
8
+ data: ChartData;
9
+ /** Mapped Chart.js options */
10
+ options: ChartOptions;
11
+ /** Original format options — used only for background color */
12
+ formatOptions: TDefaultChartFormatOptionsType;
13
+ /** Outer container width in px */
14
+ clientWidth: number;
15
+ /** Outer container height in px */
16
+ clientHeight: number;
17
+ /** Optional additional className for the wrapper div */
18
+ className?: string;
19
+ isChartStacked?: boolean;
20
+ }
21
+ /**
22
+ * Low-level Chart.js wrapper. Manages canvas lifecycle and re-renders
23
+ * whenever data or options change. All chart-type-specific logic lives
24
+ * in the calling component (CJSColumnChart, CJSLineChart, etc.).
25
+ */
26
+ declare const ChartJSWrapper: React.FC<ICJSWrapperProps>;
27
+ export default ChartJSWrapper;
@@ -0,0 +1,21 @@
1
+ export { transformToChartJSData, transformToNormalizedChartJSData, hexToRgba, CJS_DEFAULT_COLORS } from "./core/ChartJSDataTransformer";
2
+ export { mapFormatOptionsToChartJS } from "./core/ChartJSOptionsMapper";
3
+ export { default as ChartJSWrapper } from "./core/ChartJSWrapper";
4
+ export { default as CJSColumnChart } from "./charts/CJSColumnChart";
5
+ export { default as CJSStackColumnChart } from "./charts/CJSStackColumnChart";
6
+ export { default as CJSHorizontalBarChart } from "./charts/CJSHorizontalBarChart";
7
+ export { default as CJSStackHorizontalBarChart } from "./charts/CJSStackHorizontalBarChart";
8
+ export { default as CJSLineChart } from "./charts/CJSLineChart";
9
+ export { default as CJSStackLineChart } from "./charts/CJSStackLineChart";
10
+ export { default as CJSAreaChart } from "./charts/CJSAreaChart";
11
+ export { default as CJSStackAreaChart } from "./charts/CJSStackAreaChart";
12
+ export { default as CJSPieChart } from "./charts/CJSPieChart";
13
+ export { default as CJSDonutChart } from "./charts/CJSDonutChart";
14
+ export { default as CJSScatterChart } from "./charts/CJSScatterChart";
15
+ export { default as CJSBubbleChart } from "./charts/CJSBubbleChart";
16
+ export { default as CJSRadarChart } from "./charts/CJSRadarChart";
17
+ export { default as CJSPolarAreaChart } from "./charts/CJSPolarAreaChart";
18
+ export { default as CJSNormalizedStackColumnChart } from "./charts/CJSNormalizedStackColumnChart";
19
+ export { default as CJSNormalizedStackHorizontalBarChart } from "./charts/CJSNormalizedStackHorizontalBarChart";
20
+ export { default as CJSNormalizedStackLineChart } from "./charts/CJSNormalizedStackLineChart";
21
+ export { default as CJSNormalizedStackAreaChart } from "./charts/CJSNormalizedStackAreaChart";
@@ -348,7 +348,7 @@ export declare function responsiveXaxisLabel(dimensionList: string[], innerWidth
348
348
  *
349
349
  * @returns {any} The updated SVG group element (`gTag`) with the initialized X axis.
350
350
  */
351
- export declare function initXaxis(gTag: any, chartJSON: TChartJSON, xLabel: number, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, yScaleLeft: any, xAxis: any, dimensionHeightWidthArray: number[], height: number, barWidth: number, isDateType: string, innerWidth: number, innerHeight: number, filteredDimensionList: string[], xScale: any): any;
351
+ export declare function initXaxis(gTag: any, chartJSON: TChartJSON, xLabel: number, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, yScaleLeft: any, xAxis: any, dimensionHeightWidthArray: number[], height: number, barWidth: number, isDateType: boolean, innerWidth: number, innerHeight: number, filteredDimensionList: string[], xScale: any): any;
352
352
  export declare function detectBrowserName(): string;
353
353
  /**
354
354
  * Formats date dimension marks based on the specified format and datasource.
@@ -401,7 +401,7 @@ export declare function yAxistitle(innerHeight: number, formatOptions: TDefaultC
401
401
  * @param secondaryAxisTitleWidth - Width allocated for the secondary Y-axis title.
402
402
  * @param innerHeight - Inner height for the chart area.
403
403
  */
404
- export declare function yAxistitleRight(svg: any, isSecondaryAxisDrawn: boolean, margin: TMargin, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, innerHeight: number, innerWidth: number, secondaryYLabel: number, secondaryAxisTitleWidth: number): void;
404
+ export declare function yAxistitleRight(svg: any, isSecondaryAxisDrawn: boolean, margin: TMargin, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, innerHeight: number, innerWidth: number, secondaryYLabel: number, secondaryAxisTitleWidth: number, isBarChart?: boolean): void;
405
405
  /**
406
406
  * @param svg - The SVG container to append the chart title to.
407
407
  * @param formatOptions - Configuration object containing chart title settings and styles.
@@ -529,7 +529,7 @@ export declare function getStackedData(dimensionList: string[], seriesData: TSer
529
529
  * - `labelArray`: Array of objects for each visible label with position and size.
530
530
  * - `heightWidth`: Tuple representing the max label width and height for layout purposes.
531
531
  */
532
- export declare function prepareDataForSeriesLabel(innerWidth: number, yScaleLeft: any, formatOptions: TDefaultChartFormatOptionsType, filteredData: TSeries[], yScaleRight: any, isSecondaryAxisDrawn: boolean, isStackedChart?: boolean): {
532
+ export declare function prepareDataForSeriesLabel(innerWidth: number, yScaleLeft: any, formatOptions: TDefaultChartFormatOptionsType, filteredData: TSeries[], yScaleRight: any, isSecondaryAxisDrawn: boolean, innerHeight: number, isStackedChart?: boolean): {
533
533
  labelArray: any[];
534
534
  heightWidth: number[];
535
535
  };
@@ -50,7 +50,7 @@ export declare enum chartTypes {
50
50
  }
51
51
  export type TChartProps = {
52
52
  data: TData;
53
- isDateType: any;
53
+ isDateType: boolean;
54
54
  chartId?: string;
55
55
  formatOptions?: TDefaultChartFormatOptionsType;
56
56
  isReportEditable?: any;
@@ -91,5 +91,5 @@ export declare function responsiveXaxisLabelForNumericValue(xMax: number, xMin:
91
91
  };
92
92
  export declare function initYaxis(gTag: any, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, yLabel: number, yAxisLeft: any, innerHeight: number): void;
93
93
  export declare function initXaxis(gTag: any, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, xLabel: number, xAxis: any, innerHeight: number, innerWidth: number, margins: TChartMargins, yScale: any): void;
94
- export declare function pieFamilyAnnotation(d3Annotation: any, chartData: any, formatOptions: any, getPiePosition: any, chartType: any, width: any, height: any, svg: any, radius: any, isReportEditable: any): void;
94
+ export declare function pieFamilyAnnotation(d3Annotation: any, chartData: any, formatOptions: any, getPiePosition: any, chartType: any, width: any, height: any, svg: any, radius: any, isReportEditable: any, onDataLabelCoordinatesChange: any): void;
95
95
  export declare const setnumberOfBubbles: (svg: d3.Selection<SVGSVGElement, unknown, null, undefined>, legendPosition: string, chartFormatOptions: TDefaultChartFormatOptionsType, height: number, width: number, margins: TChartMargins, innnerHeight: number, xTitleHeight: number, XLabelHeight: number, bubbleCount: number) => void;
@@ -8,6 +8,7 @@ export interface IChartProps {
8
8
  clientHeight: number;
9
9
  formatOptions: TDefaultChartFormatOptionsType;
10
10
  isReportEditable?: boolean;
11
+ onDataLabelCoordinatesChange?: any;
11
12
  }
12
13
  export interface IPieofPieChartProps {
13
14
  chartId: string;
@@ -364,21 +364,11 @@ export type TLegendsFormatting = {
364
364
  markerColor?: string;
365
365
  actualChartType?: string;
366
366
  };
367
- export type bubbleScatterData = {
368
- dimension: number;
369
- dimensionName: string;
370
- legendColor: string;
371
- legendName: string;
372
- measure: number;
373
- measureName: string;
374
- sizeName: string;
375
- sizeValue: number;
376
- };
377
367
  export type TBubbleChartProps = {
378
368
  chartId?: string;
379
369
  clientWidth: number;
380
370
  clientHeight: number;
381
- data: bubbleScatterData[];
371
+ data: any;
382
372
  legendEntries?: TLegendsFormatting[];
383
373
  formatOptions?: TDefaultChartFormatOptionsType;
384
374
  };
@@ -392,7 +382,7 @@ export type TScatterChartProps = {
392
382
  chartId: string;
393
383
  clientWidth: number;
394
384
  clientHeight: number;
395
- data: bubbleScatterData[];
385
+ data: any;
396
386
  shapesList: TLegendsFormatting[];
397
387
  colorsList: TLegendsFormatting[];
398
388
  formatOptions: TDefaultChartFormatOptionsType;
@@ -23,7 +23,7 @@ export declare function getRandomColor(): {
23
23
  *
24
24
  * @return {void} - This function does not return anything. It updates the SVG by rendering legends.
25
25
  */
26
- export declare function drawLegends(height: number, svg: any, maxLegendDimensions: number[], chartTitleHeight: number, width: number, legendMargin: number, formatOptions: TDefaultChartFormatOptionsType, seriesData: TSeries[], chartId: string, legendShape: string, chartType?: string): void;
26
+ export declare function drawLegends(height: number, svg: any, maxLegendDimensions: number[], chartTitleHeight: number, width: number, legendMargin: number, formatOptions: TDefaultChartFormatOptionsType, seriesData: TSeries[], chartId: string, dataTableHeight: number, margin: TChartMargins, legendShape: string, chartType?: string): void;
27
27
  /**
28
28
  * @param {string[]} list - Array of legend strings.
29
29
  * @param {TDefaultChartFormatOptionsType} formatOptions - Chart formatting options including legend font size and family.
package/dist/index.d.ts CHANGED
@@ -34,3 +34,4 @@ export { default as ScatterChart } from "./Components/Charts/ChartsWithoutAxis/O
34
34
  export { default as WaterfallChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart";
35
35
  export { default as TornadoChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart";
36
36
  export { default as DotPlot } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot";
37
+ export { CJSColumnChart, CJSStackColumnChart, CJSHorizontalBarChart, CJSStackHorizontalBarChart, CJSLineChart, CJSStackLineChart, CJSAreaChart, CJSStackAreaChart, CJSPieChart, CJSDonutChart, CJSScatterChart, CJSBubbleChart, CJSRadarChart, CJSPolarAreaChart, CJSNormalizedStackColumnChart, CJSNormalizedStackHorizontalBarChart, CJSNormalizedStackLineChart, CJSNormalizedStackAreaChart, ChartJSWrapper, transformToChartJSData, transformToNormalizedChartJSData, mapFormatOptionsToChartJS, hexToRgba, CJS_DEFAULT_COLORS, } from "./Components/Charts/ChartJS/index";