pace-chart-lib 1.0.19 → 1.0.21
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/AreaFamily/AreaChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +667 -0
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +164 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +92 -0
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +111 -0
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +26 -0
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +10 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +3 -0
- package/dist/Components/Charts/Core/Common.types.d.ts +371 -0
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +240 -0
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +65 -0
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +595 -0
- package/dist/Services/ErrorLog.d.ts +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/pace-chart-lib.es.js +54406 -0
- package/dist/pace-chart-lib.umd.js +54409 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { TData } from "../Core/Common.types";
|
|
2
|
+
import type { TDefaultChartFormatOptionsType } from "../Core/DefaultProperties.types";
|
|
3
|
+
export type TMargin = {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
right: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
};
|
|
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",
|
|
29
|
+
customBarChart = "CustomBarChart",
|
|
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"
|
|
45
|
+
}
|
|
46
|
+
export type TChartProps = {
|
|
47
|
+
data: TData;
|
|
48
|
+
isDateType: any;
|
|
49
|
+
chartId?: string;
|
|
50
|
+
formatOptions?: TDefaultChartFormatOptionsType;
|
|
51
|
+
isReportEditable?: any;
|
|
52
|
+
};
|
|
53
|
+
export type TChartJSON = {
|
|
54
|
+
dimensionList: string[];
|
|
55
|
+
chartData: any[];
|
|
56
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
57
|
+
chartType: string;
|
|
58
|
+
legendList: any[];
|
|
59
|
+
secondaryAxisDrawn: boolean;
|
|
60
|
+
yMaxLeft: number;
|
|
61
|
+
yMaxRight: number;
|
|
62
|
+
yMinLeft: number;
|
|
63
|
+
yMinRight: number;
|
|
64
|
+
hideZeroValues: boolean;
|
|
65
|
+
formattedDimensionListMap: Map<string, any>;
|
|
66
|
+
xMax?: number;
|
|
67
|
+
xMin?: number;
|
|
68
|
+
};
|
|
69
|
+
export interface IXaxisData {
|
|
70
|
+
name: INameObject;
|
|
71
|
+
dataType: string;
|
|
72
|
+
dataSourceId: string;
|
|
73
|
+
groupBy?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IYaxisData {
|
|
76
|
+
name: INameObject;
|
|
77
|
+
dataType?: string;
|
|
78
|
+
dataSourceId: string;
|
|
79
|
+
filterData: IFilterData[];
|
|
80
|
+
legendData: ILegendData[];
|
|
81
|
+
}
|
|
82
|
+
export interface IFilterData {
|
|
83
|
+
actualName: string;
|
|
84
|
+
dataSourceId?: string;
|
|
85
|
+
name: string;
|
|
86
|
+
type: string;
|
|
87
|
+
}
|
|
88
|
+
export interface ILegendData {
|
|
89
|
+
actualName: string;
|
|
90
|
+
dataSourceId?: string;
|
|
91
|
+
name: string;
|
|
92
|
+
type: string;
|
|
93
|
+
}
|
|
94
|
+
export interface INameObject {
|
|
95
|
+
actualName: string;
|
|
96
|
+
dataSourceId?: string;
|
|
97
|
+
name: string;
|
|
98
|
+
type: string;
|
|
99
|
+
}
|
|
100
|
+
export interface ILineData {
|
|
101
|
+
annotation?: number;
|
|
102
|
+
axis?: string;
|
|
103
|
+
color?: string;
|
|
104
|
+
legend?: string;
|
|
105
|
+
lineStyle?: string;
|
|
106
|
+
type?: string;
|
|
107
|
+
hideZeroValues?: boolean;
|
|
108
|
+
legendUniqueId?: string;
|
|
109
|
+
lineWidth?: number;
|
|
110
|
+
markerColor?: string;
|
|
111
|
+
markerShape?: string;
|
|
112
|
+
markerSize?: number;
|
|
113
|
+
maximumMeasure?: number;
|
|
114
|
+
minimumMeasure?: number;
|
|
115
|
+
seriesLabelVisibility?: boolean;
|
|
116
|
+
fontStyle?: string[];
|
|
117
|
+
borderColor?: string;
|
|
118
|
+
disableConnector?: boolean;
|
|
119
|
+
disableLineStyle?: boolean;
|
|
120
|
+
actualChartType?: string;
|
|
121
|
+
endColor?: string;
|
|
122
|
+
stackBorderColor?: string;
|
|
123
|
+
valueFontColor?: string;
|
|
124
|
+
disableAnnotationPosition?: string;
|
|
125
|
+
name?: string;
|
|
126
|
+
startColor?: string;
|
|
127
|
+
disableAnnotation?: boolean;
|
|
128
|
+
labelFontSize?: number;
|
|
129
|
+
labelColor?: string;
|
|
130
|
+
borderStyle?: string;
|
|
131
|
+
nodeWidth?: number;
|
|
132
|
+
measureUniqueId?: string;
|
|
133
|
+
stackBorderWidth?: number;
|
|
134
|
+
dataLabelPosition?: string;
|
|
135
|
+
disableMarkerShape?: boolean;
|
|
136
|
+
disableMarkerColor?: boolean;
|
|
137
|
+
borderRadius?: number;
|
|
138
|
+
fontSize?: number;
|
|
139
|
+
valueFont?: string;
|
|
140
|
+
setColorScale?: boolean;
|
|
141
|
+
connector?: number;
|
|
142
|
+
areaBorderColor?: string;
|
|
143
|
+
labelFontStyle?: string[];
|
|
144
|
+
borderWidth?: number;
|
|
145
|
+
secondaryAxisBgColor?: string;
|
|
146
|
+
opacity?: number;
|
|
147
|
+
fontFamily?: string;
|
|
148
|
+
backgroundColor?: string;
|
|
149
|
+
valueFontStyle?: string[];
|
|
150
|
+
valueFontSize?: number;
|
|
151
|
+
labelFontColor?: string;
|
|
152
|
+
nodeHeight?: number;
|
|
153
|
+
disableDataLabelPosition?: boolean;
|
|
154
|
+
disableMarkerSize?: boolean;
|
|
155
|
+
annotationPosition?: number;
|
|
156
|
+
alias?: string;
|
|
157
|
+
stackBorderStyle?: number;
|
|
158
|
+
labelFont?: string;
|
|
159
|
+
individualAnnotationVisibility?: string;
|
|
160
|
+
currentMeasure?: string;
|
|
161
|
+
currentLegend?: string;
|
|
162
|
+
tooltip?: string;
|
|
163
|
+
tooltipMeasure?: number;
|
|
164
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { TChartMargins, TDefaultChartFormatOptionsType } from "../Core/Common.types";
|
|
2
|
+
/**
|
|
3
|
+
* Calculates margins for Bubble and Scatter charts based on various parameters.
|
|
4
|
+
* @param width // Width of the chart container.
|
|
5
|
+
* @param height // Height of the chart container.
|
|
6
|
+
* @param maxMeasure // Maximum measure value.
|
|
7
|
+
* @param formatOptions // Formatting options for the chart.
|
|
8
|
+
* @param maxDimension // Maximum dimension value.
|
|
9
|
+
* @param maxLegendDimensions // Maximum dimensions for the legend.
|
|
10
|
+
* @returns /** An object containing calculated margins and other related dimensions.
|
|
11
|
+
*/
|
|
12
|
+
export declare function marginCalculationForBubbleScatter(width: number, height: number, maxMeasure: number, formatOptions: TDefaultChartFormatOptionsType, maxDimension: number, maxLegendDimensions: number[]): {
|
|
13
|
+
margins: TChartMargins;
|
|
14
|
+
yLabel: number;
|
|
15
|
+
xLabel: number;
|
|
16
|
+
yTitle: number;
|
|
17
|
+
xTitle: number;
|
|
18
|
+
chartTitleHeight: number;
|
|
19
|
+
legendMargin: number;
|
|
20
|
+
innerHeight: number;
|
|
21
|
+
innerWidth: number;
|
|
22
|
+
};
|
|
23
|
+
export declare function customYscaleLabelFormatting(formatOptions: TDefaultChartFormatOptionsType, YminLeft: number, YmaxLeft: number): {
|
|
24
|
+
longestMeasure: number;
|
|
25
|
+
customYaxisIntervalValue: number;
|
|
26
|
+
customYaxisMaxValue: number;
|
|
27
|
+
customYaxisMinValue: number;
|
|
28
|
+
};
|
|
29
|
+
export declare function customXscaleLabelFormatting(formatOptions: TDefaultChartFormatOptionsType, xMinLeft: number, xMaxLeft: number): {
|
|
30
|
+
longestDimension: number;
|
|
31
|
+
customXaxisIntervalValue: number;
|
|
32
|
+
customXaxisMaxValue: number;
|
|
33
|
+
customXaxisMinValue: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Sets the X-axis title on the SVG chart, adjusting visibility, positioning, and styling based on format options and chart type.
|
|
37
|
+
*
|
|
38
|
+
* @param {TDefaultChartFormatOptionsType} formatOptions - Chart format options including axis title settings and visibility.
|
|
39
|
+
* @param {boolean} barChart - Flag indicating if the chart is a bar chart.
|
|
40
|
+
* @param {any} svg - D3 selection of the SVG element where the X-axis title will be appended.
|
|
41
|
+
* @param {TMargin} margin - Margin object containing top, left, right, and bottom margins.
|
|
42
|
+
* @param {number} xLabel - Height offset for the X-axis label.
|
|
43
|
+
* @param {number} height - Total height of the SVG/chart container.
|
|
44
|
+
* @param {number} xTitle - Height allocated for the X-axis title element.
|
|
45
|
+
* @param {string} chartType - The type of chart (e.g., "bar", "line", etc.).
|
|
46
|
+
* @param {number} yLabel - Y-axis label offset (used for positioning in some cases).
|
|
47
|
+
* @param {number} innerWidth - Inner width of the static SVG container.
|
|
48
|
+
* @param {number} innerHeight - Height of the inner chart area (excluding margins).
|
|
49
|
+
*
|
|
50
|
+
* @returns {any} The modified SVG selection with the appended X-axis title element.
|
|
51
|
+
*/
|
|
52
|
+
export declare function setXaxistitle(formatOptions: TDefaultChartFormatOptionsType, barChart: boolean, svg: any, margin: TChartMargins, xLabel: number, height: number, xTitle: number, chartType: string, yLabel: number, innerWidth: number, innerHeight: number): void;
|
|
53
|
+
/**
|
|
54
|
+
* Adds a Y-axis title to the SVG chart, handling visibility, positioning, rotation, and styling based on format options.
|
|
55
|
+
*
|
|
56
|
+
* @param {number} innerHeight - The height of the inner chart area (excluding margins).
|
|
57
|
+
* @param {TDefaultChartFormatOptionsType} formatOptions - Chart formatting options, including Y-axis title settings.
|
|
58
|
+
* @param {number} dataTableHeight - Height of any data table below the chart, used to adjust positioning.
|
|
59
|
+
* @param {boolean} barChart - Whether the chart is a bar chart.
|
|
60
|
+
* @param {any} svg - D3 selection of the SVG element where the Y-axis title will be appended.
|
|
61
|
+
* @param {TMargin} margin - Margins around the chart.
|
|
62
|
+
* @param {number} yTitle - Height allocated for the Y-axis title element.
|
|
63
|
+
* @param {number} yLabel - Offset for the Y-axis label, used for positioning.
|
|
64
|
+
*
|
|
65
|
+
* @returns {any} The SVG selection with the appended Y-axis title.
|
|
66
|
+
*/
|
|
67
|
+
export declare function yAxistitle(innerHeight: number, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, barChart: boolean, svg: any, margin: TChartMargins, yTitle: number, yLabel: number): any;
|
|
68
|
+
/**
|
|
69
|
+
* Generates an array of Y-axis labels based on provided min, max values,
|
|
70
|
+
* chart dimensions, format options, and optional custom min/max values.
|
|
71
|
+
*
|
|
72
|
+
* @param {number} Ymax - The maximum Y value from data or chart.
|
|
73
|
+
* @param {number} Ymin - The minimum Y value from data or chart.
|
|
74
|
+
* @param {number} innerHeight - The inner height of the chart area in pixels.
|
|
75
|
+
* @param {TDefaultChartFormatOptionsType} formatOptions - Configuration options for formatting the axis labels.
|
|
76
|
+
* @param {TChartJSON} chartJSON - Chart metadata including Y axis min/max values.
|
|
77
|
+
* @param {number} customYaxisMinValue - Optional custom minimum Y-axis value.
|
|
78
|
+
* @param {number} customYaxisMaxValue - Optional custom maximum Y-axis value.
|
|
79
|
+
*
|
|
80
|
+
* @returns {{ yAxisLabelArray: number[], customTickValue?: number }} Object containing the array of Y-axis labels and optionally the computed custom tick count.
|
|
81
|
+
*/
|
|
82
|
+
export declare function responsiveYaxisLabel(Ymax: number, Ymin: number, innerHeight: number, formatOptions: TDefaultChartFormatOptionsType, customYaxisMinValue: number, customYaxisMaxValue: number): {
|
|
83
|
+
yAxisLabelArray: any[];
|
|
84
|
+
customTickValue: any;
|
|
85
|
+
};
|
|
86
|
+
export declare function responsiveXaxisLabelForNumericValue(xMax: number, xMin: number, innerWidth: number, formatOptions: TDefaultChartFormatOptionsType, customXaxisMinValue: number, customXaxisMaxValue: number, innerHeight: number, barChart?: boolean): {
|
|
87
|
+
xAxisLabelArray: any[];
|
|
88
|
+
customTickValue: any;
|
|
89
|
+
};
|
|
90
|
+
export declare function initYaxis(gTag: any, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, yLabel: number, yAxisLeft: any, innerHeight: number): void;
|
|
91
|
+
export declare function initXaxis(gTag: any, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, xLabel: number, xAxis: any, innerHeight: number, innerWidth: number, margins: TChartMargins, yScale: any): void;
|
|
92
|
+
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;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { TDefaultChartFormatOptionsType, TLegendEntry, TPieOfPieSeries, TSeries } from "../Core/Common.types";
|
|
2
|
+
export interface IChartProps {
|
|
3
|
+
chartId: string;
|
|
4
|
+
data: {
|
|
5
|
+
ChartData: TSeries[];
|
|
6
|
+
};
|
|
7
|
+
clientWidth: number;
|
|
8
|
+
clientHeight: number;
|
|
9
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
10
|
+
}
|
|
11
|
+
export interface IPieofPieChartProps {
|
|
12
|
+
chartId: string;
|
|
13
|
+
clientWidth: number;
|
|
14
|
+
clientHeight: number;
|
|
15
|
+
data: TPieOfPieSeries[];
|
|
16
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
17
|
+
legendProperties: TLegendEntry[];
|
|
18
|
+
}
|
|
19
|
+
export interface IVennChartProps {
|
|
20
|
+
chartId: string;
|
|
21
|
+
data: TVennSeries[];
|
|
22
|
+
clientWidth: number;
|
|
23
|
+
clientHeight: number;
|
|
24
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
25
|
+
}
|
|
26
|
+
export type TVennSeries = {
|
|
27
|
+
"sets": string[];
|
|
28
|
+
"label": string;
|
|
29
|
+
"legendDisplay": string;
|
|
30
|
+
"size": number;
|
|
31
|
+
"properties"?: TLegendEntry;
|
|
32
|
+
"actualValue": number;
|
|
33
|
+
};
|
|
34
|
+
export type TSankeyChartProps = {
|
|
35
|
+
data: any;
|
|
36
|
+
sankeyLinks: TNodePairs[];
|
|
37
|
+
sankeyNodes: TLegendEntry[];
|
|
38
|
+
chartId: string;
|
|
39
|
+
clientWidth: number;
|
|
40
|
+
clientHeight: number;
|
|
41
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
42
|
+
};
|
|
43
|
+
export type TNodePairs = {
|
|
44
|
+
source: string;
|
|
45
|
+
target: string;
|
|
46
|
+
value: number;
|
|
47
|
+
};
|
|
48
|
+
export declare const TSankeyDataLabelPostion: {
|
|
49
|
+
left: string;
|
|
50
|
+
right: string;
|
|
51
|
+
center: string;
|
|
52
|
+
};
|
|
53
|
+
export type TOrganizationChartData = {
|
|
54
|
+
id?: number;
|
|
55
|
+
value: number | null;
|
|
56
|
+
absoluteValue: number;
|
|
57
|
+
label?: string;
|
|
58
|
+
nodeLabel?: string;
|
|
59
|
+
children?: TOrganizationChartData[];
|
|
60
|
+
styleObject?: TLegendEntry;
|
|
61
|
+
};
|
|
62
|
+
export type TOrganizationChartProps = {
|
|
63
|
+
data: TOrganizationChartData[];
|
|
64
|
+
legendEntries: TLegendEntry[];
|
|
65
|
+
chartId: string;
|
|
66
|
+
clientWidth: number;
|
|
67
|
+
clientHeight: number;
|
|
68
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
69
|
+
legendSequence: string[];
|
|
70
|
+
};
|
|
71
|
+
export declare const orgChartDirection: {
|
|
72
|
+
left: string;
|
|
73
|
+
right: string;
|
|
74
|
+
top: string;
|
|
75
|
+
bottom: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const connectorStyle: {
|
|
78
|
+
solid: string;
|
|
79
|
+
dashed: string;
|
|
80
|
+
dotted: string;
|
|
81
|
+
};
|
|
82
|
+
export declare const orgChartNodeType: {
|
|
83
|
+
rounded: string;
|
|
84
|
+
pill: string;
|
|
85
|
+
extra_rounded: string;
|
|
86
|
+
squircle: string;
|
|
87
|
+
rectangle: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const orgChartLineType: {
|
|
90
|
+
curve: string;
|
|
91
|
+
elbow: string;
|
|
92
|
+
diagonal: string;
|
|
93
|
+
s_curve: string;
|
|
94
|
+
arc: string;
|
|
95
|
+
reverse_elbow: string;
|
|
96
|
+
zigzag: string;
|
|
97
|
+
};
|
|
98
|
+
export type TOrgChartdata = {
|
|
99
|
+
id: number;
|
|
100
|
+
value: number;
|
|
101
|
+
absoluteValue: number;
|
|
102
|
+
nodeLabel: string;
|
|
103
|
+
label: string;
|
|
104
|
+
UID: string;
|
|
105
|
+
styleObject: TLegendEntry;
|
|
106
|
+
_expanded: boolean;
|
|
107
|
+
_pagingStep: number;
|
|
108
|
+
_directSubordinatesPaging: number;
|
|
109
|
+
_directSubordinates: number;
|
|
110
|
+
_totalSubordinates: number;
|
|
111
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const unitedStates: {
|
|
2
|
+
type: string;
|
|
3
|
+
features: ({
|
|
4
|
+
type: string;
|
|
5
|
+
id: string;
|
|
6
|
+
properties: {
|
|
7
|
+
name: string;
|
|
8
|
+
value: number;
|
|
9
|
+
};
|
|
10
|
+
geometry: {
|
|
11
|
+
type: string;
|
|
12
|
+
coordinates: number[][][];
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
type: string;
|
|
16
|
+
id: string;
|
|
17
|
+
properties: {
|
|
18
|
+
name: string;
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
21
|
+
geometry: {
|
|
22
|
+
type: string;
|
|
23
|
+
coordinates: number[][][][];
|
|
24
|
+
};
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates the coordinates for displaying the total value in the chart.
|
|
3
|
+
* @param chartFormatOptions - The formatting options for the chart.
|
|
4
|
+
* @param totalValue - The total value to be displayed.
|
|
5
|
+
* @param chartTitleHeight - The height of the chart title.
|
|
6
|
+
* @param chartAreaTagG - The SVG group element for the chart area.
|
|
7
|
+
* @param innerWidth - The inner width of the chart area.
|
|
8
|
+
* @param innerHeight - The inner height of the chart area.
|
|
9
|
+
*/
|
|
10
|
+
export declare const drawTotalValue: (chartFormatOptions: any, totalValue: any, chartTitleHeight: any, chartAreaTagG: any, innerWidth: any, innerHeight: any) => void;
|