pace-chart-lib 1.0.22 → 1.0.23
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 +3 -1
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +5 -1
- package/dist/Components/Charts/Core/Common.types.d.ts +18 -3
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +2 -2
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +2 -1
- package/dist/pace-chart-lib.es.js +903 -496
- package/dist/pace-chart-lib.umd.js +903 -496
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as d3 from "d3";
|
|
2
|
-
import { TSeries } from "../Core/Common.types";
|
|
2
|
+
import { TData, TSeries } from "../Core/Common.types";
|
|
3
3
|
import { TDefaultChartFormatOptionsType } from "../Core/DefaultProperties.types";
|
|
4
4
|
import { TChartJSON, TMargin } from "./ChartsWithAxisTypes.types";
|
|
5
5
|
/**
|
|
@@ -648,3 +648,5 @@ export declare function calculateVisibleBars(innerWidth: number, formatOptions:
|
|
|
648
648
|
};
|
|
649
649
|
export declare const clamp: (v: any, a: any, b: any) => number;
|
|
650
650
|
export declare const horizontalScrollBar: (seriesData: any, height: any, width: any, svg: any, margin: any, innerWidth: any, scrollbarVisible: any, visibleBars: any, chartJSON: any, scrollPosition: any, isStackedChart: any, setAndUpdateChartData: any, isBarChart?: boolean) => void;
|
|
651
|
+
export declare function addTotalValue(totalValueMap: Map<string, number>, xScale: any, yScale: any, margin: TMargin, d3Annotation: any, oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, svg: any, isReportEditable?: boolean, isBarChart?: boolean): void;
|
|
652
|
+
export declare function createTotalMeasureValueMap(data: TData, totalValueMap: Map<string, number>, filteredDimension: string[]): void;
|
|
@@ -41,7 +41,11 @@ export declare enum chartTypes {
|
|
|
41
41
|
OrganizationChart = "OrganizationChart",
|
|
42
42
|
PyramidChart = "PyramidChart",
|
|
43
43
|
ProgressChart = "ProgressChart",
|
|
44
|
-
RadialBarChart = "RadialBarChart"
|
|
44
|
+
RadialBarChart = "RadialBarChart",
|
|
45
|
+
CombinationLine = "CombinationLine",
|
|
46
|
+
CombinationArea = "CombinationArea",
|
|
47
|
+
CombinationStackArea = "CombinationStackArea",
|
|
48
|
+
TornadoDefaultEntry = "defaultEntry"
|
|
45
49
|
}
|
|
46
50
|
export type TChartProps = {
|
|
47
51
|
data: TData;
|
|
@@ -13,10 +13,21 @@ export declare enum connectedStyle {
|
|
|
13
13
|
"dashed" = 7
|
|
14
14
|
}
|
|
15
15
|
export declare enum staticLineStyle {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"none" = "None",
|
|
17
|
+
"solid" = "Solid",
|
|
18
|
+
"dotted" = "Dotted",
|
|
19
|
+
"dashed" = "Dashed"
|
|
19
20
|
}
|
|
21
|
+
export declare enum strokeLineCap {
|
|
22
|
+
"butt" = "butt",
|
|
23
|
+
"round" = "round",
|
|
24
|
+
"square" = "square"
|
|
25
|
+
}
|
|
26
|
+
export declare enum axisTypes {
|
|
27
|
+
"primary" = "Primary",
|
|
28
|
+
"secondary" = "Secondary"
|
|
29
|
+
}
|
|
30
|
+
export declare const strokeDashValues = "20,10,5,5,5,10";
|
|
20
31
|
import { defaultChartFormatOptions } from "./DefaultProperties.types";
|
|
21
32
|
import * as d3 from "d3";
|
|
22
33
|
import * as d3Annotation from "d3-svg-annotation";
|
|
@@ -267,6 +278,10 @@ export declare enum horizontalLegendAllignment {
|
|
|
267
278
|
end = "End"
|
|
268
279
|
}
|
|
269
280
|
export type TSeries = {
|
|
281
|
+
legendUniqueId: any;
|
|
282
|
+
Type: any;
|
|
283
|
+
Axis: any;
|
|
284
|
+
AxisDataList: any;
|
|
270
285
|
legend: string;
|
|
271
286
|
data: TDataPoint[];
|
|
272
287
|
properties?: TLegendEntry;
|
|
@@ -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,
|
|
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;
|
|
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.
|
|
@@ -51,7 +51,7 @@ export declare function calculateMaxLegendWidth(list: string[], formatOptions: T
|
|
|
51
51
|
*
|
|
52
52
|
* @returns {void} This function does not return a value; it appends and updates SVG marker elements in the DOM.
|
|
53
53
|
*/
|
|
54
|
-
export declare function lineMarkers(lines: any, chartData: TSeries[], type:
|
|
54
|
+
export declare function lineMarkers(lines: any, chartData: TSeries[], type: any, xScale: any, yScale: any, yScaleRight: any, tooltipHandle: any, formatOptions: TDefaultChartFormatOptionsType, chartJSON: TChartJSON, secondaryCustomYaxisMaxValue: number, secondaryCustomYaxisMinValue: number, customYaxisMinValue: number, customYaxisMaxValue: number, isNormalizedChart: boolean): void;
|
|
55
55
|
/**
|
|
56
56
|
* Attaches hover interactions to the area chart elements to show markers and tooltips
|
|
57
57
|
* when the user moves the mouse over the chart.
|