pace-chart-lib 1.0.68 → 1.0.70
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/ChartJS/charts/CJSAreaChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +18 -0
- package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +23 -0
- package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +16 -0
- package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +16 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +31 -0
- package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +9 -0
- package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +27 -0
- package/dist/Components/Charts/ChartJS/index.d.ts +21 -0
- 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 +638 -0
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +172 -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/DotPlot.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 +96 -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 +410 -0
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +250 -0
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +66 -0
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +631 -0
- package/dist/Services/ErrorLog.d.ts +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/pace-chart-lib.es.js +93 -52
- package/dist/pace-chart-lib.umd.js +93 -52
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "./Components/Charts/Core/ChartStyles.scss";
|
|
2
|
+
export { default as ColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart";
|
|
3
|
+
export { default as CustomColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart";
|
|
4
|
+
export { default as LayeredColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart";
|
|
5
|
+
export { default as StackColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart";
|
|
6
|
+
export { default as NormalizedStackColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart";
|
|
7
|
+
export { default as ColumnHistogramChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart";
|
|
8
|
+
export { default as LineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/LineChart";
|
|
9
|
+
export { default as StackLineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/StackLineChart";
|
|
10
|
+
export { default as NormalizedStackLineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart";
|
|
11
|
+
export { default as HorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart";
|
|
12
|
+
export { default as StackHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart";
|
|
13
|
+
export { default as NormalizedStackHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart";
|
|
14
|
+
export { default as LayeredHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart";
|
|
15
|
+
export { default as HorizontalHistogramChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart";
|
|
16
|
+
export { default as AreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/AreaChart";
|
|
17
|
+
export { default as StackAreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart";
|
|
18
|
+
export { default as NormalizedStackAreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart";
|
|
19
|
+
export { default as PieChart } from "./Components/Charts/ChartsWithoutAxis/PieFamily/PieChart";
|
|
20
|
+
export { default as DonutChart } from "./Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart";
|
|
21
|
+
export { default as Treemap } from "./Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart";
|
|
22
|
+
export { default as PieofPie } from "./Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart";
|
|
23
|
+
export { default as PyramidChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart";
|
|
24
|
+
export { default as ProgressChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart";
|
|
25
|
+
export { default as Speedometer } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer";
|
|
26
|
+
export { default as RadialBarChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart";
|
|
27
|
+
export { default as WordCloud } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud";
|
|
28
|
+
export { default as VennChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart";
|
|
29
|
+
export { default as SankeyChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart";
|
|
30
|
+
export { default as Maps } from "./Components/Charts/ChartsWithoutAxis/Maps/Maps";
|
|
31
|
+
export { default as OrganizationChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart";
|
|
32
|
+
export { default as BubbleChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart";
|
|
33
|
+
export { default as ScatterChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart";
|
|
34
|
+
export { default as WaterfallChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart";
|
|
35
|
+
export { default as TornadoChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart";
|
|
36
|
+
export { default as DotPlot } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot";
|
|
37
|
+
export { CJSColumnChart, CJSStackColumnChart, CJSHorizontalBarChart, CJSStackHorizontalBarChart, CJSLineChart, CJSStackLineChart, CJSAreaChart, CJSStackAreaChart, CJSPieChart, CJSDonutChart, CJSScatterChart, CJSBubbleChart, CJSRadarChart, CJSPolarAreaChart, CJSNormalizedStackColumnChart, CJSNormalizedStackHorizontalBarChart, CJSNormalizedStackLineChart, CJSNormalizedStackAreaChart, ChartJSWrapper, transformToChartJSData, transformToNormalizedChartJSData, mapFormatOptionsToChartJS, hexToRgba, CJS_DEFAULT_COLORS, } from "./Components/Charts/ChartJS/index";
|
|
@@ -11329,7 +11329,8 @@ const defaultChartFormatOptions = {
|
|
|
11329
11329
|
totalHideZeroValues: true,
|
|
11330
11330
|
totalDisplayUnits: "None",
|
|
11331
11331
|
editTotalTextToggle: false,
|
|
11332
|
-
editTotalText: "Total"
|
|
11332
|
+
editTotalText: "Total",
|
|
11333
|
+
showTotalLabel: true
|
|
11333
11334
|
},
|
|
11334
11335
|
toolTip: {
|
|
11335
11336
|
toolTipVisibility: true,
|
|
@@ -13594,7 +13595,15 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
13594
13595
|
const ease = effectsMap[formatOptions.animation.animationEffect];
|
|
13595
13596
|
const accessors = makeAnnotations.accessors();
|
|
13596
13597
|
const isLineChartType = chartType === chartTypes.LineChart;
|
|
13597
|
-
|
|
13598
|
+
const isDotPlot = chartType === chartTypes.DotPlot;
|
|
13599
|
+
const toTranslate = (d, dx = 0) => {
|
|
13600
|
+
const x2 = accessors.x(d.data);
|
|
13601
|
+
const y2 = accessors.y(d.data);
|
|
13602
|
+
return `translate(${x2 + dx}, ${y2})`;
|
|
13603
|
+
};
|
|
13604
|
+
if (isDotPlot) {
|
|
13605
|
+
annotations.selectAll(".annotation").attr("opacity", 0).attr("transform", (d) => toTranslate(d, -15)).transition().duration(duration).ease(ease).attr("opacity", 1).attr("transform", (d) => toTranslate(d));
|
|
13606
|
+
} else if (isLineChartType) {
|
|
13598
13607
|
const xRange = xScale.range ? xScale.range() : [0, 1];
|
|
13599
13608
|
const xRangeMin = Math.min(xRange[0], xRange[1]);
|
|
13600
13609
|
const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
|
|
@@ -14250,38 +14259,49 @@ const dataLabelsPosition = (yCordinate, position, yScale, minValue, prevValue, c
|
|
|
14250
14259
|
throw e;
|
|
14251
14260
|
}
|
|
14252
14261
|
};
|
|
14253
|
-
const dataTablePreCalculation = (formatOptions, yLabel, yTitle, seriesData, dimensionList) => {
|
|
14262
|
+
const dataTablePreCalculation = (formatOptions, yLabel, yTitle, seriesData, dimensionList, data) => {
|
|
14254
14263
|
try {
|
|
14264
|
+
const extraDataTableFields = data?.DataTableData ?? [];
|
|
14255
14265
|
let dataTable = [];
|
|
14256
14266
|
let dataTableHeight = 20;
|
|
14257
14267
|
if (formatOptions.dataTableProperties && formatOptions.dataTableProperties.dataTable) {
|
|
14268
|
+
const dataTableData = [...seriesData, ...extraDataTableFields];
|
|
14258
14269
|
formatOptions.xAxisLabel.xAxisLabelVisibility = false;
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14270
|
+
const isLegendIconVisible = formatOptions.dataTableProperties.disableLegendIcon ? false : true;
|
|
14271
|
+
const widthToSubtract = isLegendIconVisible ? 35 : 0;
|
|
14272
|
+
let exactAvailableWidth = yLabel + yTitle - widthToSubtract;
|
|
14273
|
+
dataTableData.forEach((data2, i) => {
|
|
14274
|
+
if (data2?.properties?.showInDataTable ?? true) {
|
|
14275
|
+
let tempObj = {
|
|
14276
|
+
data: data2.data.filter(
|
|
14277
|
+
(data3) => dimensionList.includes(data3.dimension)
|
|
14278
|
+
),
|
|
14279
|
+
properties: {
|
|
14280
|
+
legend: data2.properties.alias,
|
|
14281
|
+
color: data2.properties.color,
|
|
14282
|
+
markerColor: data2.properties.markerColor,
|
|
14283
|
+
markerShape: data2.properties.markerShape,
|
|
14284
|
+
lineStyle: data2.properties.lineStyle,
|
|
14285
|
+
height: calculateDataTableObjectHeight(
|
|
14286
|
+
data2.properties.alias.includes("~$~") ? data2.properties.alias.split("~$~")[1] : data2.properties.alias,
|
|
14287
|
+
exactAvailableWidth,
|
|
14288
|
+
formatOptions
|
|
14289
|
+
)
|
|
14290
|
+
}
|
|
14291
|
+
};
|
|
14292
|
+
dataTableHeight += tempObj.properties.height;
|
|
14293
|
+
dataTable.push(tempObj);
|
|
14294
|
+
}
|
|
14280
14295
|
});
|
|
14281
14296
|
} else {
|
|
14282
14297
|
dataTableHeight = 0;
|
|
14283
14298
|
dataTable = [];
|
|
14284
14299
|
}
|
|
14300
|
+
if (dataTable.length == 0) {
|
|
14301
|
+
dataTableHeight = 0;
|
|
14302
|
+
dataTable = [];
|
|
14303
|
+
formatOptions.dataTableProperties.dataTable = false;
|
|
14304
|
+
}
|
|
14285
14305
|
return { dataTable, dataTableHeight };
|
|
14286
14306
|
} catch (e) {
|
|
14287
14307
|
}
|
|
@@ -14324,7 +14344,7 @@ function addDataTable(isFitChart, svg, currentTag, dataTable, colWidth, yAxis, x
|
|
|
14324
14344
|
).style("text-align", "center").style("vertical-align", "middle").text("");
|
|
14325
14345
|
}
|
|
14326
14346
|
let legendsParentTag = temp.append("foreignObject").attr("x", -margin.left).attr("y", tableStartY + yCordinate).attr("width", margin.left).attr("height", cellHeight2);
|
|
14327
|
-
let innerdiv = legendsParentTag.append("xhtml:div").style("display", "flex").style("justify-content", "
|
|
14347
|
+
let innerdiv = legendsParentTag.append("xhtml:div").style("display", "flex").style("justify-content", "center").style("align-items", "center").attr("class", "parentClass").style("flex-wrap", "wrap").style("flex-direction", "row").style("pointer-events", "auto").style("width", cellWidth).style("height", `${cellHeight2}px`).style("padding-left", formatOptions.dataTableProperties.disableLegendIcon ? `2px` : `5px`).style("padding-right", `3px`).style(
|
|
14328
14348
|
"border-width",
|
|
14329
14349
|
getBorderStyle(
|
|
14330
14350
|
formatOptions,
|
|
@@ -14387,7 +14407,7 @@ function addDataTable(isFitChart, svg, currentTag, dataTable, colWidth, yAxis, x
|
|
|
14387
14407
|
).style("font-style", fontStyle.includes("Italic") ? "Italic" : "").style(
|
|
14388
14408
|
"text-decoration",
|
|
14389
14409
|
fontStyle.includes("Underline") ? "Underline" : ""
|
|
14390
|
-
).style("padding-left", `5px`).style("white-space", "normal").style("overflow-wrap", "break-word").style("color", "black").style("width", "100%").style("font-weight", fontStyle.includes("Bold") ? "Bold" : "").attr("title", text).text(text);
|
|
14410
|
+
).style("padding-left", `5px`).style("white-space", "normal").style("overflow-wrap", "break-word").style("color", "black").style("width", formatOptions.dataTableProperties.disableLegendIcon ? "100%" : "calc(100% - 30px)").style("font-weight", fontStyle.includes("Bold") ? "Bold" : "").attr("title", text).text(text);
|
|
14391
14411
|
};
|
|
14392
14412
|
let innerVerticalBorderLineWidth = formatOptions.dataTableInnerBorder.verticalBorderLineWidth;
|
|
14393
14413
|
let innerHorizontalBorderLineWidth = formatOptions.dataTableInnerBorder.horizontalBorderLineWidth;
|
|
@@ -17603,7 +17623,8 @@ const ColumnChart = ({
|
|
|
17603
17623
|
yLabel,
|
|
17604
17624
|
yTitle,
|
|
17605
17625
|
seriesData,
|
|
17606
|
-
chartJSON.dimensionList
|
|
17626
|
+
chartJSON.dimensionList,
|
|
17627
|
+
data
|
|
17607
17628
|
));
|
|
17608
17629
|
initSvg$1(
|
|
17609
17630
|
// for svg creation
|
|
@@ -18189,7 +18210,8 @@ const CustomColumnChart = ({
|
|
|
18189
18210
|
yLabel,
|
|
18190
18211
|
yTitle,
|
|
18191
18212
|
seriesData,
|
|
18192
|
-
chartJSON.dimensionList
|
|
18213
|
+
chartJSON.dimensionList,
|
|
18214
|
+
data
|
|
18193
18215
|
));
|
|
18194
18216
|
initSvg$1(
|
|
18195
18217
|
// for svg creation
|
|
@@ -19312,7 +19334,8 @@ const LayeredColumnChart = ({
|
|
|
19312
19334
|
yLabel,
|
|
19313
19335
|
yTitle,
|
|
19314
19336
|
seriesData,
|
|
19315
|
-
chartJSON.dimensionList
|
|
19337
|
+
chartJSON.dimensionList,
|
|
19338
|
+
data
|
|
19316
19339
|
));
|
|
19317
19340
|
initSvg$1(
|
|
19318
19341
|
// for svg creation
|
|
@@ -19868,7 +19891,8 @@ const StackColumnChart = ({
|
|
|
19868
19891
|
yLabel,
|
|
19869
19892
|
yTitle,
|
|
19870
19893
|
seriesData,
|
|
19871
|
-
chartJSON.dimensionList
|
|
19894
|
+
chartJSON.dimensionList,
|
|
19895
|
+
data
|
|
19872
19896
|
));
|
|
19873
19897
|
initSvg$1(
|
|
19874
19898
|
// for svg creation
|
|
@@ -20607,7 +20631,8 @@ const NormalizedStackColumnChart = ({
|
|
|
20607
20631
|
yLabel,
|
|
20608
20632
|
yTitle,
|
|
20609
20633
|
seriesData,
|
|
20610
|
-
chartJSON.dimensionList
|
|
20634
|
+
chartJSON.dimensionList,
|
|
20635
|
+
data
|
|
20611
20636
|
));
|
|
20612
20637
|
initSvg$1(
|
|
20613
20638
|
// for svg creation
|
|
@@ -22450,7 +22475,8 @@ const LineChart = ({
|
|
|
22450
22475
|
yLabel,
|
|
22451
22476
|
yTitle,
|
|
22452
22477
|
seriesData,
|
|
22453
|
-
chartJSON.dimensionList
|
|
22478
|
+
chartJSON.dimensionList,
|
|
22479
|
+
data
|
|
22454
22480
|
));
|
|
22455
22481
|
initSvg$1(
|
|
22456
22482
|
// for svg creation
|
|
@@ -23024,7 +23050,8 @@ const StackLineChart = ({
|
|
|
23024
23050
|
yLabel,
|
|
23025
23051
|
yTitle,
|
|
23026
23052
|
seriesData,
|
|
23027
|
-
chartJSON.dimensionList
|
|
23053
|
+
chartJSON.dimensionList,
|
|
23054
|
+
data
|
|
23028
23055
|
));
|
|
23029
23056
|
initSvg$1(
|
|
23030
23057
|
// for svg creation
|
|
@@ -23603,7 +23630,8 @@ const NormalisedStackLineChart = ({
|
|
|
23603
23630
|
yLabel,
|
|
23604
23631
|
yTitle,
|
|
23605
23632
|
seriesData,
|
|
23606
|
-
chartJSON.dimensionList
|
|
23633
|
+
chartJSON.dimensionList,
|
|
23634
|
+
data
|
|
23607
23635
|
));
|
|
23608
23636
|
initSvg$1(
|
|
23609
23637
|
// for svg creation
|
|
@@ -27121,7 +27149,8 @@ const AreaChart = ({
|
|
|
27121
27149
|
yLabel,
|
|
27122
27150
|
yTitle,
|
|
27123
27151
|
seriesData,
|
|
27124
|
-
chartJSON.dimensionList
|
|
27152
|
+
chartJSON.dimensionList,
|
|
27153
|
+
data
|
|
27125
27154
|
));
|
|
27126
27155
|
initSvg$1(
|
|
27127
27156
|
// for svg creation
|
|
@@ -27716,7 +27745,8 @@ const StackAreaChart = ({
|
|
|
27716
27745
|
yLabel,
|
|
27717
27746
|
yTitle,
|
|
27718
27747
|
seriesData,
|
|
27719
|
-
chartJSON.dimensionList
|
|
27748
|
+
chartJSON.dimensionList,
|
|
27749
|
+
data
|
|
27720
27750
|
));
|
|
27721
27751
|
initSvg$1(
|
|
27722
27752
|
// for svg creation
|
|
@@ -28314,7 +28344,8 @@ const NormalizedStackAreaChart = ({
|
|
|
28314
28344
|
yLabel,
|
|
28315
28345
|
yTitle,
|
|
28316
28346
|
seriesData,
|
|
28317
|
-
chartJSON.dimensionList
|
|
28347
|
+
chartJSON.dimensionList,
|
|
28348
|
+
data
|
|
28318
28349
|
));
|
|
28319
28350
|
initSvg$1(
|
|
28320
28351
|
// for svg creation
|
|
@@ -28843,7 +28874,9 @@ const drawTotalValue = (chartFormatOptions, totalValue, chartTitleHeight, chartA
|
|
|
28843
28874
|
chartFormatOptions.total.totalDecimalPrecision
|
|
28844
28875
|
)(totalValue);
|
|
28845
28876
|
let cords = getTotalValueCords(chartFormatOptions, chartTitleHeight, innerWidth2, innerHeight2);
|
|
28846
|
-
chartAreaTagG.append("g").attr("transform", `translate(${cords.x}, ${cords.y})`).style("user-select", "none").append("text").text(
|
|
28877
|
+
chartAreaTagG.append("g").attr("transform", `translate(${cords.x}, ${cords.y})`).style("user-select", "none").append("text").text(
|
|
28878
|
+
chartFormatOptions.total.showTotalLabel !== false ? `${chartFormatOptions.total.editTotalTextToggle ? chartFormatOptions.total.editTotalText : "Total"} : ${formatedTotalValue}` : formatedTotalValue
|
|
28879
|
+
).style(
|
|
28847
28880
|
"fill",
|
|
28848
28881
|
chartFormatOptions.total.totalColor !== commonColors.white ? chartFormatOptions.total.totalColor : "none"
|
|
28849
28882
|
).style("font-family", chartFormatOptions.total.totalFontFamily).style("font-size", chartFormatOptions.total.totalFontSize).style("font-style", fontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : "").style(
|
|
@@ -29748,7 +29781,8 @@ const DonutChart = ({
|
|
|
29748
29781
|
if (chartFormatOptions.total && chartFormatOptions.total.totalVisibility) {
|
|
29749
29782
|
let total = pieTotalValue;
|
|
29750
29783
|
let fontStyle = chartFormatOptions.total.totalFontStyle;
|
|
29751
|
-
chartAreaTagG.append("g").attr("transform", getPiePosition()).attr("pointer-events", "none").attr("text-anchor", "middle")
|
|
29784
|
+
const totalGroup = chartAreaTagG.append("g").attr("transform", getPiePosition()).attr("pointer-events", "none").attr("text-anchor", "middle");
|
|
29785
|
+
totalGroup.append("text").style(
|
|
29752
29786
|
"fill",
|
|
29753
29787
|
chartFormatOptions.total.totalColor !== commonColors.white ? chartFormatOptions.total.totalColor : "none"
|
|
29754
29788
|
).style("font-family", chartFormatOptions.total.totalFontFamily).style("font-size", chartFormatOptions.total.totalFontSize).style(
|
|
@@ -29763,7 +29797,7 @@ const DonutChart = ({
|
|
|
29763
29797
|
).attr("text-anchor", "middle").attr(
|
|
29764
29798
|
"visibility",
|
|
29765
29799
|
chartFormatOptions.plotArea.dataLabelValue ? "visible" : "hidden"
|
|
29766
|
-
).text(chartFormatOptions.total.editTotalText).append("tspan").attr("x", 0).attr("y", "1.3em").attr(
|
|
29800
|
+
).text(chartFormatOptions.total.showTotalLabel !== false ? chartFormatOptions.total.editTotalText : "").append("tspan").attr("x", 0).attr("y", chartFormatOptions.total.showTotalLabel !== false ? "1.3em" : "0").attr(
|
|
29767
29801
|
"font-weight",
|
|
29768
29802
|
fontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : 300
|
|
29769
29803
|
).text(
|
|
@@ -29773,6 +29807,9 @@ const DonutChart = ({
|
|
|
29773
29807
|
chartFormatOptions.total.totalDecimalPrecision
|
|
29774
29808
|
)(total)
|
|
29775
29809
|
);
|
|
29810
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
29811
|
+
totalGroup.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
29812
|
+
}
|
|
29776
29813
|
}
|
|
29777
29814
|
} catch (error) {
|
|
29778
29815
|
logError$2(fileName$7, "drawTotalValue", error);
|
|
@@ -31424,7 +31461,17 @@ const Speedometer = ({
|
|
|
31424
31461
|
)(d)
|
|
31425
31462
|
).attr("visibility", (d) => d === "" ? "hidden" : "visible");
|
|
31426
31463
|
if (chartFormatOptions.animation.animationEnabled) {
|
|
31427
|
-
|
|
31464
|
+
const duration = chartFormatOptions.animation.animationDuration;
|
|
31465
|
+
const ease = effectsMap[chartFormatOptions.animation.animationEffect];
|
|
31466
|
+
lg.selectAll("text").attr("opacity", 0).attr("transform", function(d, i) {
|
|
31467
|
+
const factor = range2 / config.majorTicks * i;
|
|
31468
|
+
const tickAngle = config.minAngle + factor;
|
|
31469
|
+
return `rotate(${tickAngle}) translate(0, ${config.labelInset - radius + 20})`;
|
|
31470
|
+
}).transition().duration(duration).ease(ease).attr("opacity", 1).attr("transform", function(d, i) {
|
|
31471
|
+
const factor = range2 / config.majorTicks * i;
|
|
31472
|
+
const tickAngle = config.minAngle + factor;
|
|
31473
|
+
return `rotate(${tickAngle}) translate(0, ${config.labelInset - radius})`;
|
|
31474
|
+
});
|
|
31428
31475
|
}
|
|
31429
31476
|
}
|
|
31430
31477
|
if (chartFormatOptions.pointerValue.showPointerValue && seriesData.length === 2) {
|
|
@@ -56489,7 +56536,7 @@ const WaterfallChart = ({
|
|
|
56489
56536
|
rects = rectsEnter.merge(rects);
|
|
56490
56537
|
if (formatOptions.plotArea.plotAreaDataLabel == "2" && k2 != 1) {
|
|
56491
56538
|
const textGroups = barGroups.selectAll("text").data((d) => d);
|
|
56492
|
-
textGroups.enter().append("text").text(
|
|
56539
|
+
const textEnter = textGroups.enter().append("text").text(
|
|
56493
56540
|
(d) => getNumberWithFormat(
|
|
56494
56541
|
d[1] - d[0],
|
|
56495
56542
|
formatOptions.plotArea.plotAreaDisplayUnits,
|
|
@@ -56501,10 +56548,12 @@ const WaterfallChart = ({
|
|
|
56501
56548
|
(d) => xScale(
|
|
56502
56549
|
!isAdvancedWaterfall ? d.data.dimension || d.data.legend : d.data.xKey
|
|
56503
56550
|
) + xScale.bandwidth() / 2
|
|
56504
|
-
).attr("y",
|
|
56551
|
+
).attr("y", yScaleLeft(0) ?? 0).style("font-size", "11px").attr("text-anchor", "middle").attr(
|
|
56505
56552
|
"visibility",
|
|
56506
56553
|
(d) => d[1] - d[0] !== 0 && yScaleLeft(d[1]) ? "visible" : "hidden"
|
|
56507
56554
|
);
|
|
56555
|
+
const finalTexts = shouldAnimate ? textEnter.transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]) : textEnter;
|
|
56556
|
+
finalTexts.attr("y", (d) => d[1] ? yScaleLeft(d[1]) - 15 : 0);
|
|
56508
56557
|
textGroups.exit().remove();
|
|
56509
56558
|
}
|
|
56510
56559
|
}
|
|
@@ -56827,14 +56876,6 @@ const TornadoChart = ({
|
|
|
56827
56876
|
chartJSON
|
|
56828
56877
|
));
|
|
56829
56878
|
setSVGContainer(margin);
|
|
56830
|
-
({ dataTable, dataTableHeight } = dataTablePreCalculation(
|
|
56831
|
-
// calculations for data tables
|
|
56832
|
-
formatOptions,
|
|
56833
|
-
yLabel,
|
|
56834
|
-
yTitle,
|
|
56835
|
-
seriesData,
|
|
56836
|
-
chartJSON.dimensionList
|
|
56837
|
-
));
|
|
56838
56879
|
initSvg$1(
|
|
56839
56880
|
// for svg creation
|
|
56840
56881
|
svg,
|
|
@@ -57120,7 +57161,7 @@ const TornadoChart = ({
|
|
|
57120
57161
|
customYaxisMaxValue,
|
|
57121
57162
|
barChart,
|
|
57122
57163
|
innerWidth2
|
|
57123
|
-
).customTickValue ??
|
|
57164
|
+
).customTickValue ?? innerWidth2 / 30
|
|
57124
57165
|
).tickPadding(8).tickSizeOuter(0);
|
|
57125
57166
|
};
|
|
57126
57167
|
const getChartType = () => {
|