pace-chart-lib 1.0.18 → 1.0.20
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/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +4 -4
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +37 -44
- package/dist/Components/Charts/Core/Common.types.d.ts +1 -0
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +1 -1
- package/dist/pace-chart-lib.es.js +403 -327
- package/dist/pace-chart-lib.umd.js +403 -327
- package/package.json +1 -1
|
@@ -276,7 +276,7 @@ export declare function isVerticallyOverlapping(obj1: any, obj2: any): boolean;
|
|
|
276
276
|
* @returns {{ yAxisLabelArray: number[], customTickValue?: number }} Object containing the array of Y-axis labels and optionally the computed custom tick count.
|
|
277
277
|
*/
|
|
278
278
|
export declare function responsiveYaxisLabel(Ymax: number, Ymin: number, innerHeight: number, formatOptions: TDefaultChartFormatOptionsType, chartJSON: TChartJSON, customYaxisMinValue: number, customYaxisMaxValue: number, barChart?: boolean, innerWidth?: number): {
|
|
279
|
-
yAxisLabelArray:
|
|
279
|
+
yAxisLabelArray: number[];
|
|
280
280
|
customTickValue: any;
|
|
281
281
|
autoLabelFlag: boolean;
|
|
282
282
|
};
|
|
@@ -460,7 +460,7 @@ export declare function getCurveType(formatOptions: TDefaultChartFormatOptionsTy
|
|
|
460
460
|
*
|
|
461
461
|
* @return {void} - This function does not return a value; it updates the SVG with annotations.
|
|
462
462
|
*/
|
|
463
|
-
export declare function commonAnnotations(chartData: TSeries[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, labelExcludeList: string[], individualLabelColor: any[], oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, xScaleForLegends?: any, columnWidth?: number, isSensitivityChart?: boolean, barChart?: boolean): void;
|
|
463
|
+
export declare function commonAnnotations(chartData: TSeries[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, labelExcludeList: string[], individualLabelColor: any[], oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, xScaleForLegends?: any, columnWidth?: number, isReportEditable?: boolean, isSensitivityChart?: boolean, barChart?: boolean): void;
|
|
464
464
|
/**
|
|
465
465
|
* @param {Array} chartData - The main data used to render the chart.
|
|
466
466
|
* @param {Function} xscale - D3 scale function for the x-axis.
|
|
@@ -486,7 +486,7 @@ export declare function commonAnnotations(chartData: TSeries[], xScale: any, ySc
|
|
|
486
486
|
*
|
|
487
487
|
* @return {void} - This function does not return a value; it updates the SVG with annotations.
|
|
488
488
|
*/
|
|
489
|
-
export declare function commonAnnotationsForCustomChart(chartData: TSeries[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, stackColumnData: any[], stackAreaData: any[], labelExcludeList: string[], individualLabelColor: any[], columnWidth: number, oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, xScaleForLegends: any): void;
|
|
489
|
+
export declare function commonAnnotationsForCustomChart(chartData: TSeries[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, stackColumnData: any[], stackAreaData: any[], labelExcludeList: string[], individualLabelColor: any[], columnWidth: number, oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, xScaleForLegends: any, isReportEditable: boolean): void;
|
|
490
490
|
/**
|
|
491
491
|
* Pre-calculates data table layout information based on format options and series data.
|
|
492
492
|
*
|
|
@@ -600,7 +600,7 @@ export declare function prepareDataForSeriesLabel(innerWidth: number, yScaleLeft
|
|
|
600
600
|
*
|
|
601
601
|
* @return - void. This function performs side effects by rendering annotations onto the provided SVG element.
|
|
602
602
|
*/
|
|
603
|
-
export declare function stacklineAnnotations(chartData: any[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, labelExcludeList: string[], individualLabelColor: any[], oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, dataTableHeight: number, barChart?: boolean): void;
|
|
603
|
+
export declare function stacklineAnnotations(chartData: any[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, labelExcludeList: string[], individualLabelColor: any[], oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, dataTableHeight: number, isReportEditable: boolean, barChart?: boolean): void;
|
|
604
604
|
/**
|
|
605
605
|
* Initializes the X-axis of a bar chart using provided formatting options and axis configuration.
|
|
606
606
|
*
|
|
@@ -6,63 +6,56 @@ export type TMargin = {
|
|
|
6
6
|
right: number;
|
|
7
7
|
bottom: number;
|
|
8
8
|
};
|
|
9
|
-
export declare enum
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
customColumnChart = "CustomColumnChart",
|
|
9
|
+
export declare enum chartTypes {
|
|
10
|
+
WaterfallChart = "WaterfallChart",
|
|
11
|
+
StackLineChart = "StackLineChart",
|
|
12
|
+
NormalizedStackLineChart = "NormalizedStackLineChart",
|
|
13
|
+
LineChart = "LineChart",
|
|
14
|
+
ColumnChart = "ColumnChart",
|
|
15
|
+
StackColumnChart = "StackColumnChart",
|
|
16
|
+
AreaChart = "AreaChart",
|
|
17
|
+
PieChart = "PieChart",
|
|
18
|
+
SankeyChart = "SankeyChart",
|
|
19
|
+
DonutChart = "DonutChart",
|
|
20
|
+
HorizontalBarChart = "HorizontalBarChart",
|
|
21
|
+
StackAreaChart = "StackAreaChart",
|
|
22
|
+
NormalizedStackAreaChart = "NormalizedStackAreaChart",
|
|
23
|
+
Treemap = "Treemap",
|
|
24
|
+
StackHorizontalBarChart = "StackHorizontalBarChart",
|
|
25
|
+
NormalizedStackColumnChart = "NormalizedStackColumnChart",
|
|
26
|
+
NormalizedStackHorizontalBarChart = "NormalizedStackHorizontalBarChart",
|
|
27
|
+
ScatterChart = "ScatterChart",
|
|
28
|
+
CustomColumnChart = "CustomColumnChart",
|
|
30
29
|
customBarChart = "CustomBarChart",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
layeredColumnChart = "LayeredColumnChart",
|
|
47
|
-
layeredBarChart = "LayeredBarChart",
|
|
48
|
-
organizationalChart = "OrganizationalChart",
|
|
49
|
-
pyramidChart = "PyramidChart",
|
|
50
|
-
scaleBreakStackedColumnChart = "ScaleBreakStackedColumnChart",
|
|
51
|
-
progressChart = "ProgressChart",
|
|
52
|
-
radialBarChart = "RadialBarChart"
|
|
30
|
+
ColumnHistogramChart = "ColumnHistogramChart",
|
|
31
|
+
HorizontalHistogramChart = "HorizontalHistogramChart",
|
|
32
|
+
Maps = "Maps",
|
|
33
|
+
TornadoChart = "TornadoChart",
|
|
34
|
+
PieofPie = "PieofPie",
|
|
35
|
+
WordCloud = "WordCloud",
|
|
36
|
+
BubbleChart = "BubbleChart",
|
|
37
|
+
VennChart = "VennChart",
|
|
38
|
+
Speedometer = "Speedometer",
|
|
39
|
+
LayeredColumnChart = "LayeredColumnChart",
|
|
40
|
+
LayeredHorizontalBarChart = "LayeredHorizontalBarChart",
|
|
41
|
+
OrganizationChart = "OrganizationChart",
|
|
42
|
+
PyramidChart = "PyramidChart",
|
|
43
|
+
ProgressChart = "ProgressChart",
|
|
44
|
+
RadialBarChart = "RadialBarChart"
|
|
53
45
|
}
|
|
54
46
|
export type TChartProps = {
|
|
55
47
|
data: TData;
|
|
56
48
|
isDateType: any;
|
|
57
49
|
chartId?: string;
|
|
58
50
|
formatOptions?: TDefaultChartFormatOptionsType;
|
|
51
|
+
isReportEditable?: any;
|
|
59
52
|
};
|
|
60
53
|
export type TChartJSON = {
|
|
61
54
|
dimensionList: string[];
|
|
62
55
|
chartData: any[];
|
|
63
56
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
64
57
|
chartType: string;
|
|
65
|
-
legendList:
|
|
58
|
+
legendList: any[];
|
|
66
59
|
secondaryAxisDrawn: boolean;
|
|
67
60
|
yMaxLeft: number;
|
|
68
61
|
yMaxRight: number;
|
|
@@ -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, inputSeries: TSeries[], chartId: string, legendShape: string): void;
|
|
26
|
+
export declare function drawLegends(height: number, svg: any, maxLegendDimensions: number[], chartTitleHeight: number, width: number, legendMargin: number, formatOptions: TDefaultChartFormatOptionsType, inputSeries: TSeries[], chartId: string, 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.
|