pace-chart-lib 1.0.65 → 1.0.67
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 +226 -115
- package/dist/pace-chart-lib.umd.js +226 -115
- package/package.json +1 -1
- package/dist/Components/Charts/ChartJS/charts/CJSAreaChart.d.ts +0 -19
- package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +0 -17
- package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +0 -19
- package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +0 -19
- package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +0 -18
- package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +0 -19
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +0 -17
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +0 -17
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +0 -17
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +0 -17
- package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +0 -23
- package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +0 -19
- package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +0 -16
- package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +0 -15
- package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +0 -31
- package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +0 -9
- package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +0 -27
- package/dist/Components/Charts/ChartJS/index.d.ts +0 -21
- 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 -638
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -172
- 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/DotPlot.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 -96
- 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 -410
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +0 -250
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +0 -66
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +0 -630
- package/dist/Services/ErrorLog.d.ts +0 -1
- package/dist/index.d.ts +0 -37
|
@@ -13100,7 +13100,7 @@
|
|
|
13100
13100
|
let object2 = svg.append("foreignObject").attr(
|
|
13101
13101
|
"visibility",
|
|
13102
13102
|
formatOptions.chartTitle.chartTitleVisibility ? "visible" : "hidden"
|
|
13103
|
-
).attr("transform", `translate(2,2)`).attr("class", "chartTitle").attr("width", width).attr("height", chartTitleHeight + "px");
|
|
13103
|
+
).attr("transform", `translate(2,2)`).attr("class", "chartTitle").attr("width", width - 4).attr("height", chartTitleHeight + "px");
|
|
13104
13104
|
const parseHTMLText = (html) => {
|
|
13105
13105
|
const temp = document.createElement("div");
|
|
13106
13106
|
temp.innerHTML = html;
|
|
@@ -13596,16 +13596,42 @@
|
|
|
13596
13596
|
const duration = formatOptions.animation.animationDuration;
|
|
13597
13597
|
const ease = effectsMap[formatOptions.animation.animationEffect];
|
|
13598
13598
|
const accessors = makeAnnotations.accessors();
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
const
|
|
13602
|
-
const
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13599
|
+
const isLineChartType = chartType === chartTypes.LineChart;
|
|
13600
|
+
if (isLineChartType) {
|
|
13601
|
+
const xRange = xScale.range ? xScale.range() : [0, 1];
|
|
13602
|
+
const xRangeMin = Math.min(xRange[0], xRange[1]);
|
|
13603
|
+
const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
|
|
13604
|
+
const invertEase = (progress, steps = 100) => {
|
|
13605
|
+
for (let i = 0; i <= steps; i++) {
|
|
13606
|
+
const t = i / steps;
|
|
13607
|
+
if ((ease ?? linear$2)(t) >= progress) return t;
|
|
13608
|
+
}
|
|
13609
|
+
return 1;
|
|
13610
|
+
};
|
|
13611
|
+
annotations.selectAll(".annotation").attr("opacity", 0).each(function(d) {
|
|
13612
|
+
const x2 = accessors.x(d.data) ?? xRangeMin;
|
|
13613
|
+
const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
|
|
13614
|
+
const delay = invertEase(fraction) * duration;
|
|
13615
|
+
select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
|
|
13616
|
+
});
|
|
13617
|
+
} else {
|
|
13618
|
+
annotations.selectAll(".annotation").attr("transform", function(d) {
|
|
13619
|
+
if (barChart) {
|
|
13620
|
+
const startX = yScaleLeft ? yScaleLeft(0) : 0;
|
|
13621
|
+
const y2 = accessors.y(d.data);
|
|
13622
|
+
return `translate(${startX}, ${y2})`;
|
|
13623
|
+
} else {
|
|
13624
|
+
const x2 = accessors.x(d.data);
|
|
13625
|
+
const scale2 = d.data?.y?.axis === axisTypes.primary ? yScaleLeft : yScaleRight ?? yScaleLeft;
|
|
13626
|
+
const startY = scale2 ? scale2(0) : 0;
|
|
13627
|
+
return `translate(${x2}, ${startY})`;
|
|
13628
|
+
}
|
|
13629
|
+
}).transition().duration(duration).ease(ease).attr("transform", function(d) {
|
|
13630
|
+
const x2 = accessors.x(d.data);
|
|
13631
|
+
const y2 = accessors.y(d.data);
|
|
13632
|
+
return `translate(${x2}, ${y2})`;
|
|
13633
|
+
});
|
|
13634
|
+
}
|
|
13609
13635
|
}
|
|
13610
13636
|
}
|
|
13611
13637
|
} catch (error) {
|
|
@@ -15563,16 +15589,41 @@
|
|
|
15563
15589
|
const duration = formatOptions.animation.animationDuration;
|
|
15564
15590
|
const ease = effectsMap[formatOptions.animation.animationEffect];
|
|
15565
15591
|
const accessors = makeAnnotations.accessors();
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
const
|
|
15569
|
-
const
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15592
|
+
const isStackLineType = chartType === chartTypes.StackLineChart || chartType === chartTypes.NormalizedStackLineChart;
|
|
15593
|
+
if (isStackLineType) {
|
|
15594
|
+
const xRange = xScale.range ? xScale.range() : [0, 1];
|
|
15595
|
+
const xRangeMin = Math.min(xRange[0], xRange[1]);
|
|
15596
|
+
const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
|
|
15597
|
+
const invertEase = (progress, steps = 100) => {
|
|
15598
|
+
for (let i = 0; i <= steps; i++) {
|
|
15599
|
+
const t = i / steps;
|
|
15600
|
+
if ((ease ?? linear$2)(t) >= progress) return t;
|
|
15601
|
+
}
|
|
15602
|
+
return 1;
|
|
15603
|
+
};
|
|
15604
|
+
annotations.selectAll(".annotation").attr("opacity", 0).each(function(d) {
|
|
15605
|
+
const x2 = accessors.x(d.data) ?? xRangeMin;
|
|
15606
|
+
const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
|
|
15607
|
+
const delay = invertEase(fraction) * duration;
|
|
15608
|
+
select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
|
|
15609
|
+
});
|
|
15610
|
+
} else {
|
|
15611
|
+
annotations.selectAll(".annotation").attr("transform", function(d) {
|
|
15612
|
+
if (barChart) {
|
|
15613
|
+
const startX = yScaleLeft ? yScaleLeft(0) : 0;
|
|
15614
|
+
const y2 = accessors.y(d.data);
|
|
15615
|
+
return `translate(${startX}, ${y2})`;
|
|
15616
|
+
} else {
|
|
15617
|
+
const x2 = accessors.x(d.data);
|
|
15618
|
+
const startY = yScaleLeft ? yScaleLeft(0) : 0;
|
|
15619
|
+
return `translate(${x2}, ${startY})`;
|
|
15620
|
+
}
|
|
15621
|
+
}).transition().duration(duration).ease(ease).attr("transform", function(d) {
|
|
15622
|
+
const x2 = accessors.x(d.data);
|
|
15623
|
+
const y2 = accessors.y(d.data);
|
|
15624
|
+
return `translate(${x2}, ${y2})`;
|
|
15625
|
+
});
|
|
15626
|
+
}
|
|
15576
15627
|
}
|
|
15577
15628
|
}
|
|
15578
15629
|
} catch (error) {
|
|
@@ -16396,22 +16447,44 @@
|
|
|
16396
16447
|
if (formatOptions.animation.animationEnabled) {
|
|
16397
16448
|
const duration = formatOptions.animation.animationDuration;
|
|
16398
16449
|
const ease = effectsMap[formatOptions.animation.animationEffect] ?? linear$2;
|
|
16399
|
-
const
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16450
|
+
const isAreaType = [
|
|
16451
|
+
chartTypes.AreaChart,
|
|
16452
|
+
chartTypes.StackAreaChart,
|
|
16453
|
+
chartTypes.NormalizedStackAreaChart,
|
|
16454
|
+
chartTypes.CombinationArea,
|
|
16455
|
+
chartTypes.CombinationStackArea
|
|
16456
|
+
].includes(type);
|
|
16457
|
+
if (isAreaType) {
|
|
16458
|
+
const stackedTypes = [
|
|
16459
|
+
chartTypes.StackAreaChart,
|
|
16460
|
+
chartTypes.NormalizedStackAreaChart,
|
|
16461
|
+
chartTypes.CombinationStackArea
|
|
16462
|
+
];
|
|
16463
|
+
mergedMarkers.each(function(d) {
|
|
16464
|
+
const requiredYScale = d.axis === axisTypes.primary ? yScale : yScaleRight;
|
|
16465
|
+
const x2 = xScale(d.dimension);
|
|
16466
|
+
const finalY = stackedTypes.includes(type) ? d[1] > 0 ? requiredYScale(d[1]) : requiredYScale(d[0]) : requiredYScale(d.value);
|
|
16467
|
+
const baseY = yScale(0);
|
|
16468
|
+
select$2(this).attr("transform", `translate(${x2},${baseY})`).transition().duration(duration).ease(ease).attr("transform", `translate(${x2},${finalY})`);
|
|
16469
|
+
});
|
|
16470
|
+
} else {
|
|
16471
|
+
const xRange = xScale.range();
|
|
16472
|
+
const xRangeMin = Math.min(xRange[0], xRange[1]);
|
|
16473
|
+
const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
|
|
16474
|
+
const invertEase = (progress, steps = 100) => {
|
|
16475
|
+
for (let i = 0; i <= steps; i++) {
|
|
16476
|
+
const t = i / steps;
|
|
16477
|
+
if (ease(t) >= progress) return t;
|
|
16478
|
+
}
|
|
16479
|
+
return 1;
|
|
16480
|
+
};
|
|
16481
|
+
mergedMarkers.attr("opacity", 0).each(function(d) {
|
|
16482
|
+
const x2 = xScale(d.dimension) ?? xRangeMin;
|
|
16483
|
+
const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
|
|
16484
|
+
const delay = invertEase(fraction) * duration;
|
|
16485
|
+
select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
|
|
16486
|
+
});
|
|
16487
|
+
}
|
|
16415
16488
|
}
|
|
16416
16489
|
});
|
|
16417
16490
|
} catch (error) {
|
|
@@ -18045,7 +18118,6 @@
|
|
|
18045
18118
|
let requiredData = [];
|
|
18046
18119
|
let scrollPosition = 0;
|
|
18047
18120
|
let visibleBars;
|
|
18048
|
-
let annotationTimeoutId;
|
|
18049
18121
|
let chartJSON = {
|
|
18050
18122
|
dimensionList,
|
|
18051
18123
|
chartType,
|
|
@@ -18983,7 +19055,6 @@
|
|
|
18983
19055
|
filteredDimension,
|
|
18984
19056
|
xScale
|
|
18985
19057
|
);
|
|
18986
|
-
clearTimeout(annotationTimeoutId);
|
|
18987
19058
|
const renderAnnotationsAndTotals = () => {
|
|
18988
19059
|
commonAnnotationsForCustomChart(
|
|
18989
19060
|
filteredData,
|
|
@@ -19028,15 +19099,8 @@
|
|
|
19028
19099
|
isReportEditable
|
|
19029
19100
|
);
|
|
19030
19101
|
};
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
annotationTimeoutId = setTimeout(
|
|
19034
|
-
renderAnnotationsAndTotals,
|
|
19035
|
-
formatOptions.animation.animationDuration
|
|
19036
|
-
);
|
|
19037
|
-
} else {
|
|
19038
|
-
renderAnnotationsAndTotals();
|
|
19039
|
-
}
|
|
19102
|
+
svg.selectAll(".annotation-group").remove();
|
|
19103
|
+
renderAnnotationsAndTotals();
|
|
19040
19104
|
};
|
|
19041
19105
|
const createStackData = (requiredStackChatData) => {
|
|
19042
19106
|
let legendList = requiredStackChatData.data.map((d) => d.legend);
|
|
@@ -21003,19 +21067,20 @@
|
|
|
21003
21067
|
let maxLegendWidth = maxLegendDimensions[0];
|
|
21004
21068
|
let legendMargin = width15Percent < maxLegendWidth + 10 ? width15Percent : maxLegendWidth + 10;
|
|
21005
21069
|
let totalHeight = formatOptions.plotArea.numberOfBubbles ? 20 : 0;
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
21014
|
-
|
|
21070
|
+
const maxDim = getNumberWithFormatFunction(
|
|
21071
|
+
formatOptions.xAxisLabel.xAxisDisplayUnits,
|
|
21072
|
+
formatOptions.xAxisLabel.xAxisNumberFormat,
|
|
21073
|
+
formatOptions.xAxisLabel.xAxisLabelDecimalPrecision ?? "2"
|
|
21074
|
+
)(
|
|
21075
|
+
maxDimension
|
|
21076
|
+
).toString();
|
|
21077
|
+
let dimensionHeightWidth = calculateWidthHeightDynamically(
|
|
21078
|
+
maxDim,
|
|
21079
|
+
formatOptions.xAxisLabel.xAxisLabelFontSize,
|
|
21015
21080
|
formatOptions.xAxisLabel.xAxisLabelFontFamily,
|
|
21016
21081
|
formatOptions.xAxisLabel.xAxisLabelRotation
|
|
21017
21082
|
);
|
|
21018
|
-
let maxDimensionWidth = dimensionHeightWidth
|
|
21083
|
+
let maxDimensionWidth = dimensionHeightWidth[3] + 10;
|
|
21019
21084
|
let xTitle = formatOptions.xAxisTitle.xAxisTitleVisibility ? formatOptions.xAxisTitle.xAxisDynamicTitleText.length !== 0 ? preCalculateTextDimensions(
|
|
21020
21085
|
formatOptions.xAxisTitle.xAxisTitleHTML,
|
|
21021
21086
|
void 0,
|
|
@@ -27360,7 +27425,7 @@
|
|
|
27360
27425
|
});
|
|
27361
27426
|
areaGroupsEnter.merge(areaGroups).each(function(d) {
|
|
27362
27427
|
const g = select$2(this);
|
|
27363
|
-
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2.data)).attr(
|
|
27428
|
+
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => enableTransition ? areaGeneratorStart(d2.data) : areaGenerator(d2.data)).attr(
|
|
27364
27429
|
"stroke",
|
|
27365
27430
|
(d2) => d2.properties.areaBorderColor !== commonColors.white ? d2.properties.areaBorderColor : "none"
|
|
27366
27431
|
).attr("stroke-dasharray", (d2) => {
|
|
@@ -27379,7 +27444,11 @@
|
|
|
27379
27444
|
).attr(
|
|
27380
27445
|
"stroke-width",
|
|
27381
27446
|
(d2) => !isLinesAndMarkersVisible ? 0 : d2.properties.lineStyle !== staticLineStyle.none && formatOptions.plotArea.plotAreaHideLineAndMarkers ? d2.properties.lineWidth : "0"
|
|
27382
|
-
).attr("fill", "none")
|
|
27447
|
+
).attr("fill", "none").each(function(d2) {
|
|
27448
|
+
if (enableTransition) {
|
|
27449
|
+
select$2(this).transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]).attr("d", areaGenerator(d2.data));
|
|
27450
|
+
}
|
|
27451
|
+
});
|
|
27383
27452
|
g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => areaGenerator(d2.data)).attr("fill", commonColors.transparent).attr("stroke", "none").style("pointer-events", "all").raise();
|
|
27384
27453
|
onHoverMarkerForAreaChartFamily(
|
|
27385
27454
|
formatOptions,
|
|
@@ -27913,7 +27982,7 @@
|
|
|
27913
27982
|
});
|
|
27914
27983
|
areaGroupsEnter.merge(areaGroups).each(function(d, i) {
|
|
27915
27984
|
const g = select$2(this);
|
|
27916
|
-
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2)).attr(
|
|
27985
|
+
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => enableTransition ? areaGeneratorStart(d2) : areaGenerator(d2)).attr(
|
|
27917
27986
|
"stroke",
|
|
27918
27987
|
(d2) => d2.color !== commonColors.white ? seriesData[i].properties.areaBorderColor : "none"
|
|
27919
27988
|
).attr("stroke-dasharray", (d2) => {
|
|
@@ -27934,7 +28003,11 @@
|
|
|
27934
28003
|
).attr(
|
|
27935
28004
|
"stroke-width",
|
|
27936
28005
|
() => !isLinesAndMarkersVisible ? 0 : seriesData[i].properties.lineStyle !== staticLineStyle.none ? seriesData[i].properties.lineWidth : "0"
|
|
27937
|
-
).attr("fill", "none").style("pointer-events", "none")
|
|
28006
|
+
).attr("fill", "none").style("pointer-events", "none").each(function(d2) {
|
|
28007
|
+
if (enableTransition) {
|
|
28008
|
+
select$2(this).transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]).attr("d", areaGenerator(d2));
|
|
28009
|
+
}
|
|
28010
|
+
});
|
|
27938
28011
|
g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => areaGenerator(d2)).attr("fill", commonColors.transparent).attr("stroke", "none").style("pointer-events", "all").raise();
|
|
27939
28012
|
svg.selectAll(
|
|
27940
28013
|
'[hoverId="' + (seriesData[d.index].properties.alias || seriesData[d.index].properties.name || "Legend").replace(/ /g, "-") + '"]'
|
|
@@ -28461,7 +28534,7 @@
|
|
|
28461
28534
|
).y0((d) => yScaleLeft(d[0])).y1((d) => yScaleLeft(d[1])).defined((d) => d.data.hideZero ? Boolean(d[0]) : true).curve(curveLinear$1);
|
|
28462
28535
|
const columnGeneratorStart = area().x(
|
|
28463
28536
|
(d) => xScale(d.data.dimension) ? xScale(d.data.dimension) : null
|
|
28464
|
-
).y0((
|
|
28537
|
+
).y0(() => yScaleLeft(0)).y1(() => yScaleLeft(0)).defined(
|
|
28465
28538
|
(d) => d.data.hideZero ? Boolean(d.data.key) : true
|
|
28466
28539
|
).curve(getCurveType(formatOptions));
|
|
28467
28540
|
let areas = gTag.selectAll(".lineGroup").data([stackChartData]);
|
|
@@ -28482,7 +28555,7 @@
|
|
|
28482
28555
|
});
|
|
28483
28556
|
areaGroupsEnter.merge(areaGroups).each(function(d, i) {
|
|
28484
28557
|
const g = select$2(this);
|
|
28485
|
-
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => columnGenerator(d2)).attr(
|
|
28558
|
+
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => enableTransition ? columnGeneratorStart(d2) : columnGenerator(d2)).attr(
|
|
28486
28559
|
"stroke",
|
|
28487
28560
|
(d2) => d2.color !== commonColors.white ? seriesData[i].properties.areaBorderColor : "none"
|
|
28488
28561
|
).attr("stroke-dasharray", (d2) => {
|
|
@@ -28503,7 +28576,11 @@
|
|
|
28503
28576
|
).attr(
|
|
28504
28577
|
"stroke-width",
|
|
28505
28578
|
() => !isLinesAndMarkersVisible ? 0 : seriesData[i].properties.lineStyle !== staticLineStyle.none ? seriesData[i].properties.lineWidth : "0"
|
|
28506
|
-
).attr("fill", "none").style("pointer-events", "none")
|
|
28579
|
+
).attr("fill", "none").style("pointer-events", "none").each(function(d2) {
|
|
28580
|
+
if (enableTransition) {
|
|
28581
|
+
select$2(this).transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]).attr("d", columnGenerator(d2));
|
|
28582
|
+
}
|
|
28583
|
+
});
|
|
28507
28584
|
g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => columnGenerator(d2)).attr("fill", commonColors.transparent).style("pointer-events", "all").raise();
|
|
28508
28585
|
svg.selectAll(
|
|
28509
28586
|
'[hoverId="' + getJQuerySelector(
|
|
@@ -28996,7 +29073,7 @@
|
|
|
28996
29073
|
try {
|
|
28997
29074
|
if (chartFormatOptions.plotArea.dataLabels) {
|
|
28998
29075
|
const isSingleDataLabel = pieChartData && pieChartData.length === 1;
|
|
28999
|
-
chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29076
|
+
chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29000
29077
|
applyAnnotationRangeFilter(
|
|
29001
29078
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
|
|
29002
29079
|
chartFormatOptions,
|
|
@@ -29035,7 +29112,7 @@
|
|
|
29035
29112
|
}
|
|
29036
29113
|
return "";
|
|
29037
29114
|
});
|
|
29038
|
-
chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29115
|
+
chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29039
29116
|
applyAnnotationRangeFilter(
|
|
29040
29117
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
|
|
29041
29118
|
chartFormatOptions,
|
|
@@ -29105,13 +29182,13 @@
|
|
|
29105
29182
|
});
|
|
29106
29183
|
let outerRadius = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0).outerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0);
|
|
29107
29184
|
let innerRadius = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 2 ? d.y0 : 0).outerRadius((d) => d.y1 + radius / 1.5);
|
|
29108
|
-
chartAreaTagG.selectAll("polyline").data(
|
|
29185
|
+
chartAreaTagG.selectAll("polyline.pie-label-connector").data(
|
|
29109
29186
|
applyAnnotationRangeFilter(
|
|
29110
29187
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
|
|
29111
29188
|
chartFormatOptions,
|
|
29112
29189
|
(d) => d.data.data[0].value
|
|
29113
29190
|
)
|
|
29114
|
-
).join("polyline").attr("transform", getPiePosition()).style(
|
|
29191
|
+
).join("polyline").attr("class", "pie-label-connector").attr("transform", getPiePosition()).style(
|
|
29115
29192
|
"stroke",
|
|
29116
29193
|
(d) => chartFormatOptions.connector.connectorColorOption == "Uniform" ? chartFormatOptions.connector.connectorUniformLineColor : d.data.properties.color
|
|
29117
29194
|
).style("fill", "none").style(
|
|
@@ -29129,7 +29206,7 @@
|
|
|
29129
29206
|
const yC = posB[1];
|
|
29130
29207
|
return [posA, posB, [xC, yC]].map((point2) => point2.join(",")).join(" ");
|
|
29131
29208
|
});
|
|
29132
|
-
chartAreaTagG.append("g").attr("transform", getPiePosition()).selectAll("foreignObject").data(
|
|
29209
|
+
chartAreaTagG.append("g").attr("class", "pie-label-group").attr("transform", getPiePosition()).selectAll("foreignObject").data(
|
|
29133
29210
|
applyAnnotationRangeFilter(
|
|
29134
29211
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
|
|
29135
29212
|
chartFormatOptions,
|
|
@@ -29196,6 +29273,9 @@
|
|
|
29196
29273
|
}
|
|
29197
29274
|
return htmlString;
|
|
29198
29275
|
});
|
|
29276
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
29277
|
+
chartAreaTagG.selectAll(".pie-label-group, .pie-label-connector").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
29278
|
+
}
|
|
29199
29279
|
}
|
|
29200
29280
|
} catch (error) {
|
|
29201
29281
|
logError$2(fileName$8, "drawPieDataLabels", error);
|
|
@@ -29441,7 +29521,7 @@
|
|
|
29441
29521
|
try {
|
|
29442
29522
|
if (chartFormatOptions.plotArea.dataLabels) {
|
|
29443
29523
|
const isSingleDataLabel = pieChartData && pieChartData.length === 1;
|
|
29444
|
-
chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29524
|
+
chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29445
29525
|
applyAnnotationRangeFilter(
|
|
29446
29526
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
|
|
29447
29527
|
chartFormatOptions,
|
|
@@ -29480,7 +29560,7 @@
|
|
|
29480
29560
|
}
|
|
29481
29561
|
return "";
|
|
29482
29562
|
});
|
|
29483
|
-
chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29563
|
+
chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
|
|
29484
29564
|
applyAnnotationRangeFilter(
|
|
29485
29565
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
|
|
29486
29566
|
chartFormatOptions,
|
|
@@ -29556,13 +29636,13 @@
|
|
|
29556
29636
|
});
|
|
29557
29637
|
let outerRadius = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0).outerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0);
|
|
29558
29638
|
let innerRadius2 = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 2 ? d.y0 : 0).outerRadius((d) => d.y1 + radius / 1.5);
|
|
29559
|
-
chartAreaTagG.selectAll("polyline").data(
|
|
29639
|
+
chartAreaTagG.selectAll("polyline.pie-label-connector").data(
|
|
29560
29640
|
applyAnnotationRangeFilter(
|
|
29561
29641
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
|
|
29562
29642
|
chartFormatOptions,
|
|
29563
29643
|
(d) => d.data.data[0].value
|
|
29564
29644
|
)
|
|
29565
|
-
).join("polyline").attr("transform", getPiePosition()).style(
|
|
29645
|
+
).join("polyline").attr("class", "pie-label-connector").attr("transform", getPiePosition()).style(
|
|
29566
29646
|
"stroke",
|
|
29567
29647
|
(d) => chartFormatOptions.connector.connectorColorOption == "Uniform" ? chartFormatOptions.connector.connectorUniformLineColor : d.data.properties.color
|
|
29568
29648
|
).style("fill", "none").style(
|
|
@@ -29580,7 +29660,7 @@
|
|
|
29580
29660
|
const yC = posB[1];
|
|
29581
29661
|
return [posA, posB, [xC, yC]].map((point2) => point2.join(",")).join(" ");
|
|
29582
29662
|
});
|
|
29583
|
-
chartAreaTagG.append("g").attr("transform", getPiePosition()).selectAll("foreignObject").data(
|
|
29663
|
+
chartAreaTagG.append("g").attr("class", "pie-label-group").attr("transform", getPiePosition()).selectAll("foreignObject").data(
|
|
29584
29664
|
applyAnnotationRangeFilter(
|
|
29585
29665
|
pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
|
|
29586
29666
|
chartFormatOptions,
|
|
@@ -29658,6 +29738,9 @@
|
|
|
29658
29738
|
return "";
|
|
29659
29739
|
}
|
|
29660
29740
|
});
|
|
29741
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
29742
|
+
chartAreaTagG.selectAll(".pie-label-group, .pie-label-connector").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
29743
|
+
}
|
|
29661
29744
|
}
|
|
29662
29745
|
} catch (error) {
|
|
29663
29746
|
logError$2(fileName$7, "drawDonutDataLabels", error);
|
|
@@ -29924,6 +30007,9 @@
|
|
|
29924
30007
|
)(d.data.data[0].value)
|
|
29925
30008
|
);
|
|
29926
30009
|
}
|
|
30010
|
+
if (shouldAnimate) {
|
|
30011
|
+
leaf.selectAll("text").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
30012
|
+
}
|
|
29927
30013
|
}
|
|
29928
30014
|
} catch (error) {
|
|
29929
30015
|
logError$2(fileName$6, "initChartRect", error);
|
|
@@ -30609,6 +30695,9 @@
|
|
|
30609
30695
|
}
|
|
30610
30696
|
}).notePadding(0).annotations(finalAnnotationList);
|
|
30611
30697
|
let annotations = chartAreaTagG.append("g").attr("class", "annotation-group parentGroup").call(makeAnnotations);
|
|
30698
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
30699
|
+
annotations.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
30700
|
+
}
|
|
30612
30701
|
annotations.selectAll("rect").style("visibility", "hidden");
|
|
30613
30702
|
annotations.selectAll(".annotation-subject").remove();
|
|
30614
30703
|
annotations.selectAll(".connector").style(
|
|
@@ -30980,7 +31069,7 @@
|
|
|
30980
31069
|
return () => "";
|
|
30981
31070
|
}
|
|
30982
31071
|
});
|
|
30983
|
-
chartAreaTagG.append("text").attr("transform", getTransformString()).attr("dy", "0.35em").attr("text-anchor", "middle").attr(
|
|
31072
|
+
const centerLabel = chartAreaTagG.append("text").attr("transform", getTransformString()).attr("dy", "0.35em").attr("text-anchor", "middle").attr(
|
|
30984
31073
|
"visibility",
|
|
30985
31074
|
() => {
|
|
30986
31075
|
if (!chartFormatOptions.plotArea.dataLabels) return "hidden";
|
|
@@ -31013,6 +31102,9 @@
|
|
|
31013
31102
|
chartFormatOptions.plotArea.dataLabelDecimalPrecision
|
|
31014
31103
|
)(progressValue);
|
|
31015
31104
|
});
|
|
31105
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
31106
|
+
centerLabel.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
31107
|
+
}
|
|
31016
31108
|
} catch (error) {
|
|
31017
31109
|
logError$2(fileName$3, "drawProgressChart", error);
|
|
31018
31110
|
}
|
|
@@ -31334,6 +31426,9 @@
|
|
|
31334
31426
|
chartFormatOptions.plotArea.dataLabelDecimalPrecision
|
|
31335
31427
|
)(d)
|
|
31336
31428
|
).attr("visibility", (d) => d === "" ? "hidden" : "visible");
|
|
31429
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
31430
|
+
lg.selectAll("text").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
31431
|
+
}
|
|
31337
31432
|
}
|
|
31338
31433
|
if (chartFormatOptions.pointerValue.showPointerValue && seriesData.length === 2) {
|
|
31339
31434
|
setPointerValueText(positionTransformString);
|
|
@@ -31802,7 +31897,8 @@
|
|
|
31802
31897
|
chartFormatOptions,
|
|
31803
31898
|
(d) => d?.data?.[0]?.value ?? 0
|
|
31804
31899
|
);
|
|
31805
|
-
svg2.selectAll(".arc-label-" + chartId).data(labelsData).enter().append("text").attr("class", "arc-label-" + chartId).attr("class", "parentGroup").attr("text-anchor", "start").attr("dy", (d, i) => (getOuterRadius(d.index ?? i) - getInnerRadius(d.index ?? i)) / 1.75)
|
|
31900
|
+
const arcLabelTexts = svg2.selectAll(".arc-label-" + chartId).data(labelsData).enter().append("text").attr("class", "arc-label-" + chartId).attr("class", "parentGroup").attr("text-anchor", "start").attr("dy", (d, i) => (getOuterRadius(d.index ?? i) - getInnerRadius(d.index ?? i)) / 1.75);
|
|
31901
|
+
arcLabelTexts.append("textPath").attr("xlink:href", (d, i) => `#arc-path-${d.index ?? i}-` + chartId).style("startOffset", "50%").attr("hoverId", (d) => d.legend.replaceAll(" ", "-")).text(
|
|
31806
31902
|
(d) => ` ${d.properties.alias}
|
|
31807
31903
|
${chartFormatOptions.plotArea.dataLabelValue ? getNumberWithFormatFunction(
|
|
31808
31904
|
chartFormatOptions.plotArea.plotAreaDisplayUnits,
|
|
@@ -31845,6 +31941,9 @@
|
|
|
31845
31941
|
}).on("mouseout", () => {
|
|
31846
31942
|
hideTooltipOnMouseOut();
|
|
31847
31943
|
});
|
|
31944
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
31945
|
+
arcLabelTexts.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
31946
|
+
}
|
|
31848
31947
|
arcs.each((d, i) => {
|
|
31849
31948
|
svg2.append("path").attr("id", `arc-path-${i}-` + chartId).attr("d", dummyArc(d, i)).attr("fill", "none").attr("stroke", "none");
|
|
31850
31949
|
});
|
|
@@ -54346,6 +54445,7 @@
|
|
|
54346
54445
|
};
|
|
54347
54446
|
const dataPreparation = () => {
|
|
54348
54447
|
try {
|
|
54448
|
+
const sortType = formatOptions?.plotArea?.sortBy ?? "default";
|
|
54349
54449
|
chartDirection = chartFormatOptions.plotArea.chartDirection || orgChartDirection.left;
|
|
54350
54450
|
var sum2 = 0;
|
|
54351
54451
|
var absoluteSum = 0;
|
|
@@ -54356,12 +54456,17 @@
|
|
|
54356
54456
|
let tempData = getFlattenedData(rootNode).filter(
|
|
54357
54457
|
(data2) => data2.value !== null
|
|
54358
54458
|
);
|
|
54459
|
+
if (sortType !== "default") {
|
|
54460
|
+
tempData = tempData.sort(
|
|
54461
|
+
(a2, b) => sortType === "asc" ? a2.value - b.value : b.value - a2.value
|
|
54462
|
+
);
|
|
54463
|
+
}
|
|
54359
54464
|
createIdIndexMap(tempData);
|
|
54360
54465
|
generateUID(tempData);
|
|
54361
54466
|
chartData = addStyleObjectToChartData(tempData);
|
|
54362
54467
|
if (chartFormatOptions.heatMap.showHeatMap) {
|
|
54363
54468
|
heatMapScale = sequential().domain([minMeasure, maxMeasure]).interpolator(
|
|
54364
|
-
interpolateRgb$1(chartFormatOptions.heatMap.
|
|
54469
|
+
interpolateRgb$1(chartFormatOptions.heatMap.heatMapMinColor, chartFormatOptions.heatMap.heatMapMaxColor)
|
|
54365
54470
|
);
|
|
54366
54471
|
}
|
|
54367
54472
|
} catch (error) {
|
|
@@ -55386,6 +55491,15 @@
|
|
|
55386
55491
|
));
|
|
55387
55492
|
initSvg(svgRef, width, height, chartFormatOptions);
|
|
55388
55493
|
chartAreaTagG = initChartArea(svg, margins);
|
|
55494
|
+
initPlotArea(
|
|
55495
|
+
chartAreaTagG,
|
|
55496
|
+
formatOptions,
|
|
55497
|
+
0,
|
|
55498
|
+
innerWidth2,
|
|
55499
|
+
innerHeight2,
|
|
55500
|
+
"Scatter",
|
|
55501
|
+
chartId
|
|
55502
|
+
);
|
|
55389
55503
|
drawChartTitle(svgRef, chartTitleHeight, width, chartFormatOptions);
|
|
55390
55504
|
initScale();
|
|
55391
55505
|
drawXAxis();
|
|
@@ -55532,11 +55646,8 @@
|
|
|
55532
55646
|
};
|
|
55533
55647
|
const initScale = () => {
|
|
55534
55648
|
try {
|
|
55535
|
-
let xStartValue = chartFormatOptions.xAxisLabel.xAxisIntervalsVisibility && chartFormatOptions.xAxisLabel.xAxisMinText !== "" ? parseFloat(chartFormatOptions.xAxisLabel.xAxisMinText) : minDimension > 0 ? 0 : minDimension * 1.1;
|
|
55536
|
-
let xEndValue = chartFormatOptions.xAxisLabel.xAxisIntervalsVisibility && chartFormatOptions.xAxisLabel.xAxisMaxText !== "" ? parseFloat(chartFormatOptions.xAxisLabel.xAxisMaxText) : maxDimension * 1.1;
|
|
55537
55649
|
let yStartValue = chartFormatOptions.yAxisLabel.yAxisIntervalsVisibility && chartFormatOptions.yAxisLabel.yAxisMinText !== "" ? parseFloat(chartFormatOptions.yAxisLabel.yAxisMinText) : minMeasure > 0 ? 0 : minMeasure * 1.1;
|
|
55538
55650
|
let yEndValue = chartFormatOptions.yAxisLabel.yAxisIntervalsVisibility && chartFormatOptions.yAxisLabel.yAxisMaxText !== "" ? parseFloat(chartFormatOptions.yAxisLabel.yAxisMaxText) : maxMeasure * 1.1;
|
|
55539
|
-
xScale = linear$1().domain([xStartValue, xEndValue]).range([0, innerWidth2]);
|
|
55540
55651
|
yScale = linear$1().domain([yStartValue, yEndValue]).range([innerHeight2, 0]);
|
|
55541
55652
|
sizeScale = linear$1().domain([sizeValueMin, sizeValueMax]).range([1, 10]);
|
|
55542
55653
|
} catch (e) {
|
|
@@ -55545,6 +55656,8 @@
|
|
|
55545
55656
|
};
|
|
55546
55657
|
const drawXAxis = () => {
|
|
55547
55658
|
try {
|
|
55659
|
+
const tickHeightPercentage = parseFloat(formatOptions.plotArea.ticksHeight) || 100;
|
|
55660
|
+
const tickSize = tickHeightPercentage / 100 * innerHeight2;
|
|
55548
55661
|
let { xAxisLabelArray, customTickValue } = responsiveXaxisLabelForNumericValue(
|
|
55549
55662
|
maxDimension,
|
|
55550
55663
|
minDimension,
|
|
@@ -55555,6 +55668,11 @@
|
|
|
55555
55668
|
innerHeight2,
|
|
55556
55669
|
false
|
|
55557
55670
|
);
|
|
55671
|
+
if (xAxisLabelArray.length > 0) {
|
|
55672
|
+
xScale = linear$1().domain([xAxisLabelArray[0], xAxisLabelArray[xAxisLabelArray.length - 1]]).range([0, innerWidth2]);
|
|
55673
|
+
} else {
|
|
55674
|
+
xScale = linear$1().domain([customXaxisMinValue, customXaxisMaxValue]).range([0, innerWidth2]);
|
|
55675
|
+
}
|
|
55558
55676
|
const xAxis = axisBottom(xScale).tickFormat(
|
|
55559
55677
|
getNumberWithFormatFunction(
|
|
55560
55678
|
formatOptions.xAxisLabel.xAxisDisplayUnits,
|
|
@@ -55562,7 +55680,7 @@
|
|
|
55562
55680
|
formatOptions.xAxisLabel.xAxisLabelDecimalPrecision ?? "2"
|
|
55563
55681
|
)
|
|
55564
55682
|
).tickSize(
|
|
55565
|
-
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -
|
|
55683
|
+
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -tickSize : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? tickSize : 0 : 0 : 0
|
|
55566
55684
|
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
55567
55685
|
initXaxis(
|
|
55568
55686
|
chartAreaTagG,
|
|
@@ -55581,6 +55699,8 @@
|
|
|
55581
55699
|
};
|
|
55582
55700
|
const drawYAxis = () => {
|
|
55583
55701
|
try {
|
|
55702
|
+
const tickWidthPercentage = parseFloat(formatOptions.plotArea.ticksWidth) || 100;
|
|
55703
|
+
const tickSize = tickWidthPercentage / 100 * innerWidth2;
|
|
55584
55704
|
let { yAxisLabelArray, customTickValue } = responsiveYaxisLabel(
|
|
55585
55705
|
maxMeasure,
|
|
55586
55706
|
minMeasure,
|
|
@@ -55596,7 +55716,7 @@
|
|
|
55596
55716
|
formatOptions.yAxisLabel.yAxisLabelDecimalPrecision ?? "2"
|
|
55597
55717
|
)
|
|
55598
55718
|
).tickSize(
|
|
55599
|
-
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -
|
|
55719
|
+
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -tickSize : 0 : 0
|
|
55600
55720
|
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
55601
55721
|
initYaxis(
|
|
55602
55722
|
chartAreaTagG,
|
|
@@ -55779,10 +55899,12 @@
|
|
|
55779
55899
|
).style("flex-wrap", "nowrap").style("padding-left", "3px");
|
|
55780
55900
|
ColorList.forEach((d, i) => {
|
|
55781
55901
|
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("margin", "3px 0px").style("width", "fit-content").style("flex-wrap", "nowrap").style("white-space", "nowrap").style("font-size", chartFormatOptions.legends.legendFontSize + "px").style("font-family", chartFormatOptions.legends.legendFontFamily).on("mousemove", function(d2) {
|
|
55782
|
-
|
|
55783
|
-
|
|
55784
|
-
|
|
55785
|
-
|
|
55902
|
+
if (chartFormatOptions.legends.onHoverEffect) {
|
|
55903
|
+
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
55904
|
+
svg.selectAll(
|
|
55905
|
+
'[colorId="' + getJQuerySelector2(this.textContent.replace(/ /g, "-")) + '"]'
|
|
55906
|
+
).classed("highlight", true).classed("unhighlight", false);
|
|
55907
|
+
}
|
|
55786
55908
|
}).on("mouseout", function(d2) {
|
|
55787
55909
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
|
|
55788
55910
|
svg.selectAll(
|
|
@@ -55865,35 +55987,24 @@
|
|
|
55865
55987
|
logError$2(fileName, "shapeListWithScroll", e);
|
|
55866
55988
|
}
|
|
55867
55989
|
};
|
|
55868
|
-
const shapesForScatterPlot = (innerdiv,
|
|
55990
|
+
const shapesForScatterPlot = (innerdiv, shape) => {
|
|
55869
55991
|
try {
|
|
55870
|
-
|
|
55871
|
-
|
|
55872
|
-
|
|
55873
|
-
|
|
55874
|
-
|
|
55875
|
-
|
|
55876
|
-
|
|
55877
|
-
|
|
55878
|
-
|
|
55879
|
-
|
|
55880
|
-
|
|
55881
|
-
|
|
55882
|
-
|
|
55883
|
-
|
|
55884
|
-
|
|
55885
|
-
|
|
55886
|
-
innerdiv.append("div").style("height", "10px").style("width", "10px").style("background", "black").style("border-radius", "1px").style("transform", "rotate(45deg)");
|
|
55887
|
-
break;
|
|
55888
|
-
case "star":
|
|
55889
|
-
innerdiv.append("div").style("border-left", "6px solid transparent").style("border-right", "6px solid transparent").style("border-bottom", "10px solid black").style("position", "relative").style("top", "-2px").style("transform", "rotate(0deg)").append("div").style("border-left", "6px solid transparent").style("border-right", "6px solid transparent").style("border-top", "10px solid black").style("position", "absolute").style("top", "2px").style("left", "-5.5px").style("transform", "rotate(360deg)");
|
|
55890
|
-
break;
|
|
55891
|
-
case "wye":
|
|
55892
|
-
innerdiv.append("div").style("height", "6.5px").style("width", "3px").style("background", "black").append("div").style("height", "5px").style("width", "3px").style("background", "black").style("transform", "rotate(-55deg)").style("position", "relative").style("top", "-2px").style("left", "-2px").append("div").style("height", "5px").style("width", "3px").style("background", "black").style("transform", "rotate(108deg)").style("position", "relative").style("top", "3px").style("left", "2px");
|
|
55893
|
-
break;
|
|
55894
|
-
default:
|
|
55895
|
-
break;
|
|
55896
|
-
}
|
|
55992
|
+
const symbolMap = {
|
|
55993
|
+
none: circle,
|
|
55994
|
+
circle,
|
|
55995
|
+
square,
|
|
55996
|
+
triangle,
|
|
55997
|
+
cross,
|
|
55998
|
+
diamond,
|
|
55999
|
+
star,
|
|
56000
|
+
wye
|
|
56001
|
+
};
|
|
56002
|
+
const symbolType = symbolMap[shape?.toLowerCase()] || circle;
|
|
56003
|
+
const size = 80;
|
|
56004
|
+
innerdiv.append("svg").attr("width", 14).attr("height", 14).append("path").attr(
|
|
56005
|
+
"d",
|
|
56006
|
+
Symbol$1().type(symbolType).size(size)()
|
|
56007
|
+
).attr("transform", "translate(7,7)").attr("fill", "black");
|
|
55897
56008
|
} catch (error) {
|
|
55898
56009
|
logError$2(fileName, "shapesForScatterPlot", error);
|
|
55899
56010
|
}
|