pace-chart-lib 1.0.12 → 1.0.14
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.
|
@@ -90,7 +90,7 @@ export declare function getNumberWithFormatFunction(displayUnits: any, numberFor
|
|
|
90
90
|
* @param chartFormatOptions -> rightpane format options;
|
|
91
91
|
* @param event -> optional mouse event to track mouse;
|
|
92
92
|
*/
|
|
93
|
-
export declare function showTooltipOnMouseMove(elements: any, chartFormatOptions: TDefaultChartFormatOptionsType, event?: MouseEvent,
|
|
93
|
+
export declare function showTooltipOnMouseMove(elements: any, chartFormatOptions: TDefaultChartFormatOptionsType, event?: MouseEvent, prop?: any): void;
|
|
94
94
|
export declare function hideTooltipOnMouseOut(): void;
|
|
95
95
|
/**
|
|
96
96
|
* Adds chart title to svg
|
|
@@ -205,7 +205,7 @@ export declare const marginCalculationsForChartsWithoutAxis: (chartFormatOptions
|
|
|
205
205
|
* @param chartId - The unique identifier for the chart.
|
|
206
206
|
* @param margins - The margins for the chart area.
|
|
207
207
|
*/
|
|
208
|
-
export declare const initLegendListWithTotalValueAllowance: (chartFormatOptions: TDefaultChartFormatOptionsType, svg: d3.Selection<SVGGElement, any, any, any>, seriesData: TSeries[], width: number, height: number, legendListWidth: number, chartTitleHeight: number, chartId: string, margins: TChartMargins, shouldAllowTotalValueMargin?: boolean) => void;
|
|
208
|
+
export declare const initLegendListWithTotalValueAllowance: (chartFormatOptions: TDefaultChartFormatOptionsType, svg: d3.Selection<SVGGElement, any, any, any>, seriesData: TSeries[], width: number, height: number, legendListWidth: number, chartTitleHeight: number, chartId: string, margins: TChartMargins, staticLegendShape: string, shouldAllowTotalValueMargin?: boolean) => void;
|
|
209
209
|
/**
|
|
210
210
|
* Calculates the maximum possible width and height for the legends based on the longest legend string.
|
|
211
211
|
* @param chartFormatOptions - The format options for the chart.
|
|
@@ -14486,7 +14486,7 @@ function stacklineAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin
|
|
|
14486
14486
|
height: 15,
|
|
14487
14487
|
width: 15
|
|
14488
14488
|
},
|
|
14489
|
-
color: d.data.labelColor,
|
|
14489
|
+
color: labelType !== "6" ? d.data.labelColor : d.properties.labelColor,
|
|
14490
14490
|
type: annotationTypeforCharts(d3Annotation2, parseFloat(annotationType)),
|
|
14491
14491
|
height,
|
|
14492
14492
|
width
|
|
@@ -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",
|
|
@@ -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
|
);
|
|
@@ -26572,7 +26572,8 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
26572
26572
|
legendListWidth,
|
|
26573
26573
|
chartTitleHeight,
|
|
26574
26574
|
chartId,
|
|
26575
|
-
margins
|
|
26575
|
+
margins,
|
|
26576
|
+
staticLegendShape.circle
|
|
26576
26577
|
);
|
|
26577
26578
|
initPieChartData();
|
|
26578
26579
|
drawPieChart();
|
|
@@ -26933,6 +26934,7 @@ const DonutChart = ({
|
|
|
26933
26934
|
chartTitleHeight,
|
|
26934
26935
|
chartId,
|
|
26935
26936
|
margins,
|
|
26937
|
+
staticLegendShape.hollowCircle,
|
|
26936
26938
|
false
|
|
26937
26939
|
);
|
|
26938
26940
|
initPieChartData();
|
|
@@ -26953,7 +26955,7 @@ const DonutChart = ({
|
|
|
26953
26955
|
};
|
|
26954
26956
|
const defineChartRadius = () => {
|
|
26955
26957
|
try {
|
|
26956
|
-
radius = Math.min(innerHeight2 * 0.
|
|
26958
|
+
radius = Math.min(innerHeight2 * 0.4, innerWidth2 * 0.4);
|
|
26957
26959
|
outsideDataLabelFlag ? radius = radius * 0.9 : null;
|
|
26958
26960
|
innerRadius = Math.min(
|
|
26959
26961
|
convertStringToNumber(chartFormatOptions.plotArea.innerRadius) / 100 * radius,
|
|
@@ -27833,7 +27835,8 @@ const PieofPie = ({
|
|
|
27833
27835
|
legendListWidth,
|
|
27834
27836
|
chartTitleHeight,
|
|
27835
27837
|
chartId,
|
|
27836
|
-
margins
|
|
27838
|
+
margins,
|
|
27839
|
+
staticLegendShape.circle
|
|
27837
27840
|
);
|
|
27838
27841
|
} catch (error) {
|
|
27839
27842
|
logError$2(fileName$5, "initLegendList", error);
|
|
@@ -27906,6 +27909,7 @@ const PyramidChart = ({
|
|
|
27906
27909
|
chartTitleHeight,
|
|
27907
27910
|
chartId,
|
|
27908
27911
|
margins,
|
|
27912
|
+
staticLegendShape.rectangle,
|
|
27909
27913
|
false
|
|
27910
27914
|
);
|
|
27911
27915
|
initPyramidData();
|
|
@@ -28261,7 +28265,8 @@ const ProgressChart = ({
|
|
|
28261
28265
|
legendListWidth,
|
|
28262
28266
|
chartTitleHeight,
|
|
28263
28267
|
chartId,
|
|
28264
|
-
margins
|
|
28268
|
+
margins,
|
|
28269
|
+
staticLegendShape.hollowCircle
|
|
28265
28270
|
);
|
|
28266
28271
|
initProgressChartData();
|
|
28267
28272
|
drawProgressChart();
|
|
@@ -28983,7 +28988,8 @@ const RadialBarChart = ({
|
|
|
28983
28988
|
legendListWidth,
|
|
28984
28989
|
chartTitleHeight,
|
|
28985
28990
|
chartId,
|
|
28986
|
-
margins
|
|
28991
|
+
margins,
|
|
28992
|
+
staticLegendShape.hollowCircle
|
|
28987
28993
|
);
|
|
28988
28994
|
initRadialBarChart();
|
|
28989
28995
|
};
|
|
@@ -33918,7 +33924,7 @@ const SankeyChart = ({
|
|
|
33918
33924
|
showTooltipOnMouseMove(
|
|
33919
33925
|
[
|
|
33920
33926
|
{
|
|
33921
|
-
key: d.name,
|
|
33927
|
+
key: d.name.split("~$~")[1],
|
|
33922
33928
|
value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? layerWisePercentage.get(d.name) + "%" : getNumberWithFormatFunction(
|
|
33923
33929
|
"None",
|
|
33924
33930
|
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
@@ -33928,7 +33934,7 @@ const SankeyChart = ({
|
|
|
33928
33934
|
],
|
|
33929
33935
|
chartFormatOptions,
|
|
33930
33936
|
void 0,
|
|
33931
|
-
d.
|
|
33937
|
+
{ markerShape: "square", markerColor: d.color }
|
|
33932
33938
|
);
|
|
33933
33939
|
}
|
|
33934
33940
|
chartAreaTagG.selectAll(".sankey-nodes").style("fill-opacity", 0.1).style("stroke", "none");
|
|
@@ -52498,7 +52504,8 @@ const BubbleChart = ({
|
|
|
52498
52504
|
maxLegendDimensions[0],
|
|
52499
52505
|
chartTitleHeight,
|
|
52500
52506
|
chartId,
|
|
52501
|
-
margins
|
|
52507
|
+
margins,
|
|
52508
|
+
staticLegendShape.circle
|
|
52502
52509
|
);
|
|
52503
52510
|
} catch (e) {
|
|
52504
52511
|
logError$2("BubbleChart", "initLegendList", e);
|
|
@@ -53553,12 +53560,12 @@ const WaterfallChart = ({
|
|
|
53553
53560
|
barGroups = barGroupsEnter.merge(barGroups);
|
|
53554
53561
|
let rects = barGroups.selectAll("rect").data((d) => d, (d) => d.key || d.Key);
|
|
53555
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) => {
|
|
53563
|
+
const markerInfo = {
|
|
53564
|
+
markerShape: "square",
|
|
53565
|
+
markerColor: d.key === "dimensionTotal" ? formatOptions.plotArea.totalColor : d.key === "down" ? formatOptions.plotArea.negativeColor : formatOptions.plotArea.positiveColor
|
|
53566
|
+
};
|
|
53556
53567
|
showTooltipOnMouseMove(
|
|
53557
53568
|
[
|
|
53558
|
-
{
|
|
53559
|
-
key: d.key === "dimensionTotal" ? "Dimension" : formatOptions.xAxisTitle.xAxisTitleText,
|
|
53560
|
-
value: chartJSON.formattedDimensionListMap.get(d.data.dimension)
|
|
53561
|
-
},
|
|
53562
53569
|
{
|
|
53563
53570
|
key: formatOptions.yAxisTitle.yAxisTitleText,
|
|
53564
53571
|
value: (d.key === "up" ? "+" : d.key === "down" ? "-" : "") + getNumberWithFormat(
|
|
@@ -53575,7 +53582,7 @@ const WaterfallChart = ({
|
|
|
53575
53582
|
],
|
|
53576
53583
|
formatOptions,
|
|
53577
53584
|
void 0,
|
|
53578
|
-
|
|
53585
|
+
markerInfo
|
|
53579
53586
|
);
|
|
53580
53587
|
}).on("mouseout", () => {
|
|
53581
53588
|
hideTooltipOnMouseOut();
|
|
@@ -14489,7 +14489,7 @@
|
|
|
14489
14489
|
height: 15,
|
|
14490
14490
|
width: 15
|
|
14491
14491
|
},
|
|
14492
|
-
color: d.data.labelColor,
|
|
14492
|
+
color: labelType !== "6" ? d.data.labelColor : d.properties.labelColor,
|
|
14493
14493
|
type: annotationTypeforCharts(d3Annotation2, parseFloat(annotationType)),
|
|
14494
14494
|
height,
|
|
14495
14495
|
width
|
|
@@ -15404,10 +15404,10 @@
|
|
|
15404
15404
|
logError$2(fileName$b, "getNumberWithFormatFunction", error);
|
|
15405
15405
|
}
|
|
15406
15406
|
}
|
|
15407
|
-
function showTooltipOnMouseMove(elements, chartFormatOptions, event2,
|
|
15407
|
+
function showTooltipOnMouseMove(elements, chartFormatOptions, event2, prop) {
|
|
15408
15408
|
try {
|
|
15409
|
-
const markerColor =
|
|
15410
|
-
const markerShape =
|
|
15409
|
+
const markerColor = prop?.markerColor ?? "blue";
|
|
15410
|
+
const markerShape = prop?.markerShape.toLowerCase() ?? "circle";
|
|
15411
15411
|
selectAll(".chartTooltip").style("visibility", "hidden");
|
|
15412
15412
|
const tooltip = select$2("#chartTooltipDiv").html("").append("div").attr(
|
|
15413
15413
|
"class",
|
|
@@ -15595,7 +15595,7 @@
|
|
|
15595
15595
|
{
|
|
15596
15596
|
if ((legendShape || customLegendShape) == staticLegendShape.circle) {
|
|
15597
15597
|
getCircleShape(d, innerdiv);
|
|
15598
|
-
} else if ((legendShape || customLegendShape) == staticLegendShape.
|
|
15598
|
+
} else if ((legendShape || customLegendShape) == staticLegendShape.hollowCircle) {
|
|
15599
15599
|
getHollowCircleShape(d, innerdiv);
|
|
15600
15600
|
} else if ((legendShape || customLegendShape) == staticLegendShape.line) {
|
|
15601
15601
|
getLineShape(d, innerdiv, chartFormatOptions);
|
|
@@ -15641,7 +15641,7 @@
|
|
|
15641
15641
|
}
|
|
15642
15642
|
function getHollowCircleShape(d, innerDiv) {
|
|
15643
15643
|
try {
|
|
15644
|
-
innerDiv.append("div").style("height", "12px").style("width", "12px").style("border-radius", "50%").style("border", `3px solid ${d.properties.Color}`);
|
|
15644
|
+
innerDiv.append("div").style("height", "12px").style("width", "12px").style("border-radius", "50%").style("border", `3px solid ${d.properties.Color ?? d.properties.color}`);
|
|
15645
15645
|
} catch (error) {
|
|
15646
15646
|
logError$2(fileName$b, "getHollowCircleShape", error);
|
|
15647
15647
|
}
|
|
@@ -15827,7 +15827,7 @@
|
|
|
15827
15827
|
logError$2(fileName$b, "marginCalculationsForChartsWithoutAxis", error);
|
|
15828
15828
|
}
|
|
15829
15829
|
};
|
|
15830
|
-
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, shouldAllowTotalValueMargin = true) => {
|
|
15830
|
+
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true) => {
|
|
15831
15831
|
try {
|
|
15832
15832
|
let position = chartFormatOptions.legends.legendPosition;
|
|
15833
15833
|
let totalPosition = chartFormatOptions.total.totalPosition;
|
|
@@ -15848,7 +15848,7 @@
|
|
|
15848
15848
|
height - chartTitleHeight - 10 - (shouldTotalValueAdjustment ? totalPosition == staticTotalPosition.top && totalAlignment == staticTotalAlignment.end ? 10 : totalPosition == staticTotalPosition.bottom && totalAlignment == staticTotalAlignment.start ? 20 : 0 : 0),
|
|
15849
15849
|
position,
|
|
15850
15850
|
verticalLegendAlignment,
|
|
15851
|
-
|
|
15851
|
+
staticLegendShape2,
|
|
15852
15852
|
chartFormatOptions,
|
|
15853
15853
|
chartId
|
|
15854
15854
|
);
|
|
@@ -15863,7 +15863,7 @@
|
|
|
15863
15863
|
30,
|
|
15864
15864
|
position,
|
|
15865
15865
|
horizontalLegendAlignment,
|
|
15866
|
-
|
|
15866
|
+
staticLegendShape2,
|
|
15867
15867
|
chartFormatOptions,
|
|
15868
15868
|
chartId
|
|
15869
15869
|
);
|
|
@@ -15878,7 +15878,7 @@
|
|
|
15878
15878
|
height - chartTitleHeight - 10 - (shouldTotalValueAdjustment ? totalPosition == staticTotalPosition.top && totalAlignment == staticTotalAlignment.start ? 10 : totalPosition == staticTotalPosition.bottom && totalAlignment == staticTotalAlignment.start ? 20 : 0 : 0),
|
|
15879
15879
|
position,
|
|
15880
15880
|
verticalLegendAlignment,
|
|
15881
|
-
|
|
15881
|
+
staticLegendShape2,
|
|
15882
15882
|
chartFormatOptions,
|
|
15883
15883
|
chartId
|
|
15884
15884
|
);
|
|
@@ -15893,7 +15893,7 @@
|
|
|
15893
15893
|
30,
|
|
15894
15894
|
position,
|
|
15895
15895
|
horizontalLegendAlignment,
|
|
15896
|
-
|
|
15896
|
+
staticLegendShape2,
|
|
15897
15897
|
chartFormatOptions,
|
|
15898
15898
|
chartId
|
|
15899
15899
|
);
|
|
@@ -26575,7 +26575,8 @@
|
|
|
26575
26575
|
legendListWidth,
|
|
26576
26576
|
chartTitleHeight,
|
|
26577
26577
|
chartId,
|
|
26578
|
-
margins
|
|
26578
|
+
margins,
|
|
26579
|
+
staticLegendShape.circle
|
|
26579
26580
|
);
|
|
26580
26581
|
initPieChartData();
|
|
26581
26582
|
drawPieChart();
|
|
@@ -26936,6 +26937,7 @@
|
|
|
26936
26937
|
chartTitleHeight,
|
|
26937
26938
|
chartId,
|
|
26938
26939
|
margins,
|
|
26940
|
+
staticLegendShape.hollowCircle,
|
|
26939
26941
|
false
|
|
26940
26942
|
);
|
|
26941
26943
|
initPieChartData();
|
|
@@ -26956,7 +26958,7 @@
|
|
|
26956
26958
|
};
|
|
26957
26959
|
const defineChartRadius = () => {
|
|
26958
26960
|
try {
|
|
26959
|
-
radius = Math.min(innerHeight2 * 0.
|
|
26961
|
+
radius = Math.min(innerHeight2 * 0.4, innerWidth2 * 0.4);
|
|
26960
26962
|
outsideDataLabelFlag ? radius = radius * 0.9 : null;
|
|
26961
26963
|
innerRadius = Math.min(
|
|
26962
26964
|
convertStringToNumber(chartFormatOptions.plotArea.innerRadius) / 100 * radius,
|
|
@@ -27836,7 +27838,8 @@
|
|
|
27836
27838
|
legendListWidth,
|
|
27837
27839
|
chartTitleHeight,
|
|
27838
27840
|
chartId,
|
|
27839
|
-
margins
|
|
27841
|
+
margins,
|
|
27842
|
+
staticLegendShape.circle
|
|
27840
27843
|
);
|
|
27841
27844
|
} catch (error) {
|
|
27842
27845
|
logError$2(fileName$5, "initLegendList", error);
|
|
@@ -27909,6 +27912,7 @@
|
|
|
27909
27912
|
chartTitleHeight,
|
|
27910
27913
|
chartId,
|
|
27911
27914
|
margins,
|
|
27915
|
+
staticLegendShape.rectangle,
|
|
27912
27916
|
false
|
|
27913
27917
|
);
|
|
27914
27918
|
initPyramidData();
|
|
@@ -28264,7 +28268,8 @@
|
|
|
28264
28268
|
legendListWidth,
|
|
28265
28269
|
chartTitleHeight,
|
|
28266
28270
|
chartId,
|
|
28267
|
-
margins
|
|
28271
|
+
margins,
|
|
28272
|
+
staticLegendShape.hollowCircle
|
|
28268
28273
|
);
|
|
28269
28274
|
initProgressChartData();
|
|
28270
28275
|
drawProgressChart();
|
|
@@ -28986,7 +28991,8 @@
|
|
|
28986
28991
|
legendListWidth,
|
|
28987
28992
|
chartTitleHeight,
|
|
28988
28993
|
chartId,
|
|
28989
|
-
margins
|
|
28994
|
+
margins,
|
|
28995
|
+
staticLegendShape.hollowCircle
|
|
28990
28996
|
);
|
|
28991
28997
|
initRadialBarChart();
|
|
28992
28998
|
};
|
|
@@ -33921,7 +33927,7 @@
|
|
|
33921
33927
|
showTooltipOnMouseMove(
|
|
33922
33928
|
[
|
|
33923
33929
|
{
|
|
33924
|
-
key: d.name,
|
|
33930
|
+
key: d.name.split("~$~")[1],
|
|
33925
33931
|
value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? layerWisePercentage.get(d.name) + "%" : getNumberWithFormatFunction(
|
|
33926
33932
|
"None",
|
|
33927
33933
|
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
@@ -33931,7 +33937,7 @@
|
|
|
33931
33937
|
],
|
|
33932
33938
|
chartFormatOptions,
|
|
33933
33939
|
void 0,
|
|
33934
|
-
d.
|
|
33940
|
+
{ markerShape: "square", markerColor: d.color }
|
|
33935
33941
|
);
|
|
33936
33942
|
}
|
|
33937
33943
|
chartAreaTagG.selectAll(".sankey-nodes").style("fill-opacity", 0.1).style("stroke", "none");
|
|
@@ -52501,7 +52507,8 @@
|
|
|
52501
52507
|
maxLegendDimensions[0],
|
|
52502
52508
|
chartTitleHeight,
|
|
52503
52509
|
chartId,
|
|
52504
|
-
margins
|
|
52510
|
+
margins,
|
|
52511
|
+
staticLegendShape.circle
|
|
52505
52512
|
);
|
|
52506
52513
|
} catch (e) {
|
|
52507
52514
|
logError$2("BubbleChart", "initLegendList", e);
|
|
@@ -53556,12 +53563,12 @@
|
|
|
53556
53563
|
barGroups = barGroupsEnter.merge(barGroups);
|
|
53557
53564
|
let rects = barGroups.selectAll("rect").data((d) => d, (d) => d.key || d.Key);
|
|
53558
53565
|
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) => {
|
|
53566
|
+
const markerInfo = {
|
|
53567
|
+
markerShape: "square",
|
|
53568
|
+
markerColor: d.key === "dimensionTotal" ? formatOptions.plotArea.totalColor : d.key === "down" ? formatOptions.plotArea.negativeColor : formatOptions.plotArea.positiveColor
|
|
53569
|
+
};
|
|
53559
53570
|
showTooltipOnMouseMove(
|
|
53560
53571
|
[
|
|
53561
|
-
{
|
|
53562
|
-
key: d.key === "dimensionTotal" ? "Dimension" : formatOptions.xAxisTitle.xAxisTitleText,
|
|
53563
|
-
value: chartJSON.formattedDimensionListMap.get(d.data.dimension)
|
|
53564
|
-
},
|
|
53565
53572
|
{
|
|
53566
53573
|
key: formatOptions.yAxisTitle.yAxisTitleText,
|
|
53567
53574
|
value: (d.key === "up" ? "+" : d.key === "down" ? "-" : "") + getNumberWithFormat(
|
|
@@ -53578,7 +53585,7 @@
|
|
|
53578
53585
|
],
|
|
53579
53586
|
formatOptions,
|
|
53580
53587
|
void 0,
|
|
53581
|
-
|
|
53588
|
+
markerInfo
|
|
53582
53589
|
);
|
|
53583
53590
|
}).on("mouseout", () => {
|
|
53584
53591
|
hideTooltipOnMouseOut();
|