pace-chart-lib 1.0.10 → 1.0.13
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/pace-chart-lib.es.js +177 -209
- package/dist/pace-chart-lib.umd.js +177 -209
- package/package.json +1 -1
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +0 -667
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -171
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +0 -92
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +0 -111
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +0 -26
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +0 -4
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +0 -10
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +0 -3
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +0 -3
- package/dist/Components/Charts/Core/Common.types.d.ts +0 -369
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +0 -239
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +0 -65
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +0 -595
- package/dist/Services/ErrorLog.d.ts +0 -1
- package/dist/index.d.ts +0 -35
|
@@ -11602,7 +11602,7 @@ function computeMarginMetrics(windowWidth, windowHeight, maxNumberForPrimaryAxis
|
|
|
11602
11602
|
"Helvetica"
|
|
11603
11603
|
)[1] : 0;
|
|
11604
11604
|
yTitle = yTitle > width * 0.1 ? width * 0.1 : yTitle;
|
|
11605
|
-
let yLabel = formatOptions.yAxisLabel.yAxisLabelVisibility ? responsiveYaxisMargin(maxNumberForPrimaryAxis, yMaxLeft, formatOptions, false, isNormalizedChart) : getYAxisLabel(formatOptions, max$2(legendList, (d) => d?.length || 0) || 0);
|
|
11605
|
+
let yLabel = formatOptions.yAxisLabel.yAxisLabelVisibility ? responsiveYaxisMargin(maxNumberForPrimaryAxis, yMaxLeft, formatOptions, false, isNormalizedChart) + 10 : getYAxisLabel(formatOptions, max$2(legendList, (d) => d?.length || 0) || 0) + 10;
|
|
11606
11606
|
yLabel += 8;
|
|
11607
11607
|
let secondaryYLabel = formatOptions.secondaryYAxisLabel.secondaryYAxisLabelVisibility ? responsiveYaxisMargin(
|
|
11608
11608
|
maxNumberForSecondaryAxis,
|
|
@@ -15401,10 +15401,10 @@ function getNumberWithFormatFunction(displayUnits, numberFormat, decimalPrecisio
|
|
|
15401
15401
|
logError$2(fileName$b, "getNumberWithFormatFunction", error);
|
|
15402
15402
|
}
|
|
15403
15403
|
}
|
|
15404
|
-
function showTooltipOnMouseMove(elements, chartFormatOptions, event2,
|
|
15404
|
+
function showTooltipOnMouseMove(elements, chartFormatOptions, event2, prop) {
|
|
15405
15405
|
try {
|
|
15406
|
-
const markerColor =
|
|
15407
|
-
const markerShape =
|
|
15406
|
+
const markerColor = prop?.markerColor ?? "blue";
|
|
15407
|
+
const markerShape = prop?.markerShape.toLowerCase() ?? "circle";
|
|
15408
15408
|
selectAll(".chartTooltip").style("visibility", "hidden");
|
|
15409
15409
|
const tooltip = select$2("#chartTooltipDiv").html("").append("div").attr(
|
|
15410
15410
|
"class",
|
|
@@ -15514,11 +15514,11 @@ const drawChartTitle = (chartSvg, chartTitleHeight, chartTitleWidth, chartFormat
|
|
|
15514
15514
|
chartFormatOptions.chartTitle.chartTitleVisibility ? "visible" : "hidden"
|
|
15515
15515
|
).attr("transform", `translate(2,2)`).attr("class", "chartTitle").attr("width", chartTitleWidth).attr("height", chartTitleHeight + "px");
|
|
15516
15516
|
if (chartFormatOptions.chartTitle.dynamicTitleText.length !== 0) {
|
|
15517
|
-
object2.append("xhtml:div").style("color", "rgba(119,119,119)").attr("title", chartFormatOptions.chartTitle.chartTitleText).style("white-space", "pre").style("text-overflow", "ellipsis").html(
|
|
15517
|
+
object2.append("xhtml:div").style("color", "rgba(119,119,119)").attr("title", chartFormatOptions.chartTitle.chartTitleText).style("white-space", "pre").style("text-overflow", "ellipsis").style("overflow", "visible").style("line-height", "1.3em").html(
|
|
15518
15518
|
chartFormatOptions.chartTitle.chartTitleHTML ? chartFormatOptions.chartTitle.chartTitleHTML : chartFormatOptions.chartTitle.chartTitleText
|
|
15519
15519
|
);
|
|
15520
15520
|
} else {
|
|
15521
|
-
object2.append("xhtml:div").style("white-space", "pre").style("user-select", "none").style("text-overflow", "ellipsis").style("overflow", "
|
|
15521
|
+
object2.append("xhtml:div").style("white-space", "pre").style("user-select", "none").style("text-overflow", "ellipsis").style("overflow", "visible").style("line-height", "1.3em").attr("class", "chartTiltle").attr("id", "chartTitleId").style("text-anchor", "start").style("color", "rgba(119,119,119)").style("font-size", "16px").style(
|
|
15522
15522
|
"font-family",
|
|
15523
15523
|
chartFormatOptions.chartTitle.chartTitleFontFamily
|
|
15524
15524
|
).attr("title", chartFormatOptions.chartTitle.chartTitleText).html(chartFormatOptions.chartTitle.chartTitleText);
|
|
@@ -15564,14 +15564,14 @@ const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPositio
|
|
|
15564
15564
|
if (chartFormatOptions.legends.onHoverEffect) {
|
|
15565
15565
|
selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
15566
15566
|
selectAll(
|
|
15567
|
-
'[hoverId="' + this.textContent.replace(/ /g, "-") + '"]'
|
|
15567
|
+
'[hoverId="' + ((this.textContent.match(/\(([^)]+)\)/) || [])[1] || this.textContent).replace(/ /g, "-") + '"]'
|
|
15568
15568
|
).classed("highlight", true).classed("unhighlight", false);
|
|
15569
15569
|
}
|
|
15570
15570
|
}).on("mouseout", function(d2) {
|
|
15571
15571
|
if (chartFormatOptions.legends.onHoverEffect) {
|
|
15572
15572
|
selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
|
|
15573
15573
|
selectAll(
|
|
15574
|
-
'[hoverId="' + this.textContent.replace(/ /g, "-") + '"]'
|
|
15574
|
+
'[hoverId="' + ((this.textContent.match(/\(([^)]+)\)/) || [])[1] || this.textContent).replace(/ /g, "-") + '"]'
|
|
15575
15575
|
).classed("highlight", false).classed("unhighlight", false);
|
|
15576
15576
|
}
|
|
15577
15577
|
});
|
|
@@ -15592,7 +15592,7 @@ const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPositio
|
|
|
15592
15592
|
{
|
|
15593
15593
|
if ((legendShape || customLegendShape) == staticLegendShape.circle) {
|
|
15594
15594
|
getCircleShape(d, innerdiv);
|
|
15595
|
-
} else if ((legendShape || customLegendShape) == staticLegendShape.
|
|
15595
|
+
} else if ((legendShape || customLegendShape) == staticLegendShape.hollowCircle) {
|
|
15596
15596
|
getHollowCircleShape(d, innerdiv);
|
|
15597
15597
|
} else if ((legendShape || customLegendShape) == staticLegendShape.line) {
|
|
15598
15598
|
getLineShape(d, innerdiv, chartFormatOptions);
|
|
@@ -15638,7 +15638,7 @@ function getCircleShape(d, innerDiv) {
|
|
|
15638
15638
|
}
|
|
15639
15639
|
function getHollowCircleShape(d, innerDiv) {
|
|
15640
15640
|
try {
|
|
15641
|
-
innerDiv.append("div").style("height", "12px").style("width", "12px").style("border-radius", "50%").style("border", `3px solid ${d.properties.Color}`);
|
|
15641
|
+
innerDiv.append("div").style("height", "12px").style("width", "12px").style("border-radius", "50%").style("border", `3px solid ${d.properties.Color ?? d.properties.color}`);
|
|
15642
15642
|
} catch (error) {
|
|
15643
15643
|
logError$2(fileName$b, "getHollowCircleShape", error);
|
|
15644
15644
|
}
|
|
@@ -15824,7 +15824,7 @@ const marginCalculationsForChartsWithoutAxis = (chartFormatOptions, width, heigh
|
|
|
15824
15824
|
logError$2(fileName$b, "marginCalculationsForChartsWithoutAxis", error);
|
|
15825
15825
|
}
|
|
15826
15826
|
};
|
|
15827
|
-
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, shouldAllowTotalValueMargin = true) => {
|
|
15827
|
+
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true) => {
|
|
15828
15828
|
try {
|
|
15829
15829
|
let position = chartFormatOptions.legends.legendPosition;
|
|
15830
15830
|
let totalPosition = chartFormatOptions.total.totalPosition;
|
|
@@ -15845,7 +15845,7 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
15845
15845
|
height - chartTitleHeight - 10 - (shouldTotalValueAdjustment ? totalPosition == staticTotalPosition.top && totalAlignment == staticTotalAlignment.end ? 10 : totalPosition == staticTotalPosition.bottom && totalAlignment == staticTotalAlignment.start ? 20 : 0 : 0),
|
|
15846
15846
|
position,
|
|
15847
15847
|
verticalLegendAlignment,
|
|
15848
|
-
|
|
15848
|
+
staticLegendShape2,
|
|
15849
15849
|
chartFormatOptions,
|
|
15850
15850
|
chartId
|
|
15851
15851
|
);
|
|
@@ -15860,7 +15860,7 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
15860
15860
|
30,
|
|
15861
15861
|
position,
|
|
15862
15862
|
horizontalLegendAlignment,
|
|
15863
|
-
|
|
15863
|
+
staticLegendShape2,
|
|
15864
15864
|
chartFormatOptions,
|
|
15865
15865
|
chartId
|
|
15866
15866
|
);
|
|
@@ -15875,7 +15875,7 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
15875
15875
|
height - chartTitleHeight - 10 - (shouldTotalValueAdjustment ? totalPosition == staticTotalPosition.top && totalAlignment == staticTotalAlignment.start ? 10 : totalPosition == staticTotalPosition.bottom && totalAlignment == staticTotalAlignment.start ? 20 : 0 : 0),
|
|
15876
15876
|
position,
|
|
15877
15877
|
verticalLegendAlignment,
|
|
15878
|
-
|
|
15878
|
+
staticLegendShape2,
|
|
15879
15879
|
chartFormatOptions,
|
|
15880
15880
|
chartId
|
|
15881
15881
|
);
|
|
@@ -15890,7 +15890,7 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
15890
15890
|
30,
|
|
15891
15891
|
position,
|
|
15892
15892
|
horizontalLegendAlignment,
|
|
15893
|
-
|
|
15893
|
+
staticLegendShape2,
|
|
15894
15894
|
chartFormatOptions,
|
|
15895
15895
|
chartId
|
|
15896
15896
|
);
|
|
@@ -19905,7 +19905,7 @@ const setnumberOfBubbles = (svg, legendPosition, chartFormatOptions, height, wid
|
|
|
19905
19905
|
function logError$1(fileName2, functionName, error) {
|
|
19906
19906
|
console.error(`[${fileName2}] [${functionName}]`, error);
|
|
19907
19907
|
}
|
|
19908
|
-
const ColumnHistogramChart
|
|
19908
|
+
const ColumnHistogramChart = ({
|
|
19909
19909
|
isDateType,
|
|
19910
19910
|
formatOptions,
|
|
19911
19911
|
data
|
|
@@ -24317,7 +24317,7 @@ const LayeredHorizontalBarChart = ({
|
|
|
24317
24317
|
}
|
|
24318
24318
|
) });
|
|
24319
24319
|
};
|
|
24320
|
-
const
|
|
24320
|
+
const HorizontalHistogramChart = ({
|
|
24321
24321
|
isDateType,
|
|
24322
24322
|
formatOptions,
|
|
24323
24323
|
data
|
|
@@ -24390,12 +24390,12 @@ const ColumnHistogramChart = ({
|
|
|
24390
24390
|
};
|
|
24391
24391
|
useEffect(() => {
|
|
24392
24392
|
try {
|
|
24393
|
-
|
|
24393
|
+
createHorizontalChart();
|
|
24394
24394
|
} catch (error) {
|
|
24395
|
-
logError$2("
|
|
24395
|
+
logError$2("HorizontalHistogramChart", "createHorizontalChart", error);
|
|
24396
24396
|
}
|
|
24397
24397
|
}, [formatOptions]);
|
|
24398
|
-
const
|
|
24398
|
+
const createHorizontalChart = () => {
|
|
24399
24399
|
({ formatOptions, svg, width, height } = firstFunctionBeforeRender$1(
|
|
24400
24400
|
svgRef,
|
|
24401
24401
|
formatOptions
|
|
@@ -24444,25 +24444,28 @@ const ColumnHistogramChart = ({
|
|
|
24444
24444
|
seriesData,
|
|
24445
24445
|
chartJSON.dimensionList
|
|
24446
24446
|
));
|
|
24447
|
-
initSvg$1(
|
|
24448
|
-
// for svg creation
|
|
24449
|
-
svg,
|
|
24450
|
-
width,
|
|
24451
|
-
height,
|
|
24452
|
-
formatOptions
|
|
24453
|
-
);
|
|
24447
|
+
initSvg$1(svg, width, height, formatOptions);
|
|
24454
24448
|
gTag = initChartArea$1(svg, margin);
|
|
24455
|
-
initPlotArea(
|
|
24449
|
+
initPlotArea(gTag, formatOptions, dataTableHeight, innerWidth2, innerHeight2, chartType);
|
|
24450
|
+
binsCalculation();
|
|
24451
|
+
initScale();
|
|
24452
|
+
initAxis();
|
|
24453
|
+
initXaxis$1(
|
|
24456
24454
|
gTag,
|
|
24455
|
+
chartJSON,
|
|
24456
|
+
xLabel,
|
|
24457
24457
|
formatOptions,
|
|
24458
24458
|
dataTableHeight,
|
|
24459
|
+
yScaleLeft,
|
|
24460
|
+
xAxis,
|
|
24461
|
+
dimensionHeightWidthArray,
|
|
24462
|
+
height,
|
|
24463
|
+
columnWidth,
|
|
24464
|
+
isDateType,
|
|
24459
24465
|
innerWidth2,
|
|
24460
24466
|
innerHeight2,
|
|
24461
|
-
|
|
24467
|
+
filteredDimension
|
|
24462
24468
|
);
|
|
24463
|
-
binsCalculation();
|
|
24464
|
-
initScale();
|
|
24465
|
-
initAxis();
|
|
24466
24469
|
initYaxis$1(
|
|
24467
24470
|
gTag,
|
|
24468
24471
|
formatOptions,
|
|
@@ -24579,7 +24582,7 @@ const ColumnHistogramChart = ({
|
|
|
24579
24582
|
const binsCalculation = () => {
|
|
24580
24583
|
switch (formatOptions.bins.binsCalculation) {
|
|
24581
24584
|
case "Automatic":
|
|
24582
|
-
thresholds =
|
|
24585
|
+
thresholds = innerHeight2 / 50;
|
|
24583
24586
|
break;
|
|
24584
24587
|
case "Number of Bins":
|
|
24585
24588
|
calculatingPeriodsWithBins(false);
|
|
@@ -24589,11 +24592,7 @@ const ColumnHistogramChart = ({
|
|
|
24589
24592
|
}
|
|
24590
24593
|
};
|
|
24591
24594
|
const calculatingPeriodsWithBins = (isWithWidth) => {
|
|
24592
|
-
filteredData.forEach(
|
|
24593
|
-
(d) => d.data.sort(function(a2, b) {
|
|
24594
|
-
return a2.value - b.value;
|
|
24595
|
-
})
|
|
24596
|
-
);
|
|
24595
|
+
filteredData.forEach((d) => d.data.sort((a2, b) => a2.value - b.value));
|
|
24597
24596
|
let range2 = chartJSON.xMax - chartJSON.xMin;
|
|
24598
24597
|
let tempPeriod;
|
|
24599
24598
|
if (isWithWidth) {
|
|
@@ -24619,9 +24618,9 @@ const ColumnHistogramChart = ({
|
|
|
24619
24618
|
}
|
|
24620
24619
|
};
|
|
24621
24620
|
const initScale = () => {
|
|
24622
|
-
|
|
24623
|
-
const numberOfBins = periods.length > 0 ? periods :
|
|
24624
|
-
let histogram = bin().value((d) => d).domain(
|
|
24621
|
+
yScaleLeft = linear$1().domain([chartJSON.xMin, chartJSON.xMax]).range([innerHeight2, 0]);
|
|
24622
|
+
const numberOfBins = periods.length > 0 ? periods : yScaleLeft.ticks(thresholds);
|
|
24623
|
+
let histogram = bin().value((d) => d).domain(yScaleLeft.domain()).thresholds(numberOfBins);
|
|
24625
24624
|
filteredData.forEach((d) => {
|
|
24626
24625
|
let tempArray = histogram(d.data.map((val) => val.value));
|
|
24627
24626
|
bins.push(tempArray);
|
|
@@ -24637,23 +24636,26 @@ const ColumnHistogramChart = ({
|
|
|
24637
24636
|
bins.forEach((d) => d.forEach((j) => cumulativeLength.push(j.length)));
|
|
24638
24637
|
chartJSON.yMaxLeft = max$2(cumulativeLength);
|
|
24639
24638
|
chartJSON.yMinLeft = min$2(cumulativeLength);
|
|
24640
|
-
|
|
24639
|
+
xScale = linear$1().domain([
|
|
24640
|
+
customXaxisMinValue || customXaxisMinValue == 0 ? customXaxisMinValue : 0,
|
|
24641
|
+
customXaxisMaxValue || customXaxisMaxValue == 0 ? customXaxisMaxValue : chartJSON.yMaxLeft + 0.2 * chartJSON.yMaxLeft
|
|
24642
|
+
]).range([0, innerWidth2]);
|
|
24641
24643
|
};
|
|
24642
24644
|
const initAxis = () => {
|
|
24643
|
-
|
|
24645
|
+
getYAxis();
|
|
24644
24646
|
{
|
|
24645
|
-
let
|
|
24647
|
+
let responsiveLabelsObj = responsiveYaxisLabel$1(
|
|
24646
24648
|
chartJSON.yMaxLeft,
|
|
24647
24649
|
chartJSON.yMinLeft,
|
|
24648
|
-
|
|
24650
|
+
innerWidth2,
|
|
24649
24651
|
formatOptions,
|
|
24650
24652
|
chartJSON,
|
|
24651
24653
|
customYaxisMinValue,
|
|
24652
24654
|
customYaxisMaxValue,
|
|
24653
24655
|
false,
|
|
24654
|
-
|
|
24656
|
+
innerHeight2
|
|
24655
24657
|
);
|
|
24656
|
-
|
|
24658
|
+
xAxis = axisBottom(xScale).tickFormat(
|
|
24657
24659
|
(d) => getNumberWithFormat(
|
|
24658
24660
|
d,
|
|
24659
24661
|
formatOptions.yAxisLabel.yAxisDisplayUnits,
|
|
@@ -24661,15 +24663,14 @@ const ColumnHistogramChart = ({
|
|
|
24661
24663
|
formatOptions.yAxisLabel.yAxisLabelDecimalPrecision
|
|
24662
24664
|
)
|
|
24663
24665
|
).tickSize(
|
|
24664
|
-
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -
|
|
24665
|
-
).tickValues(
|
|
24666
|
+
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerHeight2 + 0 : 0 : 0
|
|
24667
|
+
).tickValues(responsiveLabelsObj.autoLabelFlag ? void 0 : responsiveLabelsObj.yAxisLabelArray).ticks(responsiveLabelsObj.customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
24666
24668
|
}
|
|
24667
24669
|
};
|
|
24668
|
-
const
|
|
24669
|
-
let
|
|
24670
|
-
let labelArray = responsiveXaxisLabelForNumericValue(chartJSON.xMax, chartJSON.xMin, innerWidth2, formatOptions, customXaxisMinValue, customXaxisMaxValue, innerHeight2, false).xAxisLabelArray;
|
|
24670
|
+
const getYAxis = () => {
|
|
24671
|
+
let labelArray = responsiveXaxisLabelForNumericValue(chartJSON.xMax, chartJSON.xMin, innerHeight2, formatOptions, customXaxisMinValue, customXaxisMaxValue, innerWidth2, false).xAxisLabelArray;
|
|
24671
24672
|
labelArray.shift();
|
|
24672
|
-
|
|
24673
|
+
yAxisLeft = axisLeft(yScaleLeft).tickFormat(
|
|
24673
24674
|
(d) => getNumberWithFormat(
|
|
24674
24675
|
d,
|
|
24675
24676
|
formatOptions.xAxisLabel.xAxisDisplayUnits,
|
|
@@ -24678,32 +24679,29 @@ const ColumnHistogramChart = ({
|
|
|
24678
24679
|
false
|
|
24679
24680
|
)
|
|
24680
24681
|
).tickSize(
|
|
24681
|
-
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ?
|
|
24682
|
+
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ? -innerWidth2 : 0 : 0
|
|
24682
24683
|
).tickSizeOuter(0);
|
|
24683
|
-
formatOptions.bins.binsCalculation === "Automatic" ?
|
|
24684
|
+
formatOptions.bins.binsCalculation === "Automatic" ? yAxisLeft.ticks(thresholds) : yAxisLeft.tickValues(periods).ticks(innerHeight2 / 50);
|
|
24684
24685
|
};
|
|
24685
24686
|
const getChartType = (lineData) => {
|
|
24686
|
-
gTag.append("g").attr("class", "parentGroup").selectAll("#scaling-svg" + chartId + " .rect").data(bins).enter().append("g").selectAll("rect").data((d) => d).enter().append("rect").attr("class", "rect").attr("stroke", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderColor).attr(
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
}).attr("height", function(d) {
|
|
24697
|
-
return innerHeight2 - yScaleLeft(d.length);
|
|
24698
|
-
}).style("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("opacity", formatOptions.bins.binsFillOpacity).style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
|
|
24687
|
+
gTag.append("g").attr("class", "parentGroup").selectAll("#scaling-svg" + chartId + " .rect").data(bins).enter().append("g").selectAll("rect").data((d) => d).enter().append("rect").attr("class", "rect").attr("stroke", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderColor).attr("stroke-width", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderThickness).attr("stroke-opacity", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderOpacity).attr("x", 0).attr("y", (d) => {
|
|
24688
|
+
const y02 = yScaleLeft(d.x0);
|
|
24689
|
+
const y12 = yScaleLeft(d.x1);
|
|
24690
|
+
return Math.min(y02, y12);
|
|
24691
|
+
}).attr("height", (d) => {
|
|
24692
|
+
const y02 = yScaleLeft(d.x0);
|
|
24693
|
+
const y12 = yScaleLeft(d.x1);
|
|
24694
|
+
const gap = parseFloat(formatOptions.bins.binsGapWidth) || 0;
|
|
24695
|
+
return Math.max(1, Math.abs(y12 - y02) - gap);
|
|
24696
|
+
}).attr("width", (d) => xScale(d.length)).style("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("opacity", formatOptions.bins.binsFillOpacity).style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
|
|
24699
24697
|
showTooltipOnMouseMove(
|
|
24700
24698
|
[
|
|
24701
24699
|
{
|
|
24702
|
-
key: formatOptions.
|
|
24700
|
+
key: formatOptions.yAxisTitle.yAxisTitleText,
|
|
24703
24701
|
value: `${d["x0"]}-${d["x1"]}`
|
|
24704
24702
|
},
|
|
24705
24703
|
{
|
|
24706
|
-
key: formatOptions.
|
|
24704
|
+
key: formatOptions.xAxisTitle.xAxisTitleText,
|
|
24707
24705
|
value: getNumberWithFormat(formatOptions.toolTip.toolTipNumberFormat == ",.0%" ? Math.abs(d.length / filteredData[0].data.length) : d.length, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, false)
|
|
24708
24706
|
}
|
|
24709
24707
|
],
|
|
@@ -24753,7 +24751,7 @@ const ColumnHistogramChart = ({
|
|
|
24753
24751
|
(d) => filteredDimension.includes(d.dimension)
|
|
24754
24752
|
)
|
|
24755
24753
|
);
|
|
24756
|
-
|
|
24754
|
+
getYAxis();
|
|
24757
24755
|
drawColumnChart();
|
|
24758
24756
|
})
|
|
24759
24757
|
);
|
|
@@ -24770,35 +24768,20 @@ const ColumnHistogramChart = ({
|
|
|
24770
24768
|
(d) => filteredDimension.includes(d.dimension)
|
|
24771
24769
|
)
|
|
24772
24770
|
);
|
|
24773
|
-
|
|
24771
|
+
getYAxis();
|
|
24774
24772
|
drawColumnChart();
|
|
24775
24773
|
});
|
|
24776
24774
|
}
|
|
24777
24775
|
drawColumnChart();
|
|
24778
24776
|
};
|
|
24779
24777
|
const drawColumnChart = () => {
|
|
24780
|
-
|
|
24781
|
-
gTag,
|
|
24782
|
-
chartJSON,
|
|
24783
|
-
xLabel,
|
|
24784
|
-
formatOptions,
|
|
24785
|
-
dataTableHeight,
|
|
24786
|
-
yScaleLeft,
|
|
24787
|
-
xAxis,
|
|
24788
|
-
dimensionHeightWidthArray,
|
|
24789
|
-
height,
|
|
24790
|
-
columnWidth,
|
|
24791
|
-
isDateType,
|
|
24792
|
-
innerWidth2,
|
|
24793
|
-
innerHeight2,
|
|
24794
|
-
filteredDimension
|
|
24795
|
-
);
|
|
24778
|
+
initYaxis$1(gTag, formatOptions, dataTableHeight, yLabel, yAxisLeft, innerHeight2);
|
|
24796
24779
|
getChartType();
|
|
24797
24780
|
};
|
|
24798
24781
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24799
24782
|
"svg",
|
|
24800
24783
|
{
|
|
24801
|
-
className: "
|
|
24784
|
+
className: "className",
|
|
24802
24785
|
ref: svgRef,
|
|
24803
24786
|
id: chartId,
|
|
24804
24787
|
style: { width: "100%", height: "100%" }
|
|
@@ -26589,7 +26572,8 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
26589
26572
|
legendListWidth,
|
|
26590
26573
|
chartTitleHeight,
|
|
26591
26574
|
chartId,
|
|
26592
|
-
margins
|
|
26575
|
+
margins,
|
|
26576
|
+
staticLegendShape.circle
|
|
26593
26577
|
);
|
|
26594
26578
|
initPieChartData();
|
|
26595
26579
|
drawPieChart();
|
|
@@ -26670,7 +26654,9 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
26670
26654
|
},
|
|
26671
26655
|
{ key: "Legend", value: d.currentTarget.__data__.data.legend }
|
|
26672
26656
|
],
|
|
26673
|
-
chartFormatOptions
|
|
26657
|
+
chartFormatOptions,
|
|
26658
|
+
void 0,
|
|
26659
|
+
d.currentTarget.__data__.data.properties
|
|
26674
26660
|
);
|
|
26675
26661
|
}).on("mouseout.text", () => {
|
|
26676
26662
|
hideTooltipOnMouseOut();
|
|
@@ -26948,6 +26934,7 @@ const DonutChart = ({
|
|
|
26948
26934
|
chartTitleHeight,
|
|
26949
26935
|
chartId,
|
|
26950
26936
|
margins,
|
|
26937
|
+
staticLegendShape.hollowCircle,
|
|
26951
26938
|
false
|
|
26952
26939
|
);
|
|
26953
26940
|
initPieChartData();
|
|
@@ -26968,7 +26955,7 @@ const DonutChart = ({
|
|
|
26968
26955
|
};
|
|
26969
26956
|
const defineChartRadius = () => {
|
|
26970
26957
|
try {
|
|
26971
|
-
radius = Math.min(innerHeight2 * 0.
|
|
26958
|
+
radius = Math.min(innerHeight2 * 0.4, innerWidth2 * 0.4);
|
|
26972
26959
|
outsideDataLabelFlag ? radius = radius * 0.9 : null;
|
|
26973
26960
|
innerRadius = Math.min(
|
|
26974
26961
|
convertStringToNumber(chartFormatOptions.plotArea.innerRadius) / 100 * radius,
|
|
@@ -27034,7 +27021,9 @@ const DonutChart = ({
|
|
|
27034
27021
|
},
|
|
27035
27022
|
{ key: "Legend", value: d.currentTarget.__data__.data.legend }
|
|
27036
27023
|
],
|
|
27037
|
-
chartFormatOptions
|
|
27024
|
+
chartFormatOptions,
|
|
27025
|
+
void 0,
|
|
27026
|
+
d.currentTarget.__data__.data.properties
|
|
27038
27027
|
);
|
|
27039
27028
|
}).on("mouseout.text", () => hideTooltipOnMouseOut()).on("mouseout.arc", function() {
|
|
27040
27029
|
if (enableTransition) ;
|
|
@@ -27111,7 +27100,7 @@ const DonutChart = ({
|
|
|
27111
27100
|
pieChartData.filter(
|
|
27112
27101
|
(d) => d.data.properties.dataLabelPosition == "1"
|
|
27113
27102
|
)
|
|
27114
|
-
).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr("fill", (d) => d.data.properties?.
|
|
27103
|
+
).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr("fill", (d) => d.data.properties?.lableFontColor ?? "#000000").attr(
|
|
27115
27104
|
"font-style",
|
|
27116
27105
|
(d) => d.data.properties?.valueFontStyle?.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""
|
|
27117
27106
|
).attr(
|
|
@@ -27192,69 +27181,7 @@ const DonutChart = ({
|
|
|
27192
27181
|
const textWidth = 80;
|
|
27193
27182
|
const xOffset = midangle < Math.PI ? 0 : -textWidth;
|
|
27194
27183
|
return radius * 1.1 * (midangle < Math.PI ? 1 : -1) + xOffset;
|
|
27195
|
-
}).attr("y", (d) => outerRadius.centroid(d)[1] - 30).append("xhtml:div").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).style("display", "flex").style("flex-direction", "column").style("justify-content", "center").style("align-items", "center").style("height", "60px")
|
|
27196
|
-
try {
|
|
27197
|
-
let value2 = d.data.data[0].value.toString();
|
|
27198
|
-
if (d.data.data[0].value !== void 0) {
|
|
27199
|
-
value2 = chartFormatOptions.plotArea.dataLabelNumberFormat === ",.0%" ? (Math.abs(d.data.data[0].value / pieTotalValue) * 100).toFixed(
|
|
27200
|
-
convertStringToNumber(
|
|
27201
|
-
chartFormatOptions.plotArea.dataLabelDecimalPrecision
|
|
27202
|
-
)
|
|
27203
|
-
) + "%" : getNumberWithFormatFunction(
|
|
27204
|
-
chartFormatOptions.plotArea.plotAreaDisplayUnits,
|
|
27205
|
-
chartFormatOptions.plotArea.dataLabelNumberFormat,
|
|
27206
|
-
chartFormatOptions.plotArea.dataLabelDecimalPrecision
|
|
27207
|
-
)(d.data.data[0].value);
|
|
27208
|
-
}
|
|
27209
|
-
let htmlString = "";
|
|
27210
|
-
if (chartFormatOptions.plotArea.dataLabelName) {
|
|
27211
|
-
htmlString += `<span style="
|
|
27212
|
-
font-size: ${d.data.properties.labelFontSize}px;
|
|
27213
|
-
color: ${d.data.properties.labelFontColor};
|
|
27214
|
-
font-style: ${d.data.properties.labelFontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""};
|
|
27215
|
-
text-decoration: ${d.data.properties.labelFontStyle.includes(
|
|
27216
|
-
fontStyleOptions.underline
|
|
27217
|
-
) ? fontStyleOptions.underline : ""};
|
|
27218
|
-
font-weight: ${d.data.properties.labelFontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : ""};
|
|
27219
|
-
font-family: ${d.data.properties.labelFont};
|
|
27220
|
-
display: block; white-space: nowrap; width:80px; overflow:hidden; text-overflow:ellipsis; text-align: center;">
|
|
27221
|
-
${d.data.legend}
|
|
27222
|
-
</span>`;
|
|
27223
|
-
}
|
|
27224
|
-
if (chartFormatOptions.plotArea.dataLabelValue && d.data.data[0].value !== void 0) {
|
|
27225
|
-
htmlString += `<span style="
|
|
27226
|
-
font-size: ${d.data.properties.valueFontSize}px;
|
|
27227
|
-
color: ${d.data.properties.valueFontColor};
|
|
27228
|
-
font-style: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""};
|
|
27229
|
-
text-decoration: ${d.data.properties.valueFontStyle.includes(
|
|
27230
|
-
fontStyleOptions.underline
|
|
27231
|
-
) ? fontStyleOptions.underline : ""};
|
|
27232
|
-
font-weight: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : "300"};
|
|
27233
|
-
font-family: ${d.data.properties.valueFont};
|
|
27234
|
-
display: block;">
|
|
27235
|
-
${value2}
|
|
27236
|
-
</span>`;
|
|
27237
|
-
}
|
|
27238
|
-
if (chartFormatOptions.plotArea.plotAreaAbsoluteValue && d.data[0].value !== void 0) {
|
|
27239
|
-
htmlString += `<span style="
|
|
27240
|
-
font-size: ${d.data.properties.valueFontSize}px;
|
|
27241
|
-
color: ${d.data.properties.valueFontColor};
|
|
27242
|
-
font-style: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""};
|
|
27243
|
-
text-decoration: ${d.data.properties.valueFontStyle.includes(
|
|
27244
|
-
fontStyleOptions.underline
|
|
27245
|
-
) ? fontStyleOptions.underline : ""};
|
|
27246
|
-
font-weight: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : "300"};
|
|
27247
|
-
font-family: ${d.data.properties.valueFont};
|
|
27248
|
-
display: block;">
|
|
27249
|
-
${format(".2s")(d.data[0].value)}
|
|
27250
|
-
</span>`;
|
|
27251
|
-
}
|
|
27252
|
-
return htmlString;
|
|
27253
|
-
} catch (error) {
|
|
27254
|
-
logError$2(fileName$7, "drawDonutDataLabels", error);
|
|
27255
|
-
return "";
|
|
27256
|
-
}
|
|
27257
|
-
});
|
|
27184
|
+
}).attr("y", (d) => outerRadius.centroid(d)[1] - 30).append("xhtml:div").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).style("display", "flex").style("flex-direction", "column").style("justify-content", "center").style("align-items", "center").style("height", "60px");
|
|
27258
27185
|
}
|
|
27259
27186
|
} catch (error) {
|
|
27260
27187
|
logError$2(fileName$7, "drawDonutDataLabels", error);
|
|
@@ -27452,7 +27379,9 @@ const Treemap = ({ data, formatOptions, chartId }) => {
|
|
|
27452
27379
|
)(data2.data.data[1].value)
|
|
27453
27380
|
} : ""
|
|
27454
27381
|
],
|
|
27455
|
-
chartFormatOptions
|
|
27382
|
+
chartFormatOptions,
|
|
27383
|
+
void 0,
|
|
27384
|
+
d.currentTarget.__data__.data.properties
|
|
27456
27385
|
);
|
|
27457
27386
|
}).on("mouseout", () => hideTooltipOnMouseOut());
|
|
27458
27387
|
leaf.append("clipPath").attr("id", (d, i) => `clip-${i}-${chartId}`).append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0);
|
|
@@ -27635,7 +27564,9 @@ const PieofPie = ({
|
|
|
27635
27564
|
},
|
|
27636
27565
|
{ key: "Legend", value: d.currentTarget.__data__.data.legend }
|
|
27637
27566
|
],
|
|
27638
|
-
chartFormatOptions
|
|
27567
|
+
chartFormatOptions,
|
|
27568
|
+
void 0,
|
|
27569
|
+
d.currentTarget.__data__.data.properties
|
|
27639
27570
|
);
|
|
27640
27571
|
}).on("mouseout.text", () => {
|
|
27641
27572
|
hideTooltipOnMouseOut();
|
|
@@ -27701,7 +27632,9 @@ const PieofPie = ({
|
|
|
27701
27632
|
},
|
|
27702
27633
|
{ key: "Legend", value: d.currentTarget.__data__.data.legend }
|
|
27703
27634
|
],
|
|
27704
|
-
chartFormatOptions
|
|
27635
|
+
chartFormatOptions,
|
|
27636
|
+
void 0,
|
|
27637
|
+
d.currentTarget.__data__.data.properties
|
|
27705
27638
|
);
|
|
27706
27639
|
}).on("mouseout.text", () => {
|
|
27707
27640
|
hideTooltipOnMouseOut();
|
|
@@ -27902,7 +27835,8 @@ const PieofPie = ({
|
|
|
27902
27835
|
legendListWidth,
|
|
27903
27836
|
chartTitleHeight,
|
|
27904
27837
|
chartId,
|
|
27905
|
-
margins
|
|
27838
|
+
margins,
|
|
27839
|
+
staticLegendShape.circle
|
|
27906
27840
|
);
|
|
27907
27841
|
} catch (error) {
|
|
27908
27842
|
logError$2(fileName$5, "initLegendList", error);
|
|
@@ -27975,6 +27909,7 @@ const PyramidChart = ({
|
|
|
27975
27909
|
chartTitleHeight,
|
|
27976
27910
|
chartId,
|
|
27977
27911
|
margins,
|
|
27912
|
+
staticLegendShape.rectangle,
|
|
27978
27913
|
false
|
|
27979
27914
|
);
|
|
27980
27915
|
initPyramidData();
|
|
@@ -28037,13 +27972,13 @@ const PyramidChart = ({
|
|
|
28037
27972
|
${centerX + bottomWidth / 2},${yBottom}
|
|
28038
27973
|
${centerX - bottomWidth / 2},${yBottom}
|
|
28039
27974
|
`
|
|
28040
|
-
).attr("fill", d.properties.color || "#4cb2ff").on("mousemove", function() {
|
|
27975
|
+
).attr("fill", d.properties.color || "#4cb2ff").on("mousemove", function(d2) {
|
|
28041
27976
|
try {
|
|
28042
27977
|
showTooltipOnMouseMove(
|
|
28043
27978
|
[
|
|
28044
27979
|
{
|
|
28045
|
-
key:
|
|
28046
|
-
value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ?
|
|
27980
|
+
key: d2.legend,
|
|
27981
|
+
value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? d2.data[0].value ? (Math.abs(d2.data[0].value / pyramidTotalValue) * 100).toFixed(
|
|
28047
27982
|
convertStringToNumber(
|
|
28048
27983
|
chartFormatOptions.toolTip.toolTipDecimalPrecision
|
|
28049
27984
|
)
|
|
@@ -28051,10 +27986,12 @@ const PyramidChart = ({
|
|
|
28051
27986
|
"None",
|
|
28052
27987
|
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
28053
27988
|
chartFormatOptions.toolTip.toolTipDecimalPrecision
|
|
28054
|
-
)(
|
|
27989
|
+
)(d2.data[0].value)
|
|
28055
27990
|
}
|
|
28056
27991
|
],
|
|
28057
|
-
chartFormatOptions
|
|
27992
|
+
chartFormatOptions,
|
|
27993
|
+
void 0,
|
|
27994
|
+
d2.currentTarget.__data__.data.properties
|
|
28058
27995
|
);
|
|
28059
27996
|
select$2(this).style("opacity", 0.8).style("stroke", chartFormatOptions.chartArea.chartAreaColor).style("stroke-width", "3px");
|
|
28060
27997
|
} catch (error) {
|
|
@@ -28328,7 +28265,8 @@ const ProgressChart = ({
|
|
|
28328
28265
|
legendListWidth,
|
|
28329
28266
|
chartTitleHeight,
|
|
28330
28267
|
chartId,
|
|
28331
|
-
margins
|
|
28268
|
+
margins,
|
|
28269
|
+
staticLegendShape.hollowCircle
|
|
28332
28270
|
);
|
|
28333
28271
|
initProgressChartData();
|
|
28334
28272
|
drawProgressChart();
|
|
@@ -28386,7 +28324,9 @@ const ProgressChart = ({
|
|
|
28386
28324
|
)(maxValue)
|
|
28387
28325
|
}
|
|
28388
28326
|
],
|
|
28389
|
-
chartFormatOptions
|
|
28327
|
+
chartFormatOptions,
|
|
28328
|
+
void 0,
|
|
28329
|
+
d.currentTarget.__data__.data.properties
|
|
28390
28330
|
);
|
|
28391
28331
|
} catch (error) {
|
|
28392
28332
|
logError$2(
|
|
@@ -28839,7 +28779,9 @@ const Speedometer = ({
|
|
|
28839
28779
|
)(data[index2].data[0].value)
|
|
28840
28780
|
}
|
|
28841
28781
|
],
|
|
28842
|
-
chartFormatOptions
|
|
28782
|
+
chartFormatOptions,
|
|
28783
|
+
void 0,
|
|
28784
|
+
d.currentTarget.__data__.data.properties
|
|
28843
28785
|
);
|
|
28844
28786
|
}).on("mouseout", () => {
|
|
28845
28787
|
hideTooltipOnMouseOut();
|
|
@@ -29046,7 +28988,8 @@ const RadialBarChart = ({
|
|
|
29046
28988
|
legendListWidth,
|
|
29047
28989
|
chartTitleHeight,
|
|
29048
28990
|
chartId,
|
|
29049
|
-
margins
|
|
28991
|
+
margins,
|
|
28992
|
+
staticLegendShape.hollowCircle
|
|
29050
28993
|
);
|
|
29051
28994
|
initRadialBarChart();
|
|
29052
28995
|
};
|
|
@@ -29204,7 +29147,9 @@ const RadialBarChart = ({
|
|
|
29204
29147
|
},
|
|
29205
29148
|
{ key: "Legend", value: d.properties.alias }
|
|
29206
29149
|
],
|
|
29207
|
-
chartFormatOptions
|
|
29150
|
+
chartFormatOptions,
|
|
29151
|
+
void 0,
|
|
29152
|
+
d.properties
|
|
29208
29153
|
);
|
|
29209
29154
|
}).on("mouseout", () => {
|
|
29210
29155
|
hideTooltipOnMouseOut();
|
|
@@ -29765,7 +29710,9 @@ const WordCloud = ({ data, formatOptions, chartId }) => {
|
|
|
29765
29710
|
value: totalMeasureValue
|
|
29766
29711
|
}
|
|
29767
29712
|
],
|
|
29768
|
-
chartFormatOptions
|
|
29713
|
+
chartFormatOptions,
|
|
29714
|
+
void 0,
|
|
29715
|
+
d.properties
|
|
29769
29716
|
);
|
|
29770
29717
|
} catch (error) {
|
|
29771
29718
|
logError$2(fileName$2, "draw-mousemove", error);
|
|
@@ -33234,7 +33181,9 @@ const VennChart = ({
|
|
|
33234
33181
|
)(d.size)
|
|
33235
33182
|
}
|
|
33236
33183
|
],
|
|
33237
|
-
chartFormatOptions
|
|
33184
|
+
chartFormatOptions,
|
|
33185
|
+
void 0,
|
|
33186
|
+
d.properties
|
|
33238
33187
|
);
|
|
33239
33188
|
let selection2 = select$2(this).transition("tooltip").duration(10);
|
|
33240
33189
|
selection2.selectAll("path").style("stroke-dasharray", "5,5").style("stroke-opacity", 1).style("stroke", "black");
|
|
@@ -33975,7 +33924,7 @@ const SankeyChart = ({
|
|
|
33975
33924
|
showTooltipOnMouseMove(
|
|
33976
33925
|
[
|
|
33977
33926
|
{
|
|
33978
|
-
key: d.name,
|
|
33927
|
+
key: d.name.split("~$~")[1],
|
|
33979
33928
|
value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? layerWisePercentage.get(d.name) + "%" : getNumberWithFormatFunction(
|
|
33980
33929
|
"None",
|
|
33981
33930
|
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
@@ -33983,7 +33932,9 @@ const SankeyChart = ({
|
|
|
33983
33932
|
)(d.value)
|
|
33984
33933
|
}
|
|
33985
33934
|
],
|
|
33986
|
-
chartFormatOptions
|
|
33935
|
+
chartFormatOptions,
|
|
33936
|
+
void 0,
|
|
33937
|
+
{ markerShape: "square", markerColor: d.color }
|
|
33987
33938
|
);
|
|
33988
33939
|
}
|
|
33989
33940
|
chartAreaTagG.selectAll(".sankey-nodes").style("fill-opacity", 0.1).style("stroke", "none");
|
|
@@ -34052,7 +34003,7 @@ const SankeyChart = ({
|
|
|
34052
34003
|
showTooltipOnMouseMove(
|
|
34053
34004
|
[
|
|
34054
34005
|
{
|
|
34055
|
-
key: d.source.name + "→" + d.target.name,
|
|
34006
|
+
key: d.source.name.split("~$~")[1] + "→" + d.target.name.split("~$~")[1],
|
|
34056
34007
|
value: getNumberWithFormatFunction(
|
|
34057
34008
|
"None",
|
|
34058
34009
|
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
@@ -34060,7 +34011,9 @@ const SankeyChart = ({
|
|
|
34060
34011
|
)(d.value)
|
|
34061
34012
|
}
|
|
34062
34013
|
],
|
|
34063
|
-
chartFormatOptions
|
|
34014
|
+
chartFormatOptions,
|
|
34015
|
+
void 0,
|
|
34016
|
+
{ markerColor: d.source.color, markerShape: "circle" }
|
|
34064
34017
|
);
|
|
34065
34018
|
}
|
|
34066
34019
|
} catch (error) {
|
|
@@ -49518,7 +49471,9 @@ const Maps = ({
|
|
|
49518
49471
|
},
|
|
49519
49472
|
...keyValueObject
|
|
49520
49473
|
],
|
|
49521
|
-
chartFormatOptions
|
|
49474
|
+
chartFormatOptions,
|
|
49475
|
+
void 0,
|
|
49476
|
+
d.currentTarget.__data__.data.properties
|
|
49522
49477
|
);
|
|
49523
49478
|
}
|
|
49524
49479
|
}).on("mouseout", (event2, d) => {
|
|
@@ -49628,7 +49583,9 @@ const Maps = ({
|
|
|
49628
49583
|
)(d.properties.data?.data[1]?.value)
|
|
49629
49584
|
}
|
|
49630
49585
|
],
|
|
49631
|
-
chartFormatOptions
|
|
49586
|
+
chartFormatOptions,
|
|
49587
|
+
void 0,
|
|
49588
|
+
d.currentTarget.__data__.data.properties
|
|
49632
49589
|
);
|
|
49633
49590
|
select$2(this).style(
|
|
49634
49591
|
"r",
|
|
@@ -52547,7 +52504,8 @@ const BubbleChart = ({
|
|
|
52547
52504
|
maxLegendDimensions[0],
|
|
52548
52505
|
chartTitleHeight,
|
|
52549
52506
|
chartId,
|
|
52550
|
-
margins
|
|
52507
|
+
margins,
|
|
52508
|
+
staticLegendShape.circle
|
|
52551
52509
|
);
|
|
52552
52510
|
} catch (e) {
|
|
52553
52511
|
logError$2("BubbleChart", "initLegendList", e);
|
|
@@ -53602,25 +53560,30 @@ const WaterfallChart = ({
|
|
|
53602
53560
|
barGroups = barGroupsEnter.merge(barGroups);
|
|
53603
53561
|
let rects = barGroups.selectAll("rect").data((d) => d, (d) => d.key || d.Key);
|
|
53604
53562
|
const rectsEnter = rects.enter().append("rect").attr("class", "rect").attr("class", (d) => d.key ? d.key.replace(/ /g, "-") : d.Key.replace(/ /g, "-")).attr("x", (d) => xScale(d.data.dimension || d.data.legend)).attr("y", (d) => d[1] ? yScaleLeft(d[1]) : 0).attr("height", (d) => d[1] ? yScaleLeft(d[0]) - yScaleLeft(d[1]) : 0).attr("width", xScale.bandwidth()).attr("visibility", (d) => k2 === 0 && d.data.dimension && stackTotalData ? "hidden" : "visible").style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
|
|
53605
|
-
|
|
53606
|
-
|
|
53607
|
-
|
|
53608
|
-
|
|
53609
|
-
|
|
53610
|
-
|
|
53611
|
-
|
|
53612
|
-
|
|
53613
|
-
d.key === "
|
|
53614
|
-
|
|
53615
|
-
|
|
53616
|
-
|
|
53617
|
-
|
|
53618
|
-
|
|
53619
|
-
|
|
53620
|
-
|
|
53621
|
-
|
|
53622
|
-
|
|
53623
|
-
|
|
53563
|
+
const markerInfo = {
|
|
53564
|
+
markerShape: "square",
|
|
53565
|
+
markerColor: d.key === "dimensionTotal" ? formatOptions.plotArea.totalColor : d.key === "down" ? formatOptions.plotArea.negativeColor : formatOptions.plotArea.positiveColor
|
|
53566
|
+
};
|
|
53567
|
+
showTooltipOnMouseMove(
|
|
53568
|
+
[
|
|
53569
|
+
{
|
|
53570
|
+
key: formatOptions.yAxisTitle.yAxisTitleText,
|
|
53571
|
+
value: (d.key === "up" ? "+" : d.key === "down" ? "-" : "") + getNumberWithFormat(
|
|
53572
|
+
d.key === "dimensionTotal" ? d.data.dimensionTotal : d[1] - d[0],
|
|
53573
|
+
formatOptions.toolTip.toolTipDisplayUnits,
|
|
53574
|
+
formatOptions.toolTip.toolTipNumberFormat,
|
|
53575
|
+
formatOptions.toolTip.toolTipDecimalPrecision
|
|
53576
|
+
)
|
|
53577
|
+
},
|
|
53578
|
+
{
|
|
53579
|
+
key: "Legend",
|
|
53580
|
+
value: d.Key ? d.Key.includes("~$~") ? d.Key.split("~$~")[1] : d.Key : d.data.legend ? d.data.legend.includes("~$~") ? d.data.legend.split("~$~")[1] : d.data.legend : "Total"
|
|
53581
|
+
}
|
|
53582
|
+
],
|
|
53583
|
+
formatOptions,
|
|
53584
|
+
void 0,
|
|
53585
|
+
markerInfo
|
|
53586
|
+
);
|
|
53624
53587
|
}).on("mouseout", () => {
|
|
53625
53588
|
hideTooltipOnMouseOut();
|
|
53626
53589
|
});
|
|
@@ -54185,14 +54148,19 @@ const TornadoChart = ({
|
|
|
54185
54148
|
...child,
|
|
54186
54149
|
parentProperties: d.properties
|
|
54187
54150
|
}))).enter().append("rect").attr("class", "rect").attr("y", (d) => d.dimension ? yScaleLeft(d.dimension) : yScaleLeft("defaultEntry")).attr("x", (d) => xScale(Math.min(0, d.value))).attr("stroke-dasharray", (d) => d.stackBorderStyle == 2 ? "5,3" : "0").attr("stroke-width", (d) => d.stackBorderWidth + "px").attr("stroke", (d) => d.stackBorderStyle == 0 ? "none" : formatOptions.column.stackBorderVisibility ? d.stackBorderColor : "none").style("shape-rendering", "crispEdges").attr("width", (d) => d.value ? Math.abs(xScale(d.value) - xScale(0)) : 0).attr("height", yScaleLeft.bandwidth()).style("fill", (d) => d.parentProperties.color).attr("opacity", 1).on("mousemove", (event2, d) => {
|
|
54188
|
-
showTooltipOnMouseMove(
|
|
54189
|
-
|
|
54190
|
-
|
|
54191
|
-
|
|
54192
|
-
|
|
54193
|
-
|
|
54194
|
-
|
|
54195
|
-
|
|
54151
|
+
showTooltipOnMouseMove(
|
|
54152
|
+
[
|
|
54153
|
+
{ key: "Measure", value: d.legend },
|
|
54154
|
+
{ key: "Legend", value: d.dimension },
|
|
54155
|
+
{
|
|
54156
|
+
key: "Value",
|
|
54157
|
+
value: d.value < 0 ? getNumberWithFormat(-d.value, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, true) : getNumberWithFormat(d.value, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, true)
|
|
54158
|
+
}
|
|
54159
|
+
],
|
|
54160
|
+
formatOptions,
|
|
54161
|
+
void 0,
|
|
54162
|
+
d.currentTarget.__data__.data.properties
|
|
54163
|
+
);
|
|
54196
54164
|
}).on("mouseout", () => {
|
|
54197
54165
|
hideTooltipOnMouseOut();
|
|
54198
54166
|
});
|
|
@@ -54317,11 +54285,11 @@ export {
|
|
|
54317
54285
|
AreaChart,
|
|
54318
54286
|
BubbleChart,
|
|
54319
54287
|
ColumnChart,
|
|
54320
|
-
ColumnHistogramChart
|
|
54288
|
+
ColumnHistogramChart,
|
|
54321
54289
|
CustomColumnChart,
|
|
54322
54290
|
DonutChart,
|
|
54323
54291
|
HorizontalBarChart,
|
|
54324
|
-
|
|
54292
|
+
HorizontalHistogramChart,
|
|
54325
54293
|
LayeredColumnChart,
|
|
54326
54294
|
LayeredHorizontalBarChart,
|
|
54327
54295
|
LineChart,
|