pace-chart-lib 1.0.62 → 1.0.63
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/ChartsWithAxisTypes.types.d.ts +1 -0
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +2 -1
- package/dist/Components/Charts/Core/Common.types.d.ts +1 -0
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +3 -3
- package/dist/pace-chart-lib.es.js +137 -57
- package/dist/pace-chart-lib.umd.js +137 -57
- package/package.json +1 -1
|
@@ -56,6 +56,7 @@ export type TChartProps = {
|
|
|
56
56
|
isReportEditable?: any;
|
|
57
57
|
isAdvancedAnalyticsWaterFall?: boolean;
|
|
58
58
|
onDataLabelCoordinatesChange?: (coords: any[]) => void;
|
|
59
|
+
addLocalFilterFromLib?: (clickedLegendData: any) => void;
|
|
59
60
|
};
|
|
60
61
|
export type TChartJSON = {
|
|
61
62
|
dimensionList: string[];
|
|
@@ -8,7 +8,8 @@ export interface IChartProps {
|
|
|
8
8
|
clientHeight: number;
|
|
9
9
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
10
10
|
isReportEditable?: boolean;
|
|
11
|
-
onDataLabelCoordinatesChange?: any;
|
|
11
|
+
onDataLabelCoordinatesChange?: (coords: any[]) => void;
|
|
12
|
+
addLocalFilterFromLib?: (clickedLegendData: any) => void;
|
|
12
13
|
}
|
|
13
14
|
export interface IPieofPieChartProps {
|
|
14
15
|
chartId: string;
|
|
@@ -372,6 +372,7 @@ export type TBubbleChartProps = {
|
|
|
372
372
|
data: any;
|
|
373
373
|
legendEntries?: TLegendsFormatting[];
|
|
374
374
|
formatOptions?: TDefaultChartFormatOptionsType;
|
|
375
|
+
addLocalFilterFromLib?: (clickedLegendData: any) => void;
|
|
375
376
|
};
|
|
376
377
|
export declare const referenceLineTypes: {
|
|
377
378
|
None: string;
|
|
@@ -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, dataTableHeight: number, margin: TChartMargins, 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, addLocalFilterFromLib?: (clickedLegendData: any) => void): 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.
|
|
@@ -123,7 +123,7 @@ export declare const findStringWithLongestLength: (data: (string | Record<string
|
|
|
123
123
|
* @param {TDefaultChartFormatOptionsType} chartFormatOptions - Configuration object for formatting styles and settings.
|
|
124
124
|
* @param {string} chartId - Unique ID for the chart, used to identify elements within the SVG.
|
|
125
125
|
*/
|
|
126
|
-
export declare const legendsWithScroll: (svg: any, seriesData: TSeries[] | TVennSeries[], x: number, y: number, width: number, height: number, legendPosition: string, alignment: string, legendShape: string, chartFormatOptions: TDefaultChartFormatOptionsType, chartId: string, isVennChart?: boolean) => void;
|
|
126
|
+
export declare const legendsWithScroll: (svg: any, seriesData: TSeries[] | TVennSeries[], x: number, y: number, width: number, height: number, legendPosition: string, alignment: string, legendShape: string, chartFormatOptions: TDefaultChartFormatOptionsType, chartId: string, isVennChart?: boolean, addLocalFilterFromLib?: (clickedLegendData: any) => void) => void;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* Appends a filled circle shape to the given legend container.
|
|
@@ -207,7 +207,7 @@ export declare const marginCalculationsForChartsWithoutAxis: (chartFormatOptions
|
|
|
207
207
|
* @param chartId - The unique identifier for the chart.
|
|
208
208
|
* @param margins - The margins for the chart area.
|
|
209
209
|
*/
|
|
210
|
-
export declare const initLegendListWithTotalValueAllowance: (chartFormatOptions: TDefaultChartFormatOptionsType, svg: d3.Selection<SVGGElement, any, any, any>, seriesData: TSeries[], width: number, height: number, legendListWidth: number, chartTitleHeight: number, chartId: string, margins: TChartMargins, staticLegendShape: string, shouldAllowTotalValueMargin?: boolean) => void;
|
|
210
|
+
export declare const initLegendListWithTotalValueAllowance: (chartFormatOptions: TDefaultChartFormatOptionsType, svg: d3.Selection<SVGGElement, any, any, any>, seriesData: TSeries[], width: number, height: number, legendListWidth: number, chartTitleHeight: number, chartId: string, margins: TChartMargins, staticLegendShape: string, shouldAllowTotalValueMargin?: boolean, addLocalFilterFromLib?: any) => void;
|
|
211
211
|
/**
|
|
212
212
|
* Calculates the maximum possible width and height for the legends based on the longest legend string.
|
|
213
213
|
* @param chartFormatOptions - The format options for the chart.
|
|
@@ -16195,7 +16195,7 @@ const fileName$b = "CommonFunctions.ts";
|
|
|
16195
16195
|
chartTypes.Speedometer,
|
|
16196
16196
|
chartTypes.RadialBarChart
|
|
16197
16197
|
];
|
|
16198
|
-
function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width, legendMargin, formatOptions, seriesData, chartId, dataTableHeight, margin, legendShape, chartType) {
|
|
16198
|
+
function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width, legendMargin, formatOptions, seriesData, chartId, dataTableHeight, margin, legendShape, chartType, addLocalFilterFromLib) {
|
|
16199
16199
|
try {
|
|
16200
16200
|
let position = formatOptions.legends.legendPosition;
|
|
16201
16201
|
let horizontalLegendAlignment = formatOptions.legends.legendAlignmentTopBottom;
|
|
@@ -16217,7 +16217,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16217
16217
|
verticalLegendAlignment,
|
|
16218
16218
|
legendShape,
|
|
16219
16219
|
formatOptions,
|
|
16220
|
-
chartId
|
|
16220
|
+
chartId,
|
|
16221
|
+
false,
|
|
16222
|
+
addLocalFilterFromLib
|
|
16221
16223
|
);
|
|
16222
16224
|
break;
|
|
16223
16225
|
case staticLegendPosition.top:
|
|
@@ -16232,7 +16234,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16232
16234
|
horizontalLegendAlignment,
|
|
16233
16235
|
legendShape,
|
|
16234
16236
|
formatOptions,
|
|
16235
|
-
chartId
|
|
16237
|
+
chartId,
|
|
16238
|
+
false,
|
|
16239
|
+
addLocalFilterFromLib
|
|
16236
16240
|
);
|
|
16237
16241
|
break;
|
|
16238
16242
|
case staticLegendPosition.left:
|
|
@@ -16249,7 +16253,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16249
16253
|
verticalLegendAlignment,
|
|
16250
16254
|
legendShape,
|
|
16251
16255
|
formatOptions,
|
|
16252
|
-
chartId
|
|
16256
|
+
chartId,
|
|
16257
|
+
false,
|
|
16258
|
+
addLocalFilterFromLib
|
|
16253
16259
|
);
|
|
16254
16260
|
break;
|
|
16255
16261
|
case staticLegendPosition.bottom:
|
|
@@ -16264,7 +16270,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16264
16270
|
horizontalLegendAlignment,
|
|
16265
16271
|
legendShape,
|
|
16266
16272
|
formatOptions,
|
|
16267
|
-
chartId
|
|
16273
|
+
chartId,
|
|
16274
|
+
false,
|
|
16275
|
+
addLocalFilterFromLib
|
|
16268
16276
|
);
|
|
16269
16277
|
break;
|
|
16270
16278
|
}
|
|
@@ -16789,7 +16797,7 @@ const findStringWithLongestLength = (data, key) => {
|
|
|
16789
16797
|
logError$2(fileName$b, "findStringWithLongestLength", error);
|
|
16790
16798
|
}
|
|
16791
16799
|
};
|
|
16792
|
-
const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPosition, alignment, legendShape, chartFormatOptions, chartId, isVennChart = false) => {
|
|
16800
|
+
const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPosition, alignment, legendShape, chartFormatOptions, chartId, isVennChart = false, addLocalFilterFromLib) => {
|
|
16793
16801
|
try {
|
|
16794
16802
|
if (chartFormatOptions.legends.legendVisibility) {
|
|
16795
16803
|
let justifyContent = "";
|
|
@@ -16812,7 +16820,9 @@ const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPositio
|
|
|
16812
16820
|
if (legendPosition == staticLegendPosition.top || legendPosition == staticLegendPosition.bottom)
|
|
16813
16821
|
div.style("flex-direction", "row");
|
|
16814
16822
|
seriesData.forEach((d, i) => {
|
|
16815
|
-
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("width", "fit-content").style("margin", "3px 0px").style("flex-wrap", "nowrap").style("white-space", "nowrap").on("
|
|
16823
|
+
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("width", "fit-content").style("margin", "3px 0px").style("flex-wrap", "nowrap").style("white-space", "nowrap").on("dblclick", function() {
|
|
16824
|
+
addLocalFilterFromLib(d?.properties);
|
|
16825
|
+
}).on("mousemove", function() {
|
|
16816
16826
|
if (chartFormatOptions.legends.onHoverEffect) {
|
|
16817
16827
|
const hoverId = this.textContent.replace(/\s+/g, "-");
|
|
16818
16828
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
@@ -17080,7 +17090,7 @@ const marginCalculationsForChartsWithoutAxis = (chartFormatOptions, width, heigh
|
|
|
17080
17090
|
logError$2(fileName$b, "marginCalculationsForChartsWithoutAxis", error);
|
|
17081
17091
|
}
|
|
17082
17092
|
};
|
|
17083
|
-
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true) => {
|
|
17093
|
+
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true, addLocalFilterFromLib) => {
|
|
17084
17094
|
try {
|
|
17085
17095
|
let position = chartFormatOptions.legends.legendPosition;
|
|
17086
17096
|
let totalPosition = chartFormatOptions.total.totalPosition;
|
|
@@ -17103,7 +17113,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17103
17113
|
verticalLegendAlignment,
|
|
17104
17114
|
staticLegendShape2,
|
|
17105
17115
|
chartFormatOptions,
|
|
17106
|
-
chartId
|
|
17116
|
+
chartId,
|
|
17117
|
+
false,
|
|
17118
|
+
addLocalFilterFromLib
|
|
17107
17119
|
);
|
|
17108
17120
|
break;
|
|
17109
17121
|
case staticLegendPosition.top:
|
|
@@ -17118,7 +17130,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17118
17130
|
horizontalLegendAlignment,
|
|
17119
17131
|
staticLegendShape2,
|
|
17120
17132
|
chartFormatOptions,
|
|
17121
|
-
chartId
|
|
17133
|
+
chartId,
|
|
17134
|
+
false,
|
|
17135
|
+
addLocalFilterFromLib
|
|
17122
17136
|
);
|
|
17123
17137
|
break;
|
|
17124
17138
|
case staticLegendPosition.left:
|
|
@@ -17133,7 +17147,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17133
17147
|
verticalLegendAlignment,
|
|
17134
17148
|
staticLegendShape2,
|
|
17135
17149
|
chartFormatOptions,
|
|
17136
|
-
chartId
|
|
17150
|
+
chartId,
|
|
17151
|
+
false,
|
|
17152
|
+
addLocalFilterFromLib
|
|
17137
17153
|
);
|
|
17138
17154
|
break;
|
|
17139
17155
|
case staticLegendPosition.bottom:
|
|
@@ -17148,7 +17164,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17148
17164
|
horizontalLegendAlignment,
|
|
17149
17165
|
staticLegendShape2,
|
|
17150
17166
|
chartFormatOptions,
|
|
17151
|
-
chartId
|
|
17167
|
+
chartId,
|
|
17168
|
+
false,
|
|
17169
|
+
addLocalFilterFromLib
|
|
17152
17170
|
);
|
|
17153
17171
|
break;
|
|
17154
17172
|
}
|
|
@@ -17382,7 +17400,8 @@ const ColumnChart = ({
|
|
|
17382
17400
|
formatOptions,
|
|
17383
17401
|
data,
|
|
17384
17402
|
isReportEditable,
|
|
17385
|
-
onDataLabelCoordinatesChange
|
|
17403
|
+
onDataLabelCoordinatesChange,
|
|
17404
|
+
addLocalFilterFromLib
|
|
17386
17405
|
}) => {
|
|
17387
17406
|
const chartId = crypto.randomUUID();
|
|
17388
17407
|
let columnWidth = 0;
|
|
@@ -17598,7 +17617,9 @@ const ColumnChart = ({
|
|
|
17598
17617
|
chartId,
|
|
17599
17618
|
dataTableHeight,
|
|
17600
17619
|
margin,
|
|
17601
|
-
staticLegendShape.rectangle
|
|
17620
|
+
staticLegendShape.rectangle,
|
|
17621
|
+
chartType,
|
|
17622
|
+
addLocalFilterFromLib
|
|
17602
17623
|
);
|
|
17603
17624
|
horizontalScrollBar(
|
|
17604
17625
|
seriesData,
|
|
@@ -17954,7 +17975,8 @@ const CustomColumnChart = ({
|
|
|
17954
17975
|
formatOptions,
|
|
17955
17976
|
data,
|
|
17956
17977
|
isReportEditable,
|
|
17957
|
-
onDataLabelCoordinatesChange
|
|
17978
|
+
onDataLabelCoordinatesChange,
|
|
17979
|
+
addLocalFilterFromLib
|
|
17958
17980
|
}) => {
|
|
17959
17981
|
const chartId = crypto.randomUUID();
|
|
17960
17982
|
let columnWidth = 0;
|
|
@@ -18182,8 +18204,9 @@ const CustomColumnChart = ({
|
|
|
18182
18204
|
chartId,
|
|
18183
18205
|
dataTableHeight,
|
|
18184
18206
|
margin,
|
|
18185
|
-
null
|
|
18186
|
-
|
|
18207
|
+
null,
|
|
18208
|
+
chartType,
|
|
18209
|
+
addLocalFilterFromLib
|
|
18187
18210
|
);
|
|
18188
18211
|
horizontalScrollBar(
|
|
18189
18212
|
seriesData,
|
|
@@ -19097,7 +19120,8 @@ const LayeredColumnChart = ({
|
|
|
19097
19120
|
formatOptions,
|
|
19098
19121
|
data,
|
|
19099
19122
|
isReportEditable,
|
|
19100
|
-
onDataLabelCoordinatesChange
|
|
19123
|
+
onDataLabelCoordinatesChange,
|
|
19124
|
+
addLocalFilterFromLib
|
|
19101
19125
|
}) => {
|
|
19102
19126
|
const chartId = crypto.randomUUID();
|
|
19103
19127
|
let columnWidth = 0;
|
|
@@ -19300,7 +19324,9 @@ const LayeredColumnChart = ({
|
|
|
19300
19324
|
chartId,
|
|
19301
19325
|
dataTableHeight,
|
|
19302
19326
|
margin,
|
|
19303
|
-
staticLegendShape.rectangle
|
|
19327
|
+
staticLegendShape.rectangle,
|
|
19328
|
+
chartType,
|
|
19329
|
+
addLocalFilterFromLib
|
|
19304
19330
|
);
|
|
19305
19331
|
horizontalScrollBar(
|
|
19306
19332
|
seriesData,
|
|
@@ -19651,7 +19677,8 @@ const StackColumnChart = ({
|
|
|
19651
19677
|
formatOptions,
|
|
19652
19678
|
data,
|
|
19653
19679
|
isReportEditable,
|
|
19654
|
-
onDataLabelCoordinatesChange
|
|
19680
|
+
onDataLabelCoordinatesChange,
|
|
19681
|
+
addLocalFilterFromLib
|
|
19655
19682
|
}) => {
|
|
19656
19683
|
const chartId = crypto.randomUUID();
|
|
19657
19684
|
let columnWidth = 0;
|
|
@@ -19853,7 +19880,9 @@ const StackColumnChart = ({
|
|
|
19853
19880
|
chartId,
|
|
19854
19881
|
dataTableHeight,
|
|
19855
19882
|
margin,
|
|
19856
|
-
staticLegendShape.rectangle
|
|
19883
|
+
staticLegendShape.rectangle,
|
|
19884
|
+
chartType,
|
|
19885
|
+
addLocalFilterFromLib
|
|
19857
19886
|
);
|
|
19858
19887
|
horizontalScrollBar(
|
|
19859
19888
|
seriesData,
|
|
@@ -20387,7 +20416,8 @@ const NormalizedStackColumnChart = ({
|
|
|
20387
20416
|
formatOptions,
|
|
20388
20417
|
data,
|
|
20389
20418
|
isReportEditable,
|
|
20390
|
-
onDataLabelCoordinatesChange
|
|
20419
|
+
onDataLabelCoordinatesChange,
|
|
20420
|
+
addLocalFilterFromLib
|
|
20391
20421
|
}) => {
|
|
20392
20422
|
const chartId = crypto.randomUUID();
|
|
20393
20423
|
let columnWidth = 0;
|
|
@@ -20588,7 +20618,9 @@ const NormalizedStackColumnChart = ({
|
|
|
20588
20618
|
chartId,
|
|
20589
20619
|
dataTableHeight,
|
|
20590
20620
|
margin,
|
|
20591
|
-
staticLegendShape.rectangle
|
|
20621
|
+
staticLegendShape.rectangle,
|
|
20622
|
+
chartType,
|
|
20623
|
+
addLocalFilterFromLib
|
|
20592
20624
|
);
|
|
20593
20625
|
horizontalScrollBar(
|
|
20594
20626
|
seriesData,
|
|
@@ -22223,7 +22255,8 @@ const LineChart = ({
|
|
|
22223
22255
|
formatOptions,
|
|
22224
22256
|
data,
|
|
22225
22257
|
isReportEditable,
|
|
22226
|
-
onDataLabelCoordinatesChange
|
|
22258
|
+
onDataLabelCoordinatesChange,
|
|
22259
|
+
addLocalFilterFromLib
|
|
22227
22260
|
}) => {
|
|
22228
22261
|
const chartId = crypto.randomUUID();
|
|
22229
22262
|
const barWidth = 0;
|
|
@@ -22441,7 +22474,9 @@ const LineChart = ({
|
|
|
22441
22474
|
chartId,
|
|
22442
22475
|
dataTableHeight,
|
|
22443
22476
|
margin,
|
|
22444
|
-
staticLegendShape.line
|
|
22477
|
+
staticLegendShape.line,
|
|
22478
|
+
chartType,
|
|
22479
|
+
addLocalFilterFromLib
|
|
22445
22480
|
);
|
|
22446
22481
|
horizontalScrollBar(
|
|
22447
22482
|
seriesData,
|
|
@@ -22796,7 +22831,8 @@ const StackLineChart = ({
|
|
|
22796
22831
|
formatOptions,
|
|
22797
22832
|
data,
|
|
22798
22833
|
isReportEditable,
|
|
22799
|
-
onDataLabelCoordinatesChange
|
|
22834
|
+
onDataLabelCoordinatesChange,
|
|
22835
|
+
addLocalFilterFromLib
|
|
22800
22836
|
}) => {
|
|
22801
22837
|
const chartId = crypto.randomUUID();
|
|
22802
22838
|
const barWidth = 0;
|
|
@@ -22999,7 +23035,9 @@ const StackLineChart = ({
|
|
|
22999
23035
|
chartId,
|
|
23000
23036
|
dataTableHeight,
|
|
23001
23037
|
margin,
|
|
23002
|
-
staticLegendShape.line
|
|
23038
|
+
staticLegendShape.line,
|
|
23039
|
+
chartType,
|
|
23040
|
+
addLocalFilterFromLib
|
|
23003
23041
|
);
|
|
23004
23042
|
horizontalScrollBar(
|
|
23005
23043
|
seriesData,
|
|
@@ -23381,7 +23419,8 @@ const NormalisedStackLineChart = ({
|
|
|
23381
23419
|
formatOptions,
|
|
23382
23420
|
data,
|
|
23383
23421
|
isReportEditable,
|
|
23384
|
-
onDataLabelCoordinatesChange
|
|
23422
|
+
onDataLabelCoordinatesChange,
|
|
23423
|
+
addLocalFilterFromLib
|
|
23385
23424
|
}) => {
|
|
23386
23425
|
const chartId = crypto.randomUUID();
|
|
23387
23426
|
const barWidth = 0;
|
|
@@ -23575,7 +23614,9 @@ const NormalisedStackLineChart = ({
|
|
|
23575
23614
|
chartId,
|
|
23576
23615
|
dataTableHeight,
|
|
23577
23616
|
margin,
|
|
23578
|
-
staticLegendShape.line
|
|
23617
|
+
staticLegendShape.line,
|
|
23618
|
+
chartType,
|
|
23619
|
+
addLocalFilterFromLib
|
|
23579
23620
|
);
|
|
23580
23621
|
horizontalScrollBar(
|
|
23581
23622
|
seriesData,
|
|
@@ -23909,7 +23950,8 @@ const HorizontalBarChart = ({
|
|
|
23909
23950
|
formatOptions,
|
|
23910
23951
|
data,
|
|
23911
23952
|
isReportEditable,
|
|
23912
|
-
onDataLabelCoordinatesChange
|
|
23953
|
+
onDataLabelCoordinatesChange,
|
|
23954
|
+
addLocalFilterFromLib
|
|
23913
23955
|
}) => {
|
|
23914
23956
|
const chartId = crypto.randomUUID();
|
|
23915
23957
|
let columnWidth = 0;
|
|
@@ -24111,7 +24153,9 @@ const HorizontalBarChart = ({
|
|
|
24111
24153
|
chartId,
|
|
24112
24154
|
dataTableHeight,
|
|
24113
24155
|
margin,
|
|
24114
|
-
staticLegendShape.rectangle
|
|
24156
|
+
staticLegendShape.rectangle,
|
|
24157
|
+
chartType,
|
|
24158
|
+
addLocalFilterFromLib
|
|
24115
24159
|
);
|
|
24116
24160
|
horizontalScrollBar(
|
|
24117
24161
|
seriesData,
|
|
@@ -24459,7 +24503,8 @@ const StackHorizontalChart = ({
|
|
|
24459
24503
|
formatOptions,
|
|
24460
24504
|
data,
|
|
24461
24505
|
isReportEditable,
|
|
24462
|
-
onDataLabelCoordinatesChange
|
|
24506
|
+
onDataLabelCoordinatesChange,
|
|
24507
|
+
addLocalFilterFromLib
|
|
24463
24508
|
}) => {
|
|
24464
24509
|
const chartId = crypto.randomUUID();
|
|
24465
24510
|
let columnWidth = 0;
|
|
@@ -24633,7 +24678,9 @@ const StackHorizontalChart = ({
|
|
|
24633
24678
|
chartId,
|
|
24634
24679
|
0,
|
|
24635
24680
|
margin,
|
|
24636
|
-
staticLegendShape.rectangle
|
|
24681
|
+
staticLegendShape.rectangle,
|
|
24682
|
+
chartType,
|
|
24683
|
+
addLocalFilterFromLib
|
|
24637
24684
|
);
|
|
24638
24685
|
horizontalScrollBar(
|
|
24639
24686
|
seriesData,
|
|
@@ -25181,7 +25228,8 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
25181
25228
|
formatOptions,
|
|
25182
25229
|
data,
|
|
25183
25230
|
isReportEditable,
|
|
25184
|
-
onDataLabelCoordinatesChange
|
|
25231
|
+
onDataLabelCoordinatesChange,
|
|
25232
|
+
addLocalFilterFromLib
|
|
25185
25233
|
}) => {
|
|
25186
25234
|
const chartId = crypto.randomUUID();
|
|
25187
25235
|
let columnWidth = 0;
|
|
@@ -25354,7 +25402,9 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
25354
25402
|
chartId,
|
|
25355
25403
|
0,
|
|
25356
25404
|
margin,
|
|
25357
|
-
staticLegendShape.rectangle
|
|
25405
|
+
staticLegendShape.rectangle,
|
|
25406
|
+
chartType,
|
|
25407
|
+
addLocalFilterFromLib
|
|
25358
25408
|
);
|
|
25359
25409
|
horizontalScrollBar(
|
|
25360
25410
|
seriesData,
|
|
@@ -25659,7 +25709,8 @@ const LayeredHorizontalBarChart = ({
|
|
|
25659
25709
|
formatOptions,
|
|
25660
25710
|
data,
|
|
25661
25711
|
isReportEditable,
|
|
25662
|
-
onDataLabelCoordinatesChange
|
|
25712
|
+
onDataLabelCoordinatesChange,
|
|
25713
|
+
addLocalFilterFromLib
|
|
25663
25714
|
}) => {
|
|
25664
25715
|
const chartId = crypto.randomUUID();
|
|
25665
25716
|
let columnWidth = 0;
|
|
@@ -25831,7 +25882,9 @@ const LayeredHorizontalBarChart = ({
|
|
|
25831
25882
|
chartId,
|
|
25832
25883
|
0,
|
|
25833
25884
|
margin,
|
|
25834
|
-
staticLegendShape.rectangle
|
|
25885
|
+
staticLegendShape.rectangle,
|
|
25886
|
+
chartType,
|
|
25887
|
+
addLocalFilterFromLib
|
|
25835
25888
|
);
|
|
25836
25889
|
horizontalScrollBar(
|
|
25837
25890
|
seriesData,
|
|
@@ -26873,7 +26926,8 @@ const AreaChart = ({
|
|
|
26873
26926
|
formatOptions,
|
|
26874
26927
|
data,
|
|
26875
26928
|
isReportEditable,
|
|
26876
|
-
onDataLabelCoordinatesChange
|
|
26929
|
+
onDataLabelCoordinatesChange,
|
|
26930
|
+
addLocalFilterFromLib
|
|
26877
26931
|
}) => {
|
|
26878
26932
|
const chartId = crypto.randomUUID();
|
|
26879
26933
|
const barWidth = 0;
|
|
@@ -27089,7 +27143,9 @@ const AreaChart = ({
|
|
|
27089
27143
|
chartId,
|
|
27090
27144
|
dataTableHeight,
|
|
27091
27145
|
margin,
|
|
27092
|
-
staticLegendShape.areaWithLine
|
|
27146
|
+
staticLegendShape.areaWithLine,
|
|
27147
|
+
chartType,
|
|
27148
|
+
addLocalFilterFromLib
|
|
27093
27149
|
);
|
|
27094
27150
|
horizontalScrollBar(
|
|
27095
27151
|
seriesData,
|
|
@@ -27463,7 +27519,8 @@ const StackAreaChart = ({
|
|
|
27463
27519
|
formatOptions,
|
|
27464
27520
|
data,
|
|
27465
27521
|
isReportEditable,
|
|
27466
|
-
onDataLabelCoordinatesChange
|
|
27522
|
+
onDataLabelCoordinatesChange,
|
|
27523
|
+
addLocalFilterFromLib
|
|
27467
27524
|
}) => {
|
|
27468
27525
|
const chartId = crypto.randomUUID();
|
|
27469
27526
|
const barWidth = 0;
|
|
@@ -27666,7 +27723,9 @@ const StackAreaChart = ({
|
|
|
27666
27723
|
chartId,
|
|
27667
27724
|
dataTableHeight,
|
|
27668
27725
|
margin,
|
|
27669
|
-
staticLegendShape.areaWithLine
|
|
27726
|
+
staticLegendShape.areaWithLine,
|
|
27727
|
+
chartType,
|
|
27728
|
+
addLocalFilterFromLib
|
|
27670
27729
|
);
|
|
27671
27730
|
horizontalScrollBar(
|
|
27672
27731
|
seriesData,
|
|
@@ -28063,7 +28122,8 @@ const NormalizedStackAreaChart = ({
|
|
|
28063
28122
|
formatOptions,
|
|
28064
28123
|
data,
|
|
28065
28124
|
isReportEditable,
|
|
28066
|
-
onDataLabelCoordinatesChange
|
|
28125
|
+
onDataLabelCoordinatesChange,
|
|
28126
|
+
addLocalFilterFromLib
|
|
28067
28127
|
}) => {
|
|
28068
28128
|
const chartId = crypto.randomUUID();
|
|
28069
28129
|
const barWidth = 0;
|
|
@@ -28256,7 +28316,9 @@ const NormalizedStackAreaChart = ({
|
|
|
28256
28316
|
chartId,
|
|
28257
28317
|
dataTableHeight,
|
|
28258
28318
|
margin,
|
|
28259
|
-
staticLegendShape.areaWithLine
|
|
28319
|
+
staticLegendShape.areaWithLine,
|
|
28320
|
+
chartType,
|
|
28321
|
+
addLocalFilterFromLib
|
|
28260
28322
|
);
|
|
28261
28323
|
horizontalScrollBar(
|
|
28262
28324
|
seriesData,
|
|
@@ -28720,7 +28782,7 @@ const drawTotalValue = (chartFormatOptions, totalValue, chartTitleHeight, chartA
|
|
|
28720
28782
|
}
|
|
28721
28783
|
};
|
|
28722
28784
|
const fileName$8 = "PieChart.tsx";
|
|
28723
|
-
const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelCoordinatesChange }) => {
|
|
28785
|
+
const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelCoordinatesChange, addLocalFilterFromLib }) => {
|
|
28724
28786
|
const svgRef = useRef();
|
|
28725
28787
|
const seriesData = generalizedChartData(data.ChartData);
|
|
28726
28788
|
let chartFormatOptions;
|
|
@@ -28772,7 +28834,9 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
|
|
|
28772
28834
|
chartTitleHeight,
|
|
28773
28835
|
chartId,
|
|
28774
28836
|
margins,
|
|
28775
|
-
staticLegendShape.circle
|
|
28837
|
+
staticLegendShape.circle,
|
|
28838
|
+
void 0,
|
|
28839
|
+
addLocalFilterFromLib
|
|
28776
28840
|
);
|
|
28777
28841
|
initPieChartData();
|
|
28778
28842
|
drawPieChart();
|
|
@@ -29150,7 +29214,8 @@ const DonutChart = ({
|
|
|
29150
29214
|
formatOptions,
|
|
29151
29215
|
chartId,
|
|
29152
29216
|
isReportEditable,
|
|
29153
|
-
onDataLabelCoordinatesChange
|
|
29217
|
+
onDataLabelCoordinatesChange,
|
|
29218
|
+
addLocalFilterFromLib
|
|
29154
29219
|
}) => {
|
|
29155
29220
|
const svgRef = useRef();
|
|
29156
29221
|
const seriesData = generalizedChartData(data.ChartData);
|
|
@@ -29205,7 +29270,8 @@ const DonutChart = ({
|
|
|
29205
29270
|
chartId,
|
|
29206
29271
|
margins,
|
|
29207
29272
|
staticLegendShape.hollowCircle,
|
|
29208
|
-
false
|
|
29273
|
+
false,
|
|
29274
|
+
addLocalFilterFromLib
|
|
29209
29275
|
);
|
|
29210
29276
|
initPieChartData();
|
|
29211
29277
|
drawDonutChart();
|
|
@@ -30316,7 +30382,8 @@ const PyramidChart = ({
|
|
|
30316
30382
|
data,
|
|
30317
30383
|
formatOptions,
|
|
30318
30384
|
chartId,
|
|
30319
|
-
onDataLabelCoordinatesChange
|
|
30385
|
+
onDataLabelCoordinatesChange,
|
|
30386
|
+
addLocalFilterFromLib
|
|
30320
30387
|
}) => {
|
|
30321
30388
|
const svgRef = useRef();
|
|
30322
30389
|
let seriesData = generalizedChartData(data.ChartData);
|
|
@@ -30370,7 +30437,8 @@ const PyramidChart = ({
|
|
|
30370
30437
|
chartId,
|
|
30371
30438
|
margins,
|
|
30372
30439
|
staticLegendShape.rectangle,
|
|
30373
|
-
false
|
|
30440
|
+
false,
|
|
30441
|
+
addLocalFilterFromLib
|
|
30374
30442
|
);
|
|
30375
30443
|
initPyramidData();
|
|
30376
30444
|
drawPyramidChart();
|
|
@@ -30704,7 +30772,8 @@ const fileName$3 = "ProgressChart.tsx";
|
|
|
30704
30772
|
const ProgressChart = ({
|
|
30705
30773
|
data: { ChartData },
|
|
30706
30774
|
formatOptions,
|
|
30707
|
-
chartId
|
|
30775
|
+
chartId,
|
|
30776
|
+
addLocalFilterFromLib
|
|
30708
30777
|
}) => {
|
|
30709
30778
|
const svgRef = useRef();
|
|
30710
30779
|
let seriesData = generalizedChartData(ChartData);
|
|
@@ -30757,7 +30826,9 @@ const ProgressChart = ({
|
|
|
30757
30826
|
chartTitleHeight,
|
|
30758
30827
|
chartId,
|
|
30759
30828
|
margins,
|
|
30760
|
-
staticLegendShape.hollowCircle
|
|
30829
|
+
staticLegendShape.hollowCircle,
|
|
30830
|
+
true,
|
|
30831
|
+
addLocalFilterFromLib
|
|
30761
30832
|
);
|
|
30762
30833
|
initProgressChartData();
|
|
30763
30834
|
drawProgressChart();
|
|
@@ -31484,7 +31555,8 @@ function logError(fileName2, functionName, error) {
|
|
|
31484
31555
|
const RadialBarChart = ({
|
|
31485
31556
|
data: { ChartData },
|
|
31486
31557
|
formatOptions,
|
|
31487
|
-
chartId
|
|
31558
|
+
chartId,
|
|
31559
|
+
addLocalFilterFromLib
|
|
31488
31560
|
}) => {
|
|
31489
31561
|
const svgRef = useRef();
|
|
31490
31562
|
const seriesData = generalizedChartData(ChartData);
|
|
@@ -31533,7 +31605,9 @@ const RadialBarChart = ({
|
|
|
31533
31605
|
chartTitleHeight,
|
|
31534
31606
|
chartId,
|
|
31535
31607
|
margins,
|
|
31536
|
-
staticLegendShape.hollowCircle
|
|
31608
|
+
staticLegendShape.hollowCircle,
|
|
31609
|
+
false,
|
|
31610
|
+
addLocalFilterFromLib
|
|
31537
31611
|
);
|
|
31538
31612
|
initRadialBarChart();
|
|
31539
31613
|
};
|
|
@@ -54683,7 +54757,8 @@ const OrganizationChart = ({
|
|
|
54683
54757
|
const BubbleChart = ({
|
|
54684
54758
|
data,
|
|
54685
54759
|
formatOptions,
|
|
54686
|
-
chartId
|
|
54760
|
+
chartId,
|
|
54761
|
+
addLocalFilterFromLib
|
|
54687
54762
|
}) => {
|
|
54688
54763
|
let legendEntries = data.LegendList;
|
|
54689
54764
|
const svgRef = useRef();
|
|
@@ -55097,7 +55172,9 @@ const BubbleChart = ({
|
|
|
55097
55172
|
chartTitleHeight,
|
|
55098
55173
|
chartId,
|
|
55099
55174
|
margins,
|
|
55100
|
-
staticLegendShape.circle
|
|
55175
|
+
staticLegendShape.circle,
|
|
55176
|
+
false,
|
|
55177
|
+
addLocalFilterFromLib
|
|
55101
55178
|
);
|
|
55102
55179
|
} catch (e) {
|
|
55103
55180
|
logError$2("BubbleChart", "initLegendList", e);
|
|
@@ -57118,7 +57195,8 @@ const DotPlot = ({
|
|
|
57118
57195
|
formatOptions,
|
|
57119
57196
|
data,
|
|
57120
57197
|
isReportEditable,
|
|
57121
|
-
onDataLabelCoordinatesChange
|
|
57198
|
+
onDataLabelCoordinatesChange,
|
|
57199
|
+
addLocalFilterFromLib
|
|
57122
57200
|
}) => {
|
|
57123
57201
|
const chartId = crypto.randomUUID();
|
|
57124
57202
|
let columnWidth = 0;
|
|
@@ -57289,7 +57367,9 @@ const DotPlot = ({
|
|
|
57289
57367
|
chartId,
|
|
57290
57368
|
0,
|
|
57291
57369
|
margin,
|
|
57292
|
-
staticLegendShape.rectangle
|
|
57370
|
+
staticLegendShape.rectangle,
|
|
57371
|
+
chartType,
|
|
57372
|
+
addLocalFilterFromLib
|
|
57293
57373
|
);
|
|
57294
57374
|
horizontalScrollBar(
|
|
57295
57375
|
seriesData,
|
|
@@ -16198,7 +16198,7 @@
|
|
|
16198
16198
|
chartTypes.Speedometer,
|
|
16199
16199
|
chartTypes.RadialBarChart
|
|
16200
16200
|
];
|
|
16201
|
-
function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width, legendMargin, formatOptions, seriesData, chartId, dataTableHeight, margin, legendShape, chartType) {
|
|
16201
|
+
function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width, legendMargin, formatOptions, seriesData, chartId, dataTableHeight, margin, legendShape, chartType, addLocalFilterFromLib) {
|
|
16202
16202
|
try {
|
|
16203
16203
|
let position = formatOptions.legends.legendPosition;
|
|
16204
16204
|
let horizontalLegendAlignment = formatOptions.legends.legendAlignmentTopBottom;
|
|
@@ -16220,7 +16220,9 @@
|
|
|
16220
16220
|
verticalLegendAlignment,
|
|
16221
16221
|
legendShape,
|
|
16222
16222
|
formatOptions,
|
|
16223
|
-
chartId
|
|
16223
|
+
chartId,
|
|
16224
|
+
false,
|
|
16225
|
+
addLocalFilterFromLib
|
|
16224
16226
|
);
|
|
16225
16227
|
break;
|
|
16226
16228
|
case staticLegendPosition.top:
|
|
@@ -16235,7 +16237,9 @@
|
|
|
16235
16237
|
horizontalLegendAlignment,
|
|
16236
16238
|
legendShape,
|
|
16237
16239
|
formatOptions,
|
|
16238
|
-
chartId
|
|
16240
|
+
chartId,
|
|
16241
|
+
false,
|
|
16242
|
+
addLocalFilterFromLib
|
|
16239
16243
|
);
|
|
16240
16244
|
break;
|
|
16241
16245
|
case staticLegendPosition.left:
|
|
@@ -16252,7 +16256,9 @@
|
|
|
16252
16256
|
verticalLegendAlignment,
|
|
16253
16257
|
legendShape,
|
|
16254
16258
|
formatOptions,
|
|
16255
|
-
chartId
|
|
16259
|
+
chartId,
|
|
16260
|
+
false,
|
|
16261
|
+
addLocalFilterFromLib
|
|
16256
16262
|
);
|
|
16257
16263
|
break;
|
|
16258
16264
|
case staticLegendPosition.bottom:
|
|
@@ -16267,7 +16273,9 @@
|
|
|
16267
16273
|
horizontalLegendAlignment,
|
|
16268
16274
|
legendShape,
|
|
16269
16275
|
formatOptions,
|
|
16270
|
-
chartId
|
|
16276
|
+
chartId,
|
|
16277
|
+
false,
|
|
16278
|
+
addLocalFilterFromLib
|
|
16271
16279
|
);
|
|
16272
16280
|
break;
|
|
16273
16281
|
}
|
|
@@ -16792,7 +16800,7 @@
|
|
|
16792
16800
|
logError$2(fileName$b, "findStringWithLongestLength", error);
|
|
16793
16801
|
}
|
|
16794
16802
|
};
|
|
16795
|
-
const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPosition, alignment, legendShape, chartFormatOptions, chartId, isVennChart = false) => {
|
|
16803
|
+
const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPosition, alignment, legendShape, chartFormatOptions, chartId, isVennChart = false, addLocalFilterFromLib) => {
|
|
16796
16804
|
try {
|
|
16797
16805
|
if (chartFormatOptions.legends.legendVisibility) {
|
|
16798
16806
|
let justifyContent = "";
|
|
@@ -16815,7 +16823,9 @@
|
|
|
16815
16823
|
if (legendPosition == staticLegendPosition.top || legendPosition == staticLegendPosition.bottom)
|
|
16816
16824
|
div.style("flex-direction", "row");
|
|
16817
16825
|
seriesData.forEach((d, i) => {
|
|
16818
|
-
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("width", "fit-content").style("margin", "3px 0px").style("flex-wrap", "nowrap").style("white-space", "nowrap").on("
|
|
16826
|
+
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("width", "fit-content").style("margin", "3px 0px").style("flex-wrap", "nowrap").style("white-space", "nowrap").on("dblclick", function() {
|
|
16827
|
+
addLocalFilterFromLib(d?.properties);
|
|
16828
|
+
}).on("mousemove", function() {
|
|
16819
16829
|
if (chartFormatOptions.legends.onHoverEffect) {
|
|
16820
16830
|
const hoverId = this.textContent.replace(/\s+/g, "-");
|
|
16821
16831
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
@@ -17083,7 +17093,7 @@
|
|
|
17083
17093
|
logError$2(fileName$b, "marginCalculationsForChartsWithoutAxis", error);
|
|
17084
17094
|
}
|
|
17085
17095
|
};
|
|
17086
|
-
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true) => {
|
|
17096
|
+
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true, addLocalFilterFromLib) => {
|
|
17087
17097
|
try {
|
|
17088
17098
|
let position = chartFormatOptions.legends.legendPosition;
|
|
17089
17099
|
let totalPosition = chartFormatOptions.total.totalPosition;
|
|
@@ -17106,7 +17116,9 @@
|
|
|
17106
17116
|
verticalLegendAlignment,
|
|
17107
17117
|
staticLegendShape2,
|
|
17108
17118
|
chartFormatOptions,
|
|
17109
|
-
chartId
|
|
17119
|
+
chartId,
|
|
17120
|
+
false,
|
|
17121
|
+
addLocalFilterFromLib
|
|
17110
17122
|
);
|
|
17111
17123
|
break;
|
|
17112
17124
|
case staticLegendPosition.top:
|
|
@@ -17121,7 +17133,9 @@
|
|
|
17121
17133
|
horizontalLegendAlignment,
|
|
17122
17134
|
staticLegendShape2,
|
|
17123
17135
|
chartFormatOptions,
|
|
17124
|
-
chartId
|
|
17136
|
+
chartId,
|
|
17137
|
+
false,
|
|
17138
|
+
addLocalFilterFromLib
|
|
17125
17139
|
);
|
|
17126
17140
|
break;
|
|
17127
17141
|
case staticLegendPosition.left:
|
|
@@ -17136,7 +17150,9 @@
|
|
|
17136
17150
|
verticalLegendAlignment,
|
|
17137
17151
|
staticLegendShape2,
|
|
17138
17152
|
chartFormatOptions,
|
|
17139
|
-
chartId
|
|
17153
|
+
chartId,
|
|
17154
|
+
false,
|
|
17155
|
+
addLocalFilterFromLib
|
|
17140
17156
|
);
|
|
17141
17157
|
break;
|
|
17142
17158
|
case staticLegendPosition.bottom:
|
|
@@ -17151,7 +17167,9 @@
|
|
|
17151
17167
|
horizontalLegendAlignment,
|
|
17152
17168
|
staticLegendShape2,
|
|
17153
17169
|
chartFormatOptions,
|
|
17154
|
-
chartId
|
|
17170
|
+
chartId,
|
|
17171
|
+
false,
|
|
17172
|
+
addLocalFilterFromLib
|
|
17155
17173
|
);
|
|
17156
17174
|
break;
|
|
17157
17175
|
}
|
|
@@ -17385,7 +17403,8 @@
|
|
|
17385
17403
|
formatOptions,
|
|
17386
17404
|
data,
|
|
17387
17405
|
isReportEditable,
|
|
17388
|
-
onDataLabelCoordinatesChange
|
|
17406
|
+
onDataLabelCoordinatesChange,
|
|
17407
|
+
addLocalFilterFromLib
|
|
17389
17408
|
}) => {
|
|
17390
17409
|
const chartId = crypto.randomUUID();
|
|
17391
17410
|
let columnWidth = 0;
|
|
@@ -17601,7 +17620,9 @@
|
|
|
17601
17620
|
chartId,
|
|
17602
17621
|
dataTableHeight,
|
|
17603
17622
|
margin,
|
|
17604
|
-
staticLegendShape.rectangle
|
|
17623
|
+
staticLegendShape.rectangle,
|
|
17624
|
+
chartType,
|
|
17625
|
+
addLocalFilterFromLib
|
|
17605
17626
|
);
|
|
17606
17627
|
horizontalScrollBar(
|
|
17607
17628
|
seriesData,
|
|
@@ -17957,7 +17978,8 @@
|
|
|
17957
17978
|
formatOptions,
|
|
17958
17979
|
data,
|
|
17959
17980
|
isReportEditable,
|
|
17960
|
-
onDataLabelCoordinatesChange
|
|
17981
|
+
onDataLabelCoordinatesChange,
|
|
17982
|
+
addLocalFilterFromLib
|
|
17961
17983
|
}) => {
|
|
17962
17984
|
const chartId = crypto.randomUUID();
|
|
17963
17985
|
let columnWidth = 0;
|
|
@@ -18185,8 +18207,9 @@
|
|
|
18185
18207
|
chartId,
|
|
18186
18208
|
dataTableHeight,
|
|
18187
18209
|
margin,
|
|
18188
|
-
null
|
|
18189
|
-
|
|
18210
|
+
null,
|
|
18211
|
+
chartType,
|
|
18212
|
+
addLocalFilterFromLib
|
|
18190
18213
|
);
|
|
18191
18214
|
horizontalScrollBar(
|
|
18192
18215
|
seriesData,
|
|
@@ -19100,7 +19123,8 @@
|
|
|
19100
19123
|
formatOptions,
|
|
19101
19124
|
data,
|
|
19102
19125
|
isReportEditable,
|
|
19103
|
-
onDataLabelCoordinatesChange
|
|
19126
|
+
onDataLabelCoordinatesChange,
|
|
19127
|
+
addLocalFilterFromLib
|
|
19104
19128
|
}) => {
|
|
19105
19129
|
const chartId = crypto.randomUUID();
|
|
19106
19130
|
let columnWidth = 0;
|
|
@@ -19303,7 +19327,9 @@
|
|
|
19303
19327
|
chartId,
|
|
19304
19328
|
dataTableHeight,
|
|
19305
19329
|
margin,
|
|
19306
|
-
staticLegendShape.rectangle
|
|
19330
|
+
staticLegendShape.rectangle,
|
|
19331
|
+
chartType,
|
|
19332
|
+
addLocalFilterFromLib
|
|
19307
19333
|
);
|
|
19308
19334
|
horizontalScrollBar(
|
|
19309
19335
|
seriesData,
|
|
@@ -19654,7 +19680,8 @@
|
|
|
19654
19680
|
formatOptions,
|
|
19655
19681
|
data,
|
|
19656
19682
|
isReportEditable,
|
|
19657
|
-
onDataLabelCoordinatesChange
|
|
19683
|
+
onDataLabelCoordinatesChange,
|
|
19684
|
+
addLocalFilterFromLib
|
|
19658
19685
|
}) => {
|
|
19659
19686
|
const chartId = crypto.randomUUID();
|
|
19660
19687
|
let columnWidth = 0;
|
|
@@ -19856,7 +19883,9 @@
|
|
|
19856
19883
|
chartId,
|
|
19857
19884
|
dataTableHeight,
|
|
19858
19885
|
margin,
|
|
19859
|
-
staticLegendShape.rectangle
|
|
19886
|
+
staticLegendShape.rectangle,
|
|
19887
|
+
chartType,
|
|
19888
|
+
addLocalFilterFromLib
|
|
19860
19889
|
);
|
|
19861
19890
|
horizontalScrollBar(
|
|
19862
19891
|
seriesData,
|
|
@@ -20390,7 +20419,8 @@
|
|
|
20390
20419
|
formatOptions,
|
|
20391
20420
|
data,
|
|
20392
20421
|
isReportEditable,
|
|
20393
|
-
onDataLabelCoordinatesChange
|
|
20422
|
+
onDataLabelCoordinatesChange,
|
|
20423
|
+
addLocalFilterFromLib
|
|
20394
20424
|
}) => {
|
|
20395
20425
|
const chartId = crypto.randomUUID();
|
|
20396
20426
|
let columnWidth = 0;
|
|
@@ -20591,7 +20621,9 @@
|
|
|
20591
20621
|
chartId,
|
|
20592
20622
|
dataTableHeight,
|
|
20593
20623
|
margin,
|
|
20594
|
-
staticLegendShape.rectangle
|
|
20624
|
+
staticLegendShape.rectangle,
|
|
20625
|
+
chartType,
|
|
20626
|
+
addLocalFilterFromLib
|
|
20595
20627
|
);
|
|
20596
20628
|
horizontalScrollBar(
|
|
20597
20629
|
seriesData,
|
|
@@ -22226,7 +22258,8 @@
|
|
|
22226
22258
|
formatOptions,
|
|
22227
22259
|
data,
|
|
22228
22260
|
isReportEditable,
|
|
22229
|
-
onDataLabelCoordinatesChange
|
|
22261
|
+
onDataLabelCoordinatesChange,
|
|
22262
|
+
addLocalFilterFromLib
|
|
22230
22263
|
}) => {
|
|
22231
22264
|
const chartId = crypto.randomUUID();
|
|
22232
22265
|
const barWidth = 0;
|
|
@@ -22444,7 +22477,9 @@
|
|
|
22444
22477
|
chartId,
|
|
22445
22478
|
dataTableHeight,
|
|
22446
22479
|
margin,
|
|
22447
|
-
staticLegendShape.line
|
|
22480
|
+
staticLegendShape.line,
|
|
22481
|
+
chartType,
|
|
22482
|
+
addLocalFilterFromLib
|
|
22448
22483
|
);
|
|
22449
22484
|
horizontalScrollBar(
|
|
22450
22485
|
seriesData,
|
|
@@ -22799,7 +22834,8 @@
|
|
|
22799
22834
|
formatOptions,
|
|
22800
22835
|
data,
|
|
22801
22836
|
isReportEditable,
|
|
22802
|
-
onDataLabelCoordinatesChange
|
|
22837
|
+
onDataLabelCoordinatesChange,
|
|
22838
|
+
addLocalFilterFromLib
|
|
22803
22839
|
}) => {
|
|
22804
22840
|
const chartId = crypto.randomUUID();
|
|
22805
22841
|
const barWidth = 0;
|
|
@@ -23002,7 +23038,9 @@
|
|
|
23002
23038
|
chartId,
|
|
23003
23039
|
dataTableHeight,
|
|
23004
23040
|
margin,
|
|
23005
|
-
staticLegendShape.line
|
|
23041
|
+
staticLegendShape.line,
|
|
23042
|
+
chartType,
|
|
23043
|
+
addLocalFilterFromLib
|
|
23006
23044
|
);
|
|
23007
23045
|
horizontalScrollBar(
|
|
23008
23046
|
seriesData,
|
|
@@ -23384,7 +23422,8 @@
|
|
|
23384
23422
|
formatOptions,
|
|
23385
23423
|
data,
|
|
23386
23424
|
isReportEditable,
|
|
23387
|
-
onDataLabelCoordinatesChange
|
|
23425
|
+
onDataLabelCoordinatesChange,
|
|
23426
|
+
addLocalFilterFromLib
|
|
23388
23427
|
}) => {
|
|
23389
23428
|
const chartId = crypto.randomUUID();
|
|
23390
23429
|
const barWidth = 0;
|
|
@@ -23578,7 +23617,9 @@
|
|
|
23578
23617
|
chartId,
|
|
23579
23618
|
dataTableHeight,
|
|
23580
23619
|
margin,
|
|
23581
|
-
staticLegendShape.line
|
|
23620
|
+
staticLegendShape.line,
|
|
23621
|
+
chartType,
|
|
23622
|
+
addLocalFilterFromLib
|
|
23582
23623
|
);
|
|
23583
23624
|
horizontalScrollBar(
|
|
23584
23625
|
seriesData,
|
|
@@ -23912,7 +23953,8 @@
|
|
|
23912
23953
|
formatOptions,
|
|
23913
23954
|
data,
|
|
23914
23955
|
isReportEditable,
|
|
23915
|
-
onDataLabelCoordinatesChange
|
|
23956
|
+
onDataLabelCoordinatesChange,
|
|
23957
|
+
addLocalFilterFromLib
|
|
23916
23958
|
}) => {
|
|
23917
23959
|
const chartId = crypto.randomUUID();
|
|
23918
23960
|
let columnWidth = 0;
|
|
@@ -24114,7 +24156,9 @@
|
|
|
24114
24156
|
chartId,
|
|
24115
24157
|
dataTableHeight,
|
|
24116
24158
|
margin,
|
|
24117
|
-
staticLegendShape.rectangle
|
|
24159
|
+
staticLegendShape.rectangle,
|
|
24160
|
+
chartType,
|
|
24161
|
+
addLocalFilterFromLib
|
|
24118
24162
|
);
|
|
24119
24163
|
horizontalScrollBar(
|
|
24120
24164
|
seriesData,
|
|
@@ -24462,7 +24506,8 @@
|
|
|
24462
24506
|
formatOptions,
|
|
24463
24507
|
data,
|
|
24464
24508
|
isReportEditable,
|
|
24465
|
-
onDataLabelCoordinatesChange
|
|
24509
|
+
onDataLabelCoordinatesChange,
|
|
24510
|
+
addLocalFilterFromLib
|
|
24466
24511
|
}) => {
|
|
24467
24512
|
const chartId = crypto.randomUUID();
|
|
24468
24513
|
let columnWidth = 0;
|
|
@@ -24636,7 +24681,9 @@
|
|
|
24636
24681
|
chartId,
|
|
24637
24682
|
0,
|
|
24638
24683
|
margin,
|
|
24639
|
-
staticLegendShape.rectangle
|
|
24684
|
+
staticLegendShape.rectangle,
|
|
24685
|
+
chartType,
|
|
24686
|
+
addLocalFilterFromLib
|
|
24640
24687
|
);
|
|
24641
24688
|
horizontalScrollBar(
|
|
24642
24689
|
seriesData,
|
|
@@ -25184,7 +25231,8 @@
|
|
|
25184
25231
|
formatOptions,
|
|
25185
25232
|
data,
|
|
25186
25233
|
isReportEditable,
|
|
25187
|
-
onDataLabelCoordinatesChange
|
|
25234
|
+
onDataLabelCoordinatesChange,
|
|
25235
|
+
addLocalFilterFromLib
|
|
25188
25236
|
}) => {
|
|
25189
25237
|
const chartId = crypto.randomUUID();
|
|
25190
25238
|
let columnWidth = 0;
|
|
@@ -25357,7 +25405,9 @@
|
|
|
25357
25405
|
chartId,
|
|
25358
25406
|
0,
|
|
25359
25407
|
margin,
|
|
25360
|
-
staticLegendShape.rectangle
|
|
25408
|
+
staticLegendShape.rectangle,
|
|
25409
|
+
chartType,
|
|
25410
|
+
addLocalFilterFromLib
|
|
25361
25411
|
);
|
|
25362
25412
|
horizontalScrollBar(
|
|
25363
25413
|
seriesData,
|
|
@@ -25662,7 +25712,8 @@
|
|
|
25662
25712
|
formatOptions,
|
|
25663
25713
|
data,
|
|
25664
25714
|
isReportEditable,
|
|
25665
|
-
onDataLabelCoordinatesChange
|
|
25715
|
+
onDataLabelCoordinatesChange,
|
|
25716
|
+
addLocalFilterFromLib
|
|
25666
25717
|
}) => {
|
|
25667
25718
|
const chartId = crypto.randomUUID();
|
|
25668
25719
|
let columnWidth = 0;
|
|
@@ -25834,7 +25885,9 @@
|
|
|
25834
25885
|
chartId,
|
|
25835
25886
|
0,
|
|
25836
25887
|
margin,
|
|
25837
|
-
staticLegendShape.rectangle
|
|
25888
|
+
staticLegendShape.rectangle,
|
|
25889
|
+
chartType,
|
|
25890
|
+
addLocalFilterFromLib
|
|
25838
25891
|
);
|
|
25839
25892
|
horizontalScrollBar(
|
|
25840
25893
|
seriesData,
|
|
@@ -26876,7 +26929,8 @@
|
|
|
26876
26929
|
formatOptions,
|
|
26877
26930
|
data,
|
|
26878
26931
|
isReportEditable,
|
|
26879
|
-
onDataLabelCoordinatesChange
|
|
26932
|
+
onDataLabelCoordinatesChange,
|
|
26933
|
+
addLocalFilterFromLib
|
|
26880
26934
|
}) => {
|
|
26881
26935
|
const chartId = crypto.randomUUID();
|
|
26882
26936
|
const barWidth = 0;
|
|
@@ -27092,7 +27146,9 @@
|
|
|
27092
27146
|
chartId,
|
|
27093
27147
|
dataTableHeight,
|
|
27094
27148
|
margin,
|
|
27095
|
-
staticLegendShape.areaWithLine
|
|
27149
|
+
staticLegendShape.areaWithLine,
|
|
27150
|
+
chartType,
|
|
27151
|
+
addLocalFilterFromLib
|
|
27096
27152
|
);
|
|
27097
27153
|
horizontalScrollBar(
|
|
27098
27154
|
seriesData,
|
|
@@ -27466,7 +27522,8 @@
|
|
|
27466
27522
|
formatOptions,
|
|
27467
27523
|
data,
|
|
27468
27524
|
isReportEditable,
|
|
27469
|
-
onDataLabelCoordinatesChange
|
|
27525
|
+
onDataLabelCoordinatesChange,
|
|
27526
|
+
addLocalFilterFromLib
|
|
27470
27527
|
}) => {
|
|
27471
27528
|
const chartId = crypto.randomUUID();
|
|
27472
27529
|
const barWidth = 0;
|
|
@@ -27669,7 +27726,9 @@
|
|
|
27669
27726
|
chartId,
|
|
27670
27727
|
dataTableHeight,
|
|
27671
27728
|
margin,
|
|
27672
|
-
staticLegendShape.areaWithLine
|
|
27729
|
+
staticLegendShape.areaWithLine,
|
|
27730
|
+
chartType,
|
|
27731
|
+
addLocalFilterFromLib
|
|
27673
27732
|
);
|
|
27674
27733
|
horizontalScrollBar(
|
|
27675
27734
|
seriesData,
|
|
@@ -28066,7 +28125,8 @@
|
|
|
28066
28125
|
formatOptions,
|
|
28067
28126
|
data,
|
|
28068
28127
|
isReportEditable,
|
|
28069
|
-
onDataLabelCoordinatesChange
|
|
28128
|
+
onDataLabelCoordinatesChange,
|
|
28129
|
+
addLocalFilterFromLib
|
|
28070
28130
|
}) => {
|
|
28071
28131
|
const chartId = crypto.randomUUID();
|
|
28072
28132
|
const barWidth = 0;
|
|
@@ -28259,7 +28319,9 @@
|
|
|
28259
28319
|
chartId,
|
|
28260
28320
|
dataTableHeight,
|
|
28261
28321
|
margin,
|
|
28262
|
-
staticLegendShape.areaWithLine
|
|
28322
|
+
staticLegendShape.areaWithLine,
|
|
28323
|
+
chartType,
|
|
28324
|
+
addLocalFilterFromLib
|
|
28263
28325
|
);
|
|
28264
28326
|
horizontalScrollBar(
|
|
28265
28327
|
seriesData,
|
|
@@ -28723,7 +28785,7 @@
|
|
|
28723
28785
|
}
|
|
28724
28786
|
};
|
|
28725
28787
|
const fileName$8 = "PieChart.tsx";
|
|
28726
|
-
const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelCoordinatesChange }) => {
|
|
28788
|
+
const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelCoordinatesChange, addLocalFilterFromLib }) => {
|
|
28727
28789
|
const svgRef = require$$0$1.useRef();
|
|
28728
28790
|
const seriesData = generalizedChartData(data.ChartData);
|
|
28729
28791
|
let chartFormatOptions;
|
|
@@ -28775,7 +28837,9 @@
|
|
|
28775
28837
|
chartTitleHeight,
|
|
28776
28838
|
chartId,
|
|
28777
28839
|
margins,
|
|
28778
|
-
staticLegendShape.circle
|
|
28840
|
+
staticLegendShape.circle,
|
|
28841
|
+
void 0,
|
|
28842
|
+
addLocalFilterFromLib
|
|
28779
28843
|
);
|
|
28780
28844
|
initPieChartData();
|
|
28781
28845
|
drawPieChart();
|
|
@@ -29153,7 +29217,8 @@
|
|
|
29153
29217
|
formatOptions,
|
|
29154
29218
|
chartId,
|
|
29155
29219
|
isReportEditable,
|
|
29156
|
-
onDataLabelCoordinatesChange
|
|
29220
|
+
onDataLabelCoordinatesChange,
|
|
29221
|
+
addLocalFilterFromLib
|
|
29157
29222
|
}) => {
|
|
29158
29223
|
const svgRef = require$$0$1.useRef();
|
|
29159
29224
|
const seriesData = generalizedChartData(data.ChartData);
|
|
@@ -29208,7 +29273,8 @@
|
|
|
29208
29273
|
chartId,
|
|
29209
29274
|
margins,
|
|
29210
29275
|
staticLegendShape.hollowCircle,
|
|
29211
|
-
false
|
|
29276
|
+
false,
|
|
29277
|
+
addLocalFilterFromLib
|
|
29212
29278
|
);
|
|
29213
29279
|
initPieChartData();
|
|
29214
29280
|
drawDonutChart();
|
|
@@ -30319,7 +30385,8 @@
|
|
|
30319
30385
|
data,
|
|
30320
30386
|
formatOptions,
|
|
30321
30387
|
chartId,
|
|
30322
|
-
onDataLabelCoordinatesChange
|
|
30388
|
+
onDataLabelCoordinatesChange,
|
|
30389
|
+
addLocalFilterFromLib
|
|
30323
30390
|
}) => {
|
|
30324
30391
|
const svgRef = require$$0$1.useRef();
|
|
30325
30392
|
let seriesData = generalizedChartData(data.ChartData);
|
|
@@ -30373,7 +30440,8 @@
|
|
|
30373
30440
|
chartId,
|
|
30374
30441
|
margins,
|
|
30375
30442
|
staticLegendShape.rectangle,
|
|
30376
|
-
false
|
|
30443
|
+
false,
|
|
30444
|
+
addLocalFilterFromLib
|
|
30377
30445
|
);
|
|
30378
30446
|
initPyramidData();
|
|
30379
30447
|
drawPyramidChart();
|
|
@@ -30707,7 +30775,8 @@
|
|
|
30707
30775
|
const ProgressChart = ({
|
|
30708
30776
|
data: { ChartData },
|
|
30709
30777
|
formatOptions,
|
|
30710
|
-
chartId
|
|
30778
|
+
chartId,
|
|
30779
|
+
addLocalFilterFromLib
|
|
30711
30780
|
}) => {
|
|
30712
30781
|
const svgRef = require$$0$1.useRef();
|
|
30713
30782
|
let seriesData = generalizedChartData(ChartData);
|
|
@@ -30760,7 +30829,9 @@
|
|
|
30760
30829
|
chartTitleHeight,
|
|
30761
30830
|
chartId,
|
|
30762
30831
|
margins,
|
|
30763
|
-
staticLegendShape.hollowCircle
|
|
30832
|
+
staticLegendShape.hollowCircle,
|
|
30833
|
+
true,
|
|
30834
|
+
addLocalFilterFromLib
|
|
30764
30835
|
);
|
|
30765
30836
|
initProgressChartData();
|
|
30766
30837
|
drawProgressChart();
|
|
@@ -31487,7 +31558,8 @@
|
|
|
31487
31558
|
const RadialBarChart = ({
|
|
31488
31559
|
data: { ChartData },
|
|
31489
31560
|
formatOptions,
|
|
31490
|
-
chartId
|
|
31561
|
+
chartId,
|
|
31562
|
+
addLocalFilterFromLib
|
|
31491
31563
|
}) => {
|
|
31492
31564
|
const svgRef = require$$0$1.useRef();
|
|
31493
31565
|
const seriesData = generalizedChartData(ChartData);
|
|
@@ -31536,7 +31608,9 @@
|
|
|
31536
31608
|
chartTitleHeight,
|
|
31537
31609
|
chartId,
|
|
31538
31610
|
margins,
|
|
31539
|
-
staticLegendShape.hollowCircle
|
|
31611
|
+
staticLegendShape.hollowCircle,
|
|
31612
|
+
false,
|
|
31613
|
+
addLocalFilterFromLib
|
|
31540
31614
|
);
|
|
31541
31615
|
initRadialBarChart();
|
|
31542
31616
|
};
|
|
@@ -54686,7 +54760,8 @@
|
|
|
54686
54760
|
const BubbleChart = ({
|
|
54687
54761
|
data,
|
|
54688
54762
|
formatOptions,
|
|
54689
|
-
chartId
|
|
54763
|
+
chartId,
|
|
54764
|
+
addLocalFilterFromLib
|
|
54690
54765
|
}) => {
|
|
54691
54766
|
let legendEntries = data.LegendList;
|
|
54692
54767
|
const svgRef = require$$0$1.useRef();
|
|
@@ -55100,7 +55175,9 @@
|
|
|
55100
55175
|
chartTitleHeight,
|
|
55101
55176
|
chartId,
|
|
55102
55177
|
margins,
|
|
55103
|
-
staticLegendShape.circle
|
|
55178
|
+
staticLegendShape.circle,
|
|
55179
|
+
false,
|
|
55180
|
+
addLocalFilterFromLib
|
|
55104
55181
|
);
|
|
55105
55182
|
} catch (e) {
|
|
55106
55183
|
logError$2("BubbleChart", "initLegendList", e);
|
|
@@ -57121,7 +57198,8 @@
|
|
|
57121
57198
|
formatOptions,
|
|
57122
57199
|
data,
|
|
57123
57200
|
isReportEditable,
|
|
57124
|
-
onDataLabelCoordinatesChange
|
|
57201
|
+
onDataLabelCoordinatesChange,
|
|
57202
|
+
addLocalFilterFromLib
|
|
57125
57203
|
}) => {
|
|
57126
57204
|
const chartId = crypto.randomUUID();
|
|
57127
57205
|
let columnWidth = 0;
|
|
@@ -57292,7 +57370,9 @@
|
|
|
57292
57370
|
chartId,
|
|
57293
57371
|
0,
|
|
57294
57372
|
margin,
|
|
57295
|
-
staticLegendShape.rectangle
|
|
57373
|
+
staticLegendShape.rectangle,
|
|
57374
|
+
chartType,
|
|
57375
|
+
addLocalFilterFromLib
|
|
57296
57376
|
);
|
|
57297
57377
|
horizontalScrollBar(
|
|
57298
57378
|
seriesData,
|