pace-chart-lib 1.0.58 → 1.0.60
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/pace-chart-lib.es.js +58 -18
- package/dist/pace-chart-lib.umd.js +58 -18
- package/package.json +1 -1
- package/dist/Components/Charts/ChartJS/charts/CJSAreaChart.d.ts +0 -18
- package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +0 -18
- package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +0 -18
- package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +0 -17
- package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +0 -18
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +0 -22
- package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +0 -18
- package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +0 -31
- package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +0 -9
- package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +0 -27
- package/dist/Components/Charts/ChartJS/index.d.ts +0 -21
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +0 -628
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -171
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +0 -95
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +0 -113
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +0 -26
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +0 -10
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +0 -3
- package/dist/Components/Charts/Core/Common.types.d.ts +0 -409
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +0 -250
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +0 -66
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +0 -618
- package/dist/Services/ErrorLog.d.ts +0 -1
- package/dist/index.d.ts +0 -37
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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";
|