pace-chart-lib 1.0.4 → 1.0.6
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.
|
@@ -2371,7 +2371,7 @@ define$1(Hcl, hcl, extend$1(Color$1, {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
}));
|
|
2373
2373
|
const constant$9 = (x2) => () => x2;
|
|
2374
|
-
function linear$
|
|
2374
|
+
function linear$2(a2, d) {
|
|
2375
2375
|
return function(t) {
|
|
2376
2376
|
return a2 + t * d;
|
|
2377
2377
|
};
|
|
@@ -2388,7 +2388,7 @@ function gamma$1(y2) {
|
|
|
2388
2388
|
}
|
|
2389
2389
|
function nogamma$1(a2, b) {
|
|
2390
2390
|
var d = b - a2;
|
|
2391
|
-
return d ? linear$
|
|
2391
|
+
return d ? linear$2(a2, d) : constant$9(isNaN(a2) ? b : a2);
|
|
2392
2392
|
}
|
|
2393
2393
|
const interpolateRgb$1 = (function rgbGamma(y2) {
|
|
2394
2394
|
var color2 = gamma$1(y2);
|
|
@@ -3337,10 +3337,6 @@ Transition$1.prototype = {
|
|
|
3337
3337
|
end: transition_end$1,
|
|
3338
3338
|
[Symbol.iterator]: selection_prototype$1[Symbol.iterator]
|
|
3339
3339
|
};
|
|
3340
|
-
const linear$2 = (t) => +t;
|
|
3341
|
-
function cubicOut(t) {
|
|
3342
|
-
return --t * t * t + 1;
|
|
3343
|
-
}
|
|
3344
3340
|
function cubicInOut$1(t) {
|
|
3345
3341
|
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
3346
3342
|
}
|
|
@@ -10868,7 +10864,8 @@ const defaultChartFormatOptions = {
|
|
|
10868
10864
|
xAxisLabelFontFamily: "Helvetica",
|
|
10869
10865
|
xAxisLabelFontStyle: [],
|
|
10870
10866
|
xAxisLabelColor: "#000000",
|
|
10871
|
-
xAxisNumberFormat: "
|
|
10867
|
+
xAxisNumberFormat: "MMM-YY",
|
|
10868
|
+
// "DD-MM-YYYY",
|
|
10872
10869
|
xAxisQuarterFormat: "Long",
|
|
10873
10870
|
xAxisDisplayUnits: "None",
|
|
10874
10871
|
xAxisDisplayUnitsLabel: false,
|
|
@@ -10918,7 +10915,7 @@ const defaultChartFormatOptions = {
|
|
|
10918
10915
|
yAxisLabelFontStyle: [],
|
|
10919
10916
|
yAxisLabelColor: "#000000",
|
|
10920
10917
|
yAxisNumberFormat: ",",
|
|
10921
|
-
yAxisDisplayUnits: "
|
|
10918
|
+
yAxisDisplayUnits: "Auto",
|
|
10922
10919
|
//"None",
|
|
10923
10920
|
yAxisLabelRotation: 90,
|
|
10924
10921
|
yAxisDisplayUnitsLabel: false,
|
|
@@ -12346,7 +12343,9 @@ function getLabelsFromAlgo(dataMin, dataMax, axisLengthPx, labelWidthPx = 80) {
|
|
|
12346
12343
|
labels.push(parseFloat(current.toFixed(10)));
|
|
12347
12344
|
current += interval2;
|
|
12348
12345
|
}
|
|
12349
|
-
|
|
12346
|
+
const reductionFactor = 4;
|
|
12347
|
+
const reducedLabels = labels.filter((i) => i % reductionFactor === 0);
|
|
12348
|
+
return reducedLabels;
|
|
12350
12349
|
}
|
|
12351
12350
|
function initYaxis$1(gTag, formatOptions, dataTableHeight, yLabel, yAxisLeft, innerHeight2) {
|
|
12352
12351
|
try {
|
|
@@ -15388,7 +15387,7 @@ function showTooltipOnMouseMove(elements, chartFormatOptions, event2, markerProp
|
|
|
15388
15387
|
const tooltip = select$2("#chartTooltipDiv").html("").append("div").attr(
|
|
15389
15388
|
"class",
|
|
15390
15389
|
chartFormatOptions.toolTip.toolTipTheme === "Light" ? "tooltipParentLight chartTooltip" : "tooltipParentDark chartTooltip"
|
|
15391
|
-
).style("color", "black").style("background", "rgba(255, 255, 255)").style("border", "0px solid #d4d4d4").style("border-radius", "4px").style("padding", "8px 12px").style("box-shadow", "0px 4px 10px #240808ff").style("transition", "transform 0.1s ease, opacity 0.2s ease");
|
|
15390
|
+
).style("color", "black").style("background", "rgba(255, 255, 255)").style("border", "0px solid #d4d4d4").style("border-radius", "4px").style("padding", "8px 12px").style("position", "absolute").style("box-shadow", "0px 4px 10px #240808ff").style("transition", "transform 0.1s ease, opacity 0.2s ease").style("position", "absolute");
|
|
15392
15391
|
const e = event2 || window.event;
|
|
15393
15392
|
const mouseX = e.pageX;
|
|
15394
15393
|
const mouseY = e.pageY;
|
|
@@ -15902,10 +15901,10 @@ const marginCalculationsForChartsWithoutLegends = (chartFormatOptions, height, w
|
|
|
15902
15901
|
"Helvetica"
|
|
15903
15902
|
).height : 5;
|
|
15904
15903
|
let margins = {
|
|
15905
|
-
top: chartFormatOptions.chartTitle.chartTitleVisibility ? chartTitleHeight :
|
|
15906
|
-
bottom: shouldShowColorScale && chartFormatOptions.colorScale.showColor == colorThemeTypes.colorTheme ? 40 :
|
|
15907
|
-
left:
|
|
15908
|
-
right:
|
|
15904
|
+
top: chartFormatOptions.chartTitle.chartTitleVisibility ? chartTitleHeight : 20,
|
|
15905
|
+
bottom: shouldShowColorScale && chartFormatOptions.colorScale.showColor == colorThemeTypes.colorTheme ? 40 : 20,
|
|
15906
|
+
left: 20,
|
|
15907
|
+
right: 20
|
|
15909
15908
|
};
|
|
15910
15909
|
innerHeight = height - margins.top - margins.bottom;
|
|
15911
15910
|
innerWidth = width - margins.left - margins.right;
|
|
@@ -16429,7 +16428,7 @@ const ColumnChart = ({
|
|
|
16429
16428
|
customYaxisMinValue,
|
|
16430
16429
|
customYaxisMaxValue
|
|
16431
16430
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
16432
|
-
).tickSizeOuter(0);
|
|
16431
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
16433
16432
|
}
|
|
16434
16433
|
if (isSecondaryAxisDrawn) {
|
|
16435
16434
|
yAxisRight = axisRight(yScaleRight).tickFormat(
|
|
@@ -16455,7 +16454,7 @@ const ColumnChart = ({
|
|
|
16455
16454
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
16456
16455
|
).tickSize(
|
|
16457
16456
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
16458
|
-
).tickSizeOuter(0);
|
|
16457
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
16459
16458
|
}
|
|
16460
16459
|
};
|
|
16461
16460
|
const getXAxis = () => {
|
|
@@ -16493,7 +16492,7 @@ const ColumnChart = ({
|
|
|
16493
16492
|
"transform",
|
|
16494
16493
|
(d) => `translate(${xScale(d.dimension) - columnWidth / 2}, 0)`
|
|
16495
16494
|
);
|
|
16496
|
-
columnGroupsEnter.append("rect").attr("x", (d) => xScaleForLegends(d.legend)).attr("width", xScaleForLegends.bandwidth()).attr("y", (d) => {
|
|
16495
|
+
const bars = columnGroupsEnter.append("rect").attr("x", (d) => xScaleForLegends(d.legend)).attr("width", xScaleForLegends.bandwidth()).attr("y", (d) => {
|
|
16497
16496
|
const yScale = data2.properties.axis === "Primary" ? yScaleLeft : yScaleRight;
|
|
16498
16497
|
return yScale(0);
|
|
16499
16498
|
}).attr("height", 0).attr("fill", data2.properties.color).attr("stroke-dasharray", (d) => d.stackBorderStyle === 2 ? "5,3" : "0").attr("stroke-width", (d) => `${d.stackBorderWidth}px`).attr(
|
|
@@ -16502,7 +16501,9 @@ const ColumnChart = ({
|
|
|
16502
16501
|
).style("clip-path", "inset(0px) fill-box").style("shape-rendering", "crispEdges").attr(
|
|
16503
16502
|
"visibility",
|
|
16504
16503
|
(d) => d.value === 0 && formatOptions.xAxisLabel.hideZeroValues ? "hidden" : "visible"
|
|
16505
|
-
)
|
|
16504
|
+
);
|
|
16505
|
+
const finalBars = bars;
|
|
16506
|
+
finalBars.attr("y", (d) => {
|
|
16506
16507
|
const yScale = data2.properties.axis === "Primary" ? yScaleLeft : yScaleRight;
|
|
16507
16508
|
return d.value > 0 ? yScale(d.value) : yScale(0);
|
|
16508
16509
|
}).attr("height", (d) => {
|
|
@@ -16638,18 +16639,15 @@ const ColumnChart = ({
|
|
|
16638
16639
|
);
|
|
16639
16640
|
getChartType(filteredData);
|
|
16640
16641
|
};
|
|
16641
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
"
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
}
|
|
16651
|
-
)
|
|
16652
|
-
] });
|
|
16642
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16643
|
+
"svg",
|
|
16644
|
+
{
|
|
16645
|
+
className: "chartSVG",
|
|
16646
|
+
ref: svgRef,
|
|
16647
|
+
id: chartId,
|
|
16648
|
+
style: { width: "100%", height: "100%" }
|
|
16649
|
+
}
|
|
16650
|
+
) });
|
|
16653
16651
|
};
|
|
16654
16652
|
const CustomColumnChart = ({
|
|
16655
16653
|
isDateType,
|
|
@@ -17164,7 +17162,7 @@ const CustomColumnChart = ({
|
|
|
17164
17162
|
customYaxisMinValue,
|
|
17165
17163
|
customYaxisMaxValue
|
|
17166
17164
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
17167
|
-
).tickSizeOuter(0);
|
|
17165
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
17168
17166
|
}
|
|
17169
17167
|
if (isSecondaryAxisDrawn) {
|
|
17170
17168
|
yAxisRight = axisRight(yScaleRight).tickFormat(
|
|
@@ -17190,7 +17188,7 @@ const CustomColumnChart = ({
|
|
|
17190
17188
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
17191
17189
|
).tickSize(
|
|
17192
17190
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
17193
|
-
).tickSizeOuter(0);
|
|
17191
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
17194
17192
|
}
|
|
17195
17193
|
};
|
|
17196
17194
|
const getChartType = (lineData) => {
|
|
@@ -17617,18 +17615,15 @@ const CustomColumnChart = ({
|
|
|
17617
17615
|
});
|
|
17618
17616
|
return stackChartData;
|
|
17619
17617
|
};
|
|
17620
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
"
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
}
|
|
17630
|
-
)
|
|
17631
|
-
] });
|
|
17618
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17619
|
+
"svg",
|
|
17620
|
+
{
|
|
17621
|
+
className: "chartSVG",
|
|
17622
|
+
ref: svgRef,
|
|
17623
|
+
id: chartId,
|
|
17624
|
+
style: { width: "100%", height: "100%" }
|
|
17625
|
+
}
|
|
17626
|
+
) });
|
|
17632
17627
|
};
|
|
17633
17628
|
const LayeredColumnChart = ({
|
|
17634
17629
|
isDateType,
|
|
@@ -17965,7 +17960,7 @@ const LayeredColumnChart = ({
|
|
|
17965
17960
|
customYaxisMinValue,
|
|
17966
17961
|
customYaxisMaxValue
|
|
17967
17962
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
17968
|
-
).tickSizeOuter(0);
|
|
17963
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
17969
17964
|
}
|
|
17970
17965
|
};
|
|
17971
17966
|
const getXAxis = () => {
|
|
@@ -18142,18 +18137,15 @@ const LayeredColumnChart = ({
|
|
|
18142
18137
|
visibleBars = fVisibleBars;
|
|
18143
18138
|
drawColumnChart();
|
|
18144
18139
|
};
|
|
18145
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
18146
|
-
|
|
18147
|
-
|
|
18148
|
-
"
|
|
18149
|
-
|
|
18150
|
-
|
|
18151
|
-
|
|
18152
|
-
|
|
18153
|
-
|
|
18154
|
-
}
|
|
18155
|
-
)
|
|
18156
|
-
] });
|
|
18140
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18141
|
+
"svg",
|
|
18142
|
+
{
|
|
18143
|
+
className: "chartSVG",
|
|
18144
|
+
ref: svgRef,
|
|
18145
|
+
id: chartId,
|
|
18146
|
+
style: { width: "100%", height: "100%" }
|
|
18147
|
+
}
|
|
18148
|
+
) });
|
|
18157
18149
|
};
|
|
18158
18150
|
const StackColumnChart = ({
|
|
18159
18151
|
isDateType,
|
|
@@ -18468,7 +18460,7 @@ const StackColumnChart = ({
|
|
|
18468
18460
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 + 0 : 0 : 0
|
|
18469
18461
|
).tickValues(respParams.yAxisLabelArray).ticks(
|
|
18470
18462
|
respParams.customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
18471
|
-
).tickSizeOuter(0);
|
|
18463
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
18472
18464
|
}
|
|
18473
18465
|
};
|
|
18474
18466
|
const getXAxis = () => {
|
|
@@ -18501,7 +18493,7 @@ const StackColumnChart = ({
|
|
|
18501
18493
|
);
|
|
18502
18494
|
return { props: seriesData[groupIndex]?.properties, groupIndex };
|
|
18503
18495
|
};
|
|
18504
|
-
const
|
|
18496
|
+
const baseRects = rects.enter().append("rect").merge(rects).attr("x", (d) => xScale(d.data.dimension) - columnWidth / 2).attr("width", columnWidth).attr("y", (d) => yScaleLeft(0)).attr("height", 0).attr("fill", (d, i, nodes) => {
|
|
18505
18497
|
const { props } = getPropsForRect(nodes, i);
|
|
18506
18498
|
return props?.color || "gray";
|
|
18507
18499
|
}).attr("stroke", (d, i, nodes) => {
|
|
@@ -18554,10 +18546,8 @@ const StackColumnChart = ({
|
|
|
18554
18546
|
selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
|
|
18555
18547
|
selectAll('[hoverId="' + legend + '"]').classed("highlight", false).classed("unhighlight", false);
|
|
18556
18548
|
});
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
(d) => d[1] >= d[0] ? yScaleLeft(d[1]) : yScaleLeft(d[0])
|
|
18560
|
-
).attr("height", (d) => Math.abs(yScaleLeft(d[0]) - yScaleLeft(d[1])));
|
|
18549
|
+
const finalRects = baseRects;
|
|
18550
|
+
finalRects.attr("y", (d) => d[1] >= d[0] ? yScaleLeft(d[1]) : yScaleLeft(d[0])).attr("height", (d) => Math.abs(yScaleLeft(d[0]) - yScaleLeft(d[1])));
|
|
18561
18551
|
columnGroups.exit().remove();
|
|
18562
18552
|
gTag.selectAll(".parentGroup").raise();
|
|
18563
18553
|
};
|
|
@@ -18870,18 +18860,15 @@ const StackColumnChart = ({
|
|
|
18870
18860
|
} catch (e) {
|
|
18871
18861
|
}
|
|
18872
18862
|
};
|
|
18873
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
"
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
}
|
|
18883
|
-
)
|
|
18884
|
-
] });
|
|
18863
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18864
|
+
"svg",
|
|
18865
|
+
{
|
|
18866
|
+
className: "chartSVG",
|
|
18867
|
+
ref: svgRef,
|
|
18868
|
+
id: chartId,
|
|
18869
|
+
style: { width: "100%", height: "100%" }
|
|
18870
|
+
}
|
|
18871
|
+
) });
|
|
18885
18872
|
};
|
|
18886
18873
|
const NormalizedStackColumnChart = ({
|
|
18887
18874
|
isDateType,
|
|
@@ -19184,7 +19171,7 @@ const NormalizedStackColumnChart = ({
|
|
|
19184
19171
|
}
|
|
19185
19172
|
};
|
|
19186
19173
|
const getXScale = () => {
|
|
19187
|
-
xScale = point$7().domain(filteredDimension).range(calculatedRange).padding(0.
|
|
19174
|
+
xScale = point$7().domain(filteredDimension).range(calculatedRange).padding(0.5);
|
|
19188
19175
|
};
|
|
19189
19176
|
const initAxis = () => {
|
|
19190
19177
|
{
|
|
@@ -19193,7 +19180,7 @@ const NormalizedStackColumnChart = ({
|
|
|
19193
19180
|
).ticks(
|
|
19194
19181
|
dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30,
|
|
19195
19182
|
"%"
|
|
19196
|
-
).tickSizeOuter(0);
|
|
19183
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
19197
19184
|
}
|
|
19198
19185
|
};
|
|
19199
19186
|
const getXAxis = () => {
|
|
@@ -19248,7 +19235,8 @@ const NormalizedStackColumnChart = ({
|
|
|
19248
19235
|
const { props } = getPropsForRect(nodes, i);
|
|
19249
19236
|
return d.data[d.key] === 0 && props?.hideZeroValues ? "hidden" : "visible";
|
|
19250
19237
|
});
|
|
19251
|
-
|
|
19238
|
+
const applyTransition = (sel) => sel;
|
|
19239
|
+
applyTransition(rectsEnter).attr("y", (d) => d[1] >= d[0] ? yScaleLeft(d[1]) : yScaleLeft(d[0])).attr("height", (d) => Math.abs(yScaleLeft(d[0]) - yScaleLeft(d[1])));
|
|
19252
19240
|
rectsEnter.merge(rects).on("mousemove", (event2, d) => {
|
|
19253
19241
|
showTooltipOnMouseMove(
|
|
19254
19242
|
[
|
|
@@ -19393,7 +19381,11 @@ const NormalizedStackColumnChart = ({
|
|
|
19393
19381
|
(K2, j) => K2.forEach((d) => {
|
|
19394
19382
|
d["key"] = K2.key;
|
|
19395
19383
|
K2["color"] = JSON.parse(JSON.stringify(seriesData[j].properties.color));
|
|
19396
|
-
K2["individualAnnotationVisibility"] = JSON.parse(
|
|
19384
|
+
K2["individualAnnotationVisibility"] = JSON.parse(
|
|
19385
|
+
JSON.stringify(
|
|
19386
|
+
seriesData[j].properties.individualAnnotationVisibility
|
|
19387
|
+
)
|
|
19388
|
+
);
|
|
19397
19389
|
d.data.labelPosition = seriesData[j].properties.dataLabelPosition;
|
|
19398
19390
|
d.data["labelColor"] = seriesColor == "2" ? JSON.parse(JSON.stringify(seriesData[j].properties.color)) : seriesData[j].properties.labelColor;
|
|
19399
19391
|
d["hideZero"] = JSON.parse(
|
|
@@ -19403,18 +19395,15 @@ const NormalizedStackColumnChart = ({
|
|
|
19403
19395
|
})
|
|
19404
19396
|
);
|
|
19405
19397
|
};
|
|
19406
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
"
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
}
|
|
19416
|
-
)
|
|
19417
|
-
] });
|
|
19398
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19399
|
+
"svg",
|
|
19400
|
+
{
|
|
19401
|
+
className: "chartSVG",
|
|
19402
|
+
ref: svgRef,
|
|
19403
|
+
id: chartId,
|
|
19404
|
+
style: { width: "100%", height: "100%" }
|
|
19405
|
+
}
|
|
19406
|
+
) });
|
|
19418
19407
|
};
|
|
19419
19408
|
const fileName$a = "ChartsWithoutAxisFunctions.ts";
|
|
19420
19409
|
function marginCalculationForBubbleScatter(width, height, maxMeasure, formatOptions, maxDimension, maxLegendDimensions) {
|
|
@@ -20261,7 +20250,7 @@ const ColumnHistogramChart = ({
|
|
|
20261
20250
|
false,
|
|
20262
20251
|
innerWidth2
|
|
20263
20252
|
).yAxisLabelArray
|
|
20264
|
-
).ticks(innerHeight2 / 50).tickSizeOuter(0);
|
|
20253
|
+
).ticks(innerHeight2 / 50).tickPadding(8).tickSizeOuter(0);
|
|
20265
20254
|
}
|
|
20266
20255
|
};
|
|
20267
20256
|
const getXAxis = () => {
|
|
@@ -20278,7 +20267,7 @@ const ColumnHistogramChart = ({
|
|
|
20278
20267
|
)
|
|
20279
20268
|
).tickSize(
|
|
20280
20269
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ? formatOptions.plotArea.gridLinesVertical ? -(dataTableHeight > 0 ? innerHeight2 - dataTableHeight : innerHeight2) : parseFloat(formatOptions.plotArea.ticksHeight) * ((dataTableHeight > 0 ? innerHeight2 - dataTableHeight : innerHeight2) / 100) * (formatOptions.xAxisLabel.xAxisPosition == "1" ? 1 : -1) : 0 : 0
|
|
20281
|
-
).tickValues(labelArray).ticks(innerWidth2 / 30).tickSizeOuter(0);
|
|
20270
|
+
).tickValues(labelArray).ticks(innerWidth2 / 30).tickPadding(8).tickSizeOuter(0);
|
|
20282
20271
|
formatOptions.bins.binsCalculation === "Automatic" ? xAxis.ticks(thresholds) : xAxis.tickValues(periods).ticks(innerWidth2 / 50);
|
|
20283
20272
|
};
|
|
20284
20273
|
const getChartType = (lineData) => {
|
|
@@ -20394,18 +20383,15 @@ const ColumnHistogramChart = ({
|
|
|
20394
20383
|
filteredDimension
|
|
20395
20384
|
);
|
|
20396
20385
|
};
|
|
20397
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
"
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
}
|
|
20407
|
-
)
|
|
20408
|
-
] });
|
|
20386
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20387
|
+
"svg",
|
|
20388
|
+
{
|
|
20389
|
+
className: "chartSVG",
|
|
20390
|
+
ref: svgRef,
|
|
20391
|
+
id: chartId,
|
|
20392
|
+
style: { width: "100%", height: "100%" }
|
|
20393
|
+
}
|
|
20394
|
+
) });
|
|
20409
20395
|
};
|
|
20410
20396
|
const LineChart = ({
|
|
20411
20397
|
isDateType,
|
|
@@ -20775,7 +20761,7 @@ const LineChart = ({
|
|
|
20775
20761
|
customYaxisMinValue,
|
|
20776
20762
|
customYaxisMaxValue
|
|
20777
20763
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
20778
|
-
).tickSizeOuter(0);
|
|
20764
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
20779
20765
|
}
|
|
20780
20766
|
if (isSecondaryAxisDrawn) {
|
|
20781
20767
|
yAxisRight = axisRight(yScaleRight).tickFormat(
|
|
@@ -20801,7 +20787,7 @@ const LineChart = ({
|
|
|
20801
20787
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
20802
20788
|
).tickSize(
|
|
20803
20789
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
20804
|
-
).tickSizeOuter(0);
|
|
20790
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
20805
20791
|
}
|
|
20806
20792
|
};
|
|
20807
20793
|
const getXAxis = () => {
|
|
@@ -20816,16 +20802,17 @@ const LineChart = ({
|
|
|
20816
20802
|
cData.axis = lData.properties.axis;
|
|
20817
20803
|
});
|
|
20818
20804
|
});
|
|
20819
|
-
const lineGenerator = line$1().x(
|
|
20820
|
-
|
|
20821
|
-
|
|
20805
|
+
const lineGenerator = line$1().x((d) => {
|
|
20806
|
+
const val = xScale(d.dimension);
|
|
20807
|
+
return val != null ? val : 0;
|
|
20808
|
+
}).y(
|
|
20822
20809
|
(d) => d.axis === "Primary" ? yScaleLeft(d.value) : yScaleRight(d.value)
|
|
20823
20810
|
).defined((d) => d.hideZero ? Boolean(d.value) : true).curve(getCurveType(formatOptions));
|
|
20824
20811
|
let lines = gTag.selectAll(".parentGroup").data([lineData]);
|
|
20825
20812
|
lines = lines.enter().append("g").attr("class", "lines parentGroup").merge(lines);
|
|
20826
20813
|
let lineGroups = lines.selectAll(".line-group").data((d) => d);
|
|
20827
20814
|
let lineGroupsEnter = lineGroups.enter().append("g").attr("class", "line-group");
|
|
20828
|
-
lineGroupsEnter.attr("hoverId", (d) => d.legend.replace(/ /g, "-")).append("path").attr("class", "
|
|
20815
|
+
lineGroupsEnter.attr("hoverId", (d) => d.legend.replace(/ /g, "-")).append("path").attr("class", "visibleLine").attr("fill", "none");
|
|
20829
20816
|
lineGroupsEnter.merge(lineGroups).each(function(d) {
|
|
20830
20817
|
const g = select$2(this);
|
|
20831
20818
|
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine").attr("d", (d2) => lineGenerator(d2.data)).attr(
|
|
@@ -20846,11 +20833,7 @@ const LineChart = ({
|
|
|
20846
20833
|
).attr(
|
|
20847
20834
|
"stroke-width",
|
|
20848
20835
|
(d2) => d2.properties.lineStyle !== "None" ? 2.5 : 0
|
|
20849
|
-
).attr("
|
|
20850
|
-
const path2 = select$2(this);
|
|
20851
|
-
const totalLength = this.getTotalLength();
|
|
20852
|
-
path2.attr("stroke-dasharray", totalLength + " " + totalLength).attr("stroke-dashoffset", totalLength).transition().duration(2e3).ease(linear$2).attr("stroke-dashoffset", 0);
|
|
20853
|
-
});
|
|
20836
|
+
).attr("d", (d2) => lineGenerator(d2.data));
|
|
20854
20837
|
g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => lineGenerator(d2.data)).attr("stroke", "transparent").attr("stroke-width", 20).attr("fill", "none").style("pointer-events", "stroke").on("mouseenter", function(event2, d2) {
|
|
20855
20838
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
20856
20839
|
svg.selectAll(
|
|
@@ -20967,18 +20950,15 @@ const LineChart = ({
|
|
|
20967
20950
|
);
|
|
20968
20951
|
}
|
|
20969
20952
|
};
|
|
20970
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
"
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
}
|
|
20980
|
-
)
|
|
20981
|
-
] });
|
|
20953
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20954
|
+
"svg",
|
|
20955
|
+
{
|
|
20956
|
+
className: "chartSVG",
|
|
20957
|
+
ref: svgRef,
|
|
20958
|
+
id: chartId,
|
|
20959
|
+
style: { width: "100%", height: "100%" }
|
|
20960
|
+
}
|
|
20961
|
+
) });
|
|
20982
20962
|
};
|
|
20983
20963
|
const StackLineChart = ({
|
|
20984
20964
|
isDateType,
|
|
@@ -21330,7 +21310,7 @@ const StackLineChart = ({
|
|
|
21330
21310
|
customYaxisMinValue,
|
|
21331
21311
|
customYaxisMaxValue
|
|
21332
21312
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
21333
|
-
).tickSizeOuter(0);
|
|
21313
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
21334
21314
|
}
|
|
21335
21315
|
};
|
|
21336
21316
|
const getXAxis = () => {
|
|
@@ -21351,27 +21331,36 @@ const StackLineChart = ({
|
|
|
21351
21331
|
let lines = gTag.selectAll(".parentGroup").data([stackChartData]);
|
|
21352
21332
|
lines = lines.enter().append("g").attr("class", "lines parentGroup").merge(lines);
|
|
21353
21333
|
let lineGroups = lines.selectAll(".line-group").data((d) => d);
|
|
21354
|
-
|
|
21334
|
+
const lineGroupsEnter = lineGroups.enter().append("g").attr("class", (d) => "line-group " + d.key.replace(/ /g, "-"));
|
|
21355
21335
|
lineGroupsEnter.attr(
|
|
21356
21336
|
"hoverId",
|
|
21357
21337
|
(d) => d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
21358
21338
|
).append("path").attr("class", "line").attr("fill", "none");
|
|
21359
21339
|
lineGroupsEnter.merge(lineGroups).each(function(d, i) {
|
|
21360
21340
|
const g = select$2(this);
|
|
21361
|
-
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine").attr("d", lineGenerator(d)).attr("stroke", d.color !== "#ffffff" ? d.color : "none").attr(
|
|
21341
|
+
const pathSel = g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine").attr("d", lineGenerator(d)).attr("stroke", d.color !== "#ffffff" ? d.color : "none").attr(
|
|
21362
21342
|
"stroke-dasharray",
|
|
21363
21343
|
seriesData[i].properties.lineStyle === "dotted" ? "0,3" : seriesData[i].properties.lineStyle === "dashed" ? "20,10,5,5,5,10" : ""
|
|
21364
|
-
).attr(
|
|
21365
|
-
|
|
21366
|
-
|
|
21367
|
-
|
|
21368
|
-
|
|
21344
|
+
).attr(
|
|
21345
|
+
"stroke-linecap",
|
|
21346
|
+
seriesData[i].properties.lineStyle === "dotted" ? "round" : ""
|
|
21347
|
+
).attr(
|
|
21348
|
+
"stroke-width",
|
|
21349
|
+
seriesData[i].properties.lineStyle !== "None" ? 2.5 : 0
|
|
21350
|
+
).attr("fill", "none");
|
|
21351
|
+
const totalLength = pathSel.node().getTotalLength();
|
|
21352
|
+
{
|
|
21353
|
+
pathSel.attr("stroke-dasharray", totalLength + " " + totalLength).attr("stroke-dashoffset", 0);
|
|
21354
|
+
}
|
|
21369
21355
|
g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", lineGenerator(d)).attr("stroke", "transparent").attr("stroke-width", 20).attr("fill", "none").style("pointer-events", "stroke").on("mouseenter", function() {
|
|
21370
21356
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
21371
|
-
svg.selectAll(
|
|
21357
|
+
svg.selectAll(
|
|
21358
|
+
`[hoverId="${getJQuerySelector(
|
|
21359
|
+
d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
21360
|
+
)}"]`
|
|
21361
|
+
).classed("highlight", true).classed("unhighlight", false);
|
|
21372
21362
|
}).on("mouseleave", function() {
|
|
21373
21363
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
|
|
21374
|
-
svg.selectAll(`[hoverId="${getJQuerySelector(d.key.split("~$~")[1].replace(/ /g, "-"))}"]`).classed("highlight", false).classed("unhighlight", false);
|
|
21375
21364
|
});
|
|
21376
21365
|
});
|
|
21377
21366
|
lineGroups.exit().remove();
|
|
@@ -21512,18 +21501,15 @@ const StackLineChart = ({
|
|
|
21512
21501
|
visibleBars = fVisibleBars;
|
|
21513
21502
|
drawLineChart();
|
|
21514
21503
|
};
|
|
21515
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
21516
|
-
|
|
21517
|
-
|
|
21518
|
-
"
|
|
21519
|
-
|
|
21520
|
-
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
|
|
21524
|
-
}
|
|
21525
|
-
)
|
|
21526
|
-
] });
|
|
21504
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
21505
|
+
"svg",
|
|
21506
|
+
{
|
|
21507
|
+
className: "chartSVG",
|
|
21508
|
+
ref: svgRef,
|
|
21509
|
+
id: chartId,
|
|
21510
|
+
style: { width: "100%", height: "100%" }
|
|
21511
|
+
}
|
|
21512
|
+
) });
|
|
21527
21513
|
};
|
|
21528
21514
|
const NormalisedStackLineChart = ({
|
|
21529
21515
|
isDateType,
|
|
@@ -21813,7 +21799,7 @@ const NormalisedStackLineChart = ({
|
|
|
21813
21799
|
).ticks(
|
|
21814
21800
|
dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30,
|
|
21815
21801
|
"%"
|
|
21816
|
-
).tickSizeOuter(0);
|
|
21802
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
21817
21803
|
}
|
|
21818
21804
|
};
|
|
21819
21805
|
const getXAxis = () => {
|
|
@@ -21849,7 +21835,7 @@ const NormalisedStackLineChart = ({
|
|
|
21849
21835
|
).append("path").attr("class", "line").attr("fill", "none");
|
|
21850
21836
|
lineGroupsEnter.merge(lineGroups).each(function(d, i) {
|
|
21851
21837
|
const g = select$2(this);
|
|
21852
|
-
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine").attr("d", lineGenerator(d)).attr("stroke", d.color !== "#ffffff" ? d.color : "none").attr(
|
|
21838
|
+
const pathSel = g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine").attr("d", lineGenerator(d)).attr("stroke", d.color !== "#ffffff" ? d.color : "none").attr(
|
|
21853
21839
|
"stroke-dasharray",
|
|
21854
21840
|
seriesData[i].properties.lineStyle === "dotted" ? "0,3" : seriesData[i].properties.lineStyle === "dashed" ? "20,10,5,5,5,10" : ""
|
|
21855
21841
|
).attr(
|
|
@@ -21858,16 +21844,16 @@ const NormalisedStackLineChart = ({
|
|
|
21858
21844
|
).attr(
|
|
21859
21845
|
"stroke-width",
|
|
21860
21846
|
seriesData[i].properties.lineStyle !== "None" ? 2.5 : 0
|
|
21861
|
-
).attr("fill", "none")
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
}
|
|
21847
|
+
).attr("fill", "none");
|
|
21848
|
+
const totalLength = pathSel.node().getTotalLength();
|
|
21849
|
+
{
|
|
21850
|
+
pathSel.attr("stroke-dasharray", totalLength + " " + totalLength).attr("stroke-dashoffset", 0);
|
|
21851
|
+
}
|
|
21866
21852
|
g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", lineGenerator(d)).attr("stroke", "transparent").attr("stroke-width", 20).attr("fill", "none").style("pointer-events", "stroke").on("mouseenter", function() {
|
|
21867
21853
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
21868
21854
|
svg.selectAll(
|
|
21869
21855
|
`[hoverId="${getJQuerySelector(
|
|
21870
|
-
d.key.split("~$~")[1].replace(/ /g, "-")
|
|
21856
|
+
d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
21871
21857
|
)}"]`
|
|
21872
21858
|
).classed("highlight", true).classed("unhighlight", false);
|
|
21873
21859
|
}).on("mouseleave", function() {
|
|
@@ -22016,18 +22002,15 @@ const NormalisedStackLineChart = ({
|
|
|
22016
22002
|
})
|
|
22017
22003
|
);
|
|
22018
22004
|
};
|
|
22019
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
22020
|
-
|
|
22021
|
-
|
|
22022
|
-
"
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
}
|
|
22029
|
-
)
|
|
22030
|
-
] });
|
|
22005
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22006
|
+
"svg",
|
|
22007
|
+
{
|
|
22008
|
+
className: "chartSVG",
|
|
22009
|
+
ref: svgRef,
|
|
22010
|
+
id: chartId,
|
|
22011
|
+
style: { width: "100%", height: "100%" }
|
|
22012
|
+
}
|
|
22013
|
+
) });
|
|
22031
22014
|
};
|
|
22032
22015
|
const HorizontalBarChart = ({
|
|
22033
22016
|
isDateType,
|
|
@@ -22358,7 +22341,7 @@ const HorizontalBarChart = ({
|
|
|
22358
22341
|
customYaxisMinValue,
|
|
22359
22342
|
customYaxisMaxValue
|
|
22360
22343
|
).customTickValue ?? innerHeight2 / 30
|
|
22361
|
-
).tickSizeOuter(0);
|
|
22344
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
22362
22345
|
}
|
|
22363
22346
|
if (isSecondaryAxisDrawn) {
|
|
22364
22347
|
xAxisTop = axisTop(xScaleTop).tickFormat(
|
|
@@ -22384,7 +22367,7 @@ const HorizontalBarChart = ({
|
|
|
22384
22367
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
22385
22368
|
).tickSize(
|
|
22386
22369
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
22387
|
-
).tickSizeOuter(0);
|
|
22370
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
22388
22371
|
}
|
|
22389
22372
|
};
|
|
22390
22373
|
const getYAxis = () => {
|
|
@@ -22412,7 +22395,7 @@ const HorizontalBarChart = ({
|
|
|
22412
22395
|
).attr("transform", (d) => `translate(0, ${yScale(d.dimension) - columnWidth / 2})`);
|
|
22413
22396
|
columnGroups.attr("transform", (d) => `translate(0, ${yScale(d.dimension) - columnWidth / 2})`);
|
|
22414
22397
|
columnGroupsEnter.merge(columnGroups).attr("transform", (d) => `translate(0, ${yScale(d.dimension) - columnWidth / 2})`);
|
|
22415
|
-
columnGroupsEnter.append("rect").attr("y", (d) => yScaleLegends(d.legend)).attr("height", yScaleLegends.bandwidth()).attr("x", (d) => {
|
|
22398
|
+
const bars = columnGroupsEnter.append("rect").attr("y", (d) => yScaleLegends(d.legend)).attr("height", yScaleLegends.bandwidth()).attr("x", (d) => {
|
|
22416
22399
|
const xScaleUsed = data2.properties.axis === "Primary" ? xScaleBottom : xScaleTop;
|
|
22417
22400
|
return d.value >= 0 ? xScaleUsed(0) : xScaleUsed(0);
|
|
22418
22401
|
}).attr("width", 0).attr("fill", data2.properties.color).attr("stroke-dasharray", (d) => d.stackBorderStyle === 2 ? "5,3" : "0").attr("stroke-width", (d) => `${d.stackBorderWidth}px`).attr(
|
|
@@ -22421,7 +22404,9 @@ const HorizontalBarChart = ({
|
|
|
22421
22404
|
).style("clip-path", "inset(0px) fill-box").style("shape-rendering", "crispEdges").attr(
|
|
22422
22405
|
"visibility",
|
|
22423
22406
|
(d) => d.value === 0 && formatOptions.xAxisLabel.hideZeroValues ? "hidden" : "visible"
|
|
22424
|
-
)
|
|
22407
|
+
);
|
|
22408
|
+
const finalBars = bars;
|
|
22409
|
+
finalBars.attr("x", (d) => {
|
|
22425
22410
|
const xScaleUsed = data2.properties.axis === "Primary" ? xScaleBottom : xScaleTop;
|
|
22426
22411
|
return d.value >= 0 ? xScaleUsed(0) : xScaleUsed(d.value);
|
|
22427
22412
|
}).attr("width", (d) => {
|
|
@@ -22535,18 +22520,15 @@ const HorizontalBarChart = ({
|
|
|
22535
22520
|
barChart
|
|
22536
22521
|
);
|
|
22537
22522
|
};
|
|
22538
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
22539
|
-
|
|
22540
|
-
|
|
22541
|
-
"
|
|
22542
|
-
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
}
|
|
22548
|
-
)
|
|
22549
|
-
] });
|
|
22523
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22524
|
+
"svg",
|
|
22525
|
+
{
|
|
22526
|
+
className: "chartSVG",
|
|
22527
|
+
ref: svgRef,
|
|
22528
|
+
id: chartId,
|
|
22529
|
+
style: { width: "100%", height: "100%" }
|
|
22530
|
+
}
|
|
22531
|
+
) });
|
|
22550
22532
|
};
|
|
22551
22533
|
const StackHorizontalChart = ({
|
|
22552
22534
|
isDateType,
|
|
@@ -22862,7 +22844,7 @@ const StackHorizontalChart = ({
|
|
|
22862
22844
|
barChart,
|
|
22863
22845
|
innerWidth2
|
|
22864
22846
|
).customTickValue ?? innerHeight2 / 30
|
|
22865
|
-
).tickSizeOuter(0);
|
|
22847
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
22866
22848
|
}
|
|
22867
22849
|
};
|
|
22868
22850
|
const getYAxis = () => {
|
|
@@ -22893,7 +22875,7 @@ const StackHorizontalChart = ({
|
|
|
22893
22875
|
const groupIndex = Array.from(columnGroups.nodes()).indexOf(nodes[i].parentNode);
|
|
22894
22876
|
return { props: seriesData[groupIndex]?.properties, groupIndex };
|
|
22895
22877
|
};
|
|
22896
|
-
const
|
|
22878
|
+
const baseRects = rects.enter().append("rect").merge(rects).attr("y", (d) => yScale(d.data.dimension) - columnWidth / 2).attr("height", columnWidth).attr("fill", (d, i, nodes) => getPropsForRect(nodes, i).props?.color || "gray").attr("stroke", (d, i, nodes) => {
|
|
22897
22879
|
const props = getPropsForRect(nodes, i).props;
|
|
22898
22880
|
return props?.stackBorderStyle === 0 ? "none" : formatOptions.column.stackBorderVisibility ? props.stackBorderColor : "none";
|
|
22899
22881
|
}).attr(
|
|
@@ -22943,7 +22925,9 @@ const StackHorizontalChart = ({
|
|
|
22943
22925
|
selectAll('[hoverId="' + legend + '"]').classed("highlight", false).classed("unhighlight", false);
|
|
22944
22926
|
hideTooltipOnMouseOut();
|
|
22945
22927
|
});
|
|
22946
|
-
|
|
22928
|
+
baseRects.attr("x", (d) => xScaleBottom(0));
|
|
22929
|
+
const finalRects = baseRects;
|
|
22930
|
+
finalRects.attr("x", (d) => Math.min(xScaleBottom(d[0]), xScaleBottom(d[1]))).attr("width", (d) => Math.abs(xScaleBottom(d[1]) - xScaleBottom(d[0])));
|
|
22947
22931
|
columnGroups.exit().remove();
|
|
22948
22932
|
gTag.selectAll(".parentGroup").raise();
|
|
22949
22933
|
};
|
|
@@ -23242,18 +23226,15 @@ const StackHorizontalChart = ({
|
|
|
23242
23226
|
console.error(e);
|
|
23243
23227
|
}
|
|
23244
23228
|
};
|
|
23245
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
23246
|
-
|
|
23247
|
-
|
|
23248
|
-
"
|
|
23249
|
-
|
|
23250
|
-
|
|
23251
|
-
|
|
23252
|
-
|
|
23253
|
-
|
|
23254
|
-
}
|
|
23255
|
-
)
|
|
23256
|
-
] });
|
|
23229
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23230
|
+
"svg",
|
|
23231
|
+
{
|
|
23232
|
+
className: "chartSVG",
|
|
23233
|
+
ref: svgRef,
|
|
23234
|
+
id: chartId,
|
|
23235
|
+
style: { width: "100%", height: "100%" }
|
|
23236
|
+
}
|
|
23237
|
+
) });
|
|
23257
23238
|
};
|
|
23258
23239
|
const NormalizedStackHorizontalBarChart = ({
|
|
23259
23240
|
isDateType,
|
|
@@ -23533,7 +23514,7 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23533
23514
|
{
|
|
23534
23515
|
xAxisBottom = axisBottom(xScaleBottom).tickSize(
|
|
23535
23516
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ? -innerHeight2 : 0 : 0
|
|
23536
|
-
).ticks(innerWidth2 / 30, "%").tickSizeOuter(0);
|
|
23517
|
+
).ticks(innerWidth2 / 30, "%").tickPadding(8).tickSizeOuter(0);
|
|
23537
23518
|
}
|
|
23538
23519
|
};
|
|
23539
23520
|
const getYAxis = () => {
|
|
@@ -23570,7 +23551,7 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23570
23551
|
const groupIndex = Array.from(columnGroups.nodes()).indexOf(nodes[i].parentNode);
|
|
23571
23552
|
return { props: seriesData[groupIndex]?.properties, groupIndex };
|
|
23572
23553
|
};
|
|
23573
|
-
const
|
|
23554
|
+
const baseRects = rects.enter().append("rect").merge(rects).attr("y", (d) => yScale(d.data.dimension) - yScale.bandwidth() / 2).attr("height", yScale.bandwidth()).attr("fill", (d, i, nodes) => getPropsForRect(nodes, i).props?.color || "gray").attr("stroke", (d, i, nodes) => {
|
|
23574
23555
|
const props = getPropsForRect(nodes, i).props;
|
|
23575
23556
|
return props?.stackBorderStyle === 0 ? "none" : formatOptions.column.stackBorderVisibility ? props.stackBorderColor : "none";
|
|
23576
23557
|
}).attr(
|
|
@@ -23616,7 +23597,8 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23616
23597
|
gTag.select(`#dim-background-${d.data.dimension}`).attr("visibility", "hidden");
|
|
23617
23598
|
hideTooltipOnMouseOut();
|
|
23618
23599
|
});
|
|
23619
|
-
|
|
23600
|
+
const finalRects = baseRects;
|
|
23601
|
+
finalRects.attr("x", (d) => Math.min(xScaleBottom(d[0]), xScaleBottom(d[1]))).attr("width", (d) => Math.abs(xScaleBottom(d[1]) - xScaleBottom(d[0])));
|
|
23620
23602
|
columnGroups.exit().remove();
|
|
23621
23603
|
gTag.selectAll(".parentGroup").raise();
|
|
23622
23604
|
};
|
|
@@ -23706,18 +23688,15 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23706
23688
|
createStackLineData();
|
|
23707
23689
|
drawLineChart();
|
|
23708
23690
|
};
|
|
23709
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
23710
|
-
|
|
23711
|
-
|
|
23712
|
-
"
|
|
23713
|
-
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
}
|
|
23719
|
-
)
|
|
23720
|
-
] });
|
|
23691
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23692
|
+
"svg",
|
|
23693
|
+
{
|
|
23694
|
+
className: "chartSVG",
|
|
23695
|
+
ref: svgRef,
|
|
23696
|
+
id: chartId,
|
|
23697
|
+
style: { width: "100%", height: "100%" }
|
|
23698
|
+
}
|
|
23699
|
+
) });
|
|
23721
23700
|
};
|
|
23722
23701
|
const LayeredHorizontalBarChart = ({
|
|
23723
23702
|
isDateType,
|
|
@@ -24028,7 +24007,7 @@ const LayeredHorizontalBarChart = ({
|
|
|
24028
24007
|
barChart,
|
|
24029
24008
|
innerWidth2
|
|
24030
24009
|
).customTickValue ?? innerHeight2 / 30
|
|
24031
|
-
).tickSizeOuter(0);
|
|
24010
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
24032
24011
|
}
|
|
24033
24012
|
};
|
|
24034
24013
|
const getYAxis = () => {
|
|
@@ -24402,18 +24381,15 @@ const LayeredHorizontalBarChart = ({
|
|
|
24402
24381
|
console.error(e);
|
|
24403
24382
|
}
|
|
24404
24383
|
};
|
|
24405
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
"
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
}
|
|
24415
|
-
)
|
|
24416
|
-
] });
|
|
24384
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24385
|
+
"svg",
|
|
24386
|
+
{
|
|
24387
|
+
className: "chartSVG",
|
|
24388
|
+
ref: svgRef,
|
|
24389
|
+
id: chartId,
|
|
24390
|
+
style: { width: "100%", height: "100%" }
|
|
24391
|
+
}
|
|
24392
|
+
) });
|
|
24417
24393
|
};
|
|
24418
24394
|
const HorizontalHistogramChart = ({
|
|
24419
24395
|
isDateType,
|
|
@@ -24794,7 +24770,7 @@ const HorizontalHistogramChart = ({
|
|
|
24794
24770
|
customYaxisMinValue,
|
|
24795
24771
|
customYaxisMaxValue
|
|
24796
24772
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
24797
|
-
).tickSizeOuter(0);
|
|
24773
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
24798
24774
|
}
|
|
24799
24775
|
if (isSecondaryAxisDrawn) {
|
|
24800
24776
|
xAxisTop = axisTop(xScaleTop).tickFormat(
|
|
@@ -24820,7 +24796,7 @@ const HorizontalHistogramChart = ({
|
|
|
24820
24796
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
24821
24797
|
).tickSize(
|
|
24822
24798
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
24823
|
-
).tickSizeOuter(0);
|
|
24799
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
24824
24800
|
}
|
|
24825
24801
|
};
|
|
24826
24802
|
const getYAxis = () => {
|
|
@@ -25010,18 +24986,15 @@ const HorizontalHistogramChart = ({
|
|
|
25010
24986
|
barChart
|
|
25011
24987
|
);
|
|
25012
24988
|
};
|
|
25013
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
25014
|
-
|
|
25015
|
-
|
|
25016
|
-
"
|
|
25017
|
-
|
|
25018
|
-
|
|
25019
|
-
|
|
25020
|
-
|
|
25021
|
-
|
|
25022
|
-
}
|
|
25023
|
-
)
|
|
25024
|
-
] });
|
|
24989
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24990
|
+
"svg",
|
|
24991
|
+
{
|
|
24992
|
+
className: "chartSVG",
|
|
24993
|
+
ref: svgRef,
|
|
24994
|
+
id: chartId,
|
|
24995
|
+
style: { width: "100%", height: "100%" }
|
|
24996
|
+
}
|
|
24997
|
+
) });
|
|
25025
24998
|
};
|
|
25026
24999
|
const AreaChart = ({
|
|
25027
25000
|
isDateType,
|
|
@@ -25362,7 +25335,7 @@ const AreaChart = ({
|
|
|
25362
25335
|
customYaxisMinValue,
|
|
25363
25336
|
customYaxisMaxValue
|
|
25364
25337
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
25365
|
-
).tickSizeOuter(0);
|
|
25338
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
25366
25339
|
}
|
|
25367
25340
|
};
|
|
25368
25341
|
const getXAxis = () => {
|
|
@@ -25391,7 +25364,11 @@ const AreaChart = ({
|
|
|
25391
25364
|
areaGroupsEnter.append("path").attr("hoverId", (d) => d.legend.replace(/ /g, "-")).attr("class", "area parentGroup").attr(
|
|
25392
25365
|
"fill",
|
|
25393
25366
|
(d) => d.properties.color !== "#ffffff" ? d.properties.color : "none"
|
|
25394
|
-
).style("fill-opacity", formatOptions.plotArea.fillOpacity).style("pointer-events", "none").attr("d", (d) => areaGeneratorStart(d.data)).
|
|
25367
|
+
).style("fill-opacity", formatOptions.plotArea.fillOpacity).style("pointer-events", "none").attr("d", (d) => areaGeneratorStart(d.data)).each(function(d) {
|
|
25368
|
+
{
|
|
25369
|
+
select$2(this).attr("d", areaGenerator(d.data));
|
|
25370
|
+
}
|
|
25371
|
+
});
|
|
25395
25372
|
areaGroupsEnter.merge(areaGroups).each(function(d) {
|
|
25396
25373
|
const g = select$2(this);
|
|
25397
25374
|
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2.data)).attr(
|
|
@@ -25543,18 +25520,15 @@ const AreaChart = ({
|
|
|
25543
25520
|
);
|
|
25544
25521
|
}
|
|
25545
25522
|
};
|
|
25546
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
25547
|
-
|
|
25548
|
-
|
|
25549
|
-
"
|
|
25550
|
-
|
|
25551
|
-
|
|
25552
|
-
|
|
25553
|
-
|
|
25554
|
-
|
|
25555
|
-
}
|
|
25556
|
-
)
|
|
25557
|
-
] });
|
|
25523
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25524
|
+
"svg",
|
|
25525
|
+
{
|
|
25526
|
+
className: "chartSVG",
|
|
25527
|
+
ref: svgRef,
|
|
25528
|
+
id: chartId,
|
|
25529
|
+
style: { width: "100%", height: "100%" }
|
|
25530
|
+
}
|
|
25531
|
+
) });
|
|
25558
25532
|
};
|
|
25559
25533
|
const StackAreaChart = ({
|
|
25560
25534
|
isDateType,
|
|
@@ -25907,7 +25881,7 @@ const StackAreaChart = ({
|
|
|
25907
25881
|
customYaxisMinValue,
|
|
25908
25882
|
customYaxisMaxValue
|
|
25909
25883
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
25910
|
-
).tickSizeOuter(0);
|
|
25884
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
25911
25885
|
}
|
|
25912
25886
|
};
|
|
25913
25887
|
const getXAxis = () => {
|
|
@@ -25940,7 +25914,11 @@ const StackAreaChart = ({
|
|
|
25940
25914
|
areaGroupsEnter.append("path").attr(
|
|
25941
25915
|
"hoverId",
|
|
25942
25916
|
(d) => d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
25943
|
-
).attr("class", "area parentGroup").attr("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("fill-opacity", formatOptions.plotArea.fillOpacity).style("pointer-events", "none").attr("d", (d) => areaGeneratorStart(d)).
|
|
25917
|
+
).attr("class", "area parentGroup").attr("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("fill-opacity", formatOptions.plotArea.fillOpacity).style("pointer-events", "none").attr("d", (d) => areaGeneratorStart(d)).each(function(d) {
|
|
25918
|
+
{
|
|
25919
|
+
select$2(this).attr("d", areaGenerator(d));
|
|
25920
|
+
}
|
|
25921
|
+
});
|
|
25944
25922
|
areaGroupsEnter.merge(areaGroups).each(function(d, i) {
|
|
25945
25923
|
const g = select$2(this);
|
|
25946
25924
|
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2)).attr("stroke", (d2) => d2.color !== "#ffffff" ? d2.color : "none").attr("stroke-dasharray", () => {
|
|
@@ -26121,18 +26099,15 @@ const StackAreaChart = ({
|
|
|
26121
26099
|
})
|
|
26122
26100
|
);
|
|
26123
26101
|
};
|
|
26124
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
26125
|
-
|
|
26126
|
-
|
|
26127
|
-
"
|
|
26128
|
-
|
|
26129
|
-
|
|
26130
|
-
|
|
26131
|
-
|
|
26132
|
-
|
|
26133
|
-
}
|
|
26134
|
-
)
|
|
26135
|
-
] });
|
|
26102
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26103
|
+
"svg",
|
|
26104
|
+
{
|
|
26105
|
+
className: "chartSVG",
|
|
26106
|
+
ref: svgRef,
|
|
26107
|
+
id: chartId,
|
|
26108
|
+
style: { width: "100%", height: "100%" }
|
|
26109
|
+
}
|
|
26110
|
+
) });
|
|
26136
26111
|
};
|
|
26137
26112
|
const NormalizedStackAreaChart = ({
|
|
26138
26113
|
isDateType,
|
|
@@ -26436,7 +26411,7 @@ const NormalizedStackAreaChart = ({
|
|
|
26436
26411
|
).ticks(
|
|
26437
26412
|
dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30,
|
|
26438
26413
|
"%"
|
|
26439
|
-
).tickSizeOuter(0);
|
|
26414
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
26440
26415
|
}
|
|
26441
26416
|
};
|
|
26442
26417
|
const getXAxis = () => {
|
|
@@ -26474,7 +26449,12 @@ const NormalizedStackAreaChart = ({
|
|
|
26474
26449
|
areaGroupsEnter.append("path").attr(
|
|
26475
26450
|
"hoverId",
|
|
26476
26451
|
(d) => d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
26477
|
-
).attr("class", "area parentGroup").attr("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("fill-opacity", formatOptions.plotArea.fillOpacity).style("pointer-events", "none").attr("d", (d) => columnGeneratorStart(d)).
|
|
26452
|
+
).attr("class", "area parentGroup").attr("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("fill-opacity", formatOptions.plotArea.fillOpacity).style("pointer-events", "none").attr("d", (d) => columnGeneratorStart(d)).each(function(d) {
|
|
26453
|
+
const path2 = select$2(this);
|
|
26454
|
+
{
|
|
26455
|
+
path2.attr("d", columnGenerator(d));
|
|
26456
|
+
}
|
|
26457
|
+
});
|
|
26478
26458
|
areaGroupsEnter.merge(areaGroups).each(function(d, i) {
|
|
26479
26459
|
const g = select$2(this);
|
|
26480
26460
|
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => columnGenerator(d2)).attr("stroke", (d2) => d2.color !== "#ffffff" ? d2.color : "none").attr("stroke-dasharray", () => {
|
|
@@ -26655,18 +26635,15 @@ const NormalizedStackAreaChart = ({
|
|
|
26655
26635
|
})
|
|
26656
26636
|
);
|
|
26657
26637
|
};
|
|
26658
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
26659
|
-
|
|
26660
|
-
|
|
26661
|
-
"
|
|
26662
|
-
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
}
|
|
26668
|
-
)
|
|
26669
|
-
] });
|
|
26638
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26639
|
+
"svg",
|
|
26640
|
+
{
|
|
26641
|
+
className: "chartSVG",
|
|
26642
|
+
ref: svgRef,
|
|
26643
|
+
id: chartId,
|
|
26644
|
+
style: { width: "100%", height: "100%" }
|
|
26645
|
+
}
|
|
26646
|
+
) });
|
|
26670
26647
|
};
|
|
26671
26648
|
const TSankeyDataLabelPostion = {
|
|
26672
26649
|
left: "Left",
|
|
@@ -27111,18 +27088,15 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
27111
27088
|
logError$2(fileName$8, "drawPieDataLabels", error);
|
|
27112
27089
|
}
|
|
27113
27090
|
};
|
|
27114
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
27115
|
-
|
|
27116
|
-
|
|
27117
|
-
"
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
}
|
|
27124
|
-
)
|
|
27125
|
-
] });
|
|
27091
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27092
|
+
"svg",
|
|
27093
|
+
{
|
|
27094
|
+
className: "chartSVG",
|
|
27095
|
+
ref: svgRef,
|
|
27096
|
+
id: chartId,
|
|
27097
|
+
style: { width: "100%", height: "100%" }
|
|
27098
|
+
}
|
|
27099
|
+
) });
|
|
27126
27100
|
};
|
|
27127
27101
|
const fileName$7 = "DonutChart.tsx";
|
|
27128
27102
|
const DonutChart = ({
|
|
@@ -27234,13 +27208,21 @@ const DonutChart = ({
|
|
|
27234
27208
|
};
|
|
27235
27209
|
const drawDonutChart = () => {
|
|
27236
27210
|
try {
|
|
27211
|
+
const enableTransition = false;
|
|
27237
27212
|
const arc2 = arc$1().innerRadius(innerRadius).outerRadius(radius);
|
|
27238
27213
|
const arcOver = arc$1().innerRadius(innerRadius).outerRadius(radius + 10);
|
|
27239
|
-
chartAreaTagG.append("g").attr("class", "parentGroup").attr("fill-opacity", chartFormatOptions.plotArea.opacity).attr("transform", `${getPiePosition()}`)
|
|
27214
|
+
const parentGroup = chartAreaTagG.append("g").attr("class", "parentGroup").attr("fill-opacity", chartFormatOptions.plotArea.opacity).attr("transform", `${getPiePosition()}`);
|
|
27215
|
+
const paths = parentGroup.selectAll("path").data(pieChartData).enter().append("path").attr("class", (d) => "path " + d.data.legend).attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr(
|
|
27240
27216
|
"fill",
|
|
27241
27217
|
(d) => d.data.properties.color !== "#ffffff" ? d.data.properties.color : "none"
|
|
27242
|
-
).
|
|
27243
|
-
|
|
27218
|
+
).each(function(d) {
|
|
27219
|
+
const thisPath = d;
|
|
27220
|
+
thisPath._current = { startAngle: 0, endAngle: 0 };
|
|
27221
|
+
}).on("mouseover.arc", function() {
|
|
27222
|
+
if (enableTransition) ;
|
|
27223
|
+
else {
|
|
27224
|
+
select$2(this).attr("d", arcOver);
|
|
27225
|
+
}
|
|
27244
27226
|
}).on("mousemove.text", (d) => {
|
|
27245
27227
|
showTooltipOnMouseMove(
|
|
27246
27228
|
[
|
|
@@ -27262,11 +27244,16 @@ const DonutChart = ({
|
|
|
27262
27244
|
],
|
|
27263
27245
|
chartFormatOptions
|
|
27264
27246
|
);
|
|
27265
|
-
}).on("mouseout.text", () => {
|
|
27266
|
-
|
|
27267
|
-
|
|
27268
|
-
|
|
27247
|
+
}).on("mouseout.text", () => hideTooltipOnMouseOut()).on("mouseout.arc", function() {
|
|
27248
|
+
if (enableTransition) ;
|
|
27249
|
+
else {
|
|
27250
|
+
select$2(this).attr("d", arc2);
|
|
27251
|
+
}
|
|
27269
27252
|
});
|
|
27253
|
+
if (enableTransition) ;
|
|
27254
|
+
else {
|
|
27255
|
+
paths.attr("d", (d) => arc2(d));
|
|
27256
|
+
}
|
|
27270
27257
|
} catch (error) {
|
|
27271
27258
|
logError$2(fileName$7, "drawDonutChart", error);
|
|
27272
27259
|
}
|
|
@@ -27511,18 +27498,15 @@ const DonutChart = ({
|
|
|
27511
27498
|
logError$2(fileName$7, "drawTotalValue", error);
|
|
27512
27499
|
}
|
|
27513
27500
|
};
|
|
27514
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
-
"
|
|
27518
|
-
|
|
27519
|
-
|
|
27520
|
-
|
|
27521
|
-
|
|
27522
|
-
|
|
27523
|
-
}
|
|
27524
|
-
)
|
|
27525
|
-
] });
|
|
27501
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27502
|
+
"svg",
|
|
27503
|
+
{
|
|
27504
|
+
className: "chartSVG",
|
|
27505
|
+
ref: svgRef,
|
|
27506
|
+
id: chartId,
|
|
27507
|
+
style: { width: "100%", height: "100%" }
|
|
27508
|
+
}
|
|
27509
|
+
) });
|
|
27526
27510
|
};
|
|
27527
27511
|
const fileName$6 = "TreemapChart.tsx";
|
|
27528
27512
|
const Treemap = ({ data, formatOptions, chartId }) => {
|
|
@@ -27702,18 +27686,15 @@ const Treemap = ({ data, formatOptions, chartId }) => {
|
|
|
27702
27686
|
logError$2(fileName$6, "initChartRect", error);
|
|
27703
27687
|
}
|
|
27704
27688
|
};
|
|
27705
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
"
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
|
|
27713
|
-
|
|
27714
|
-
}
|
|
27715
|
-
)
|
|
27716
|
-
] });
|
|
27689
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27690
|
+
"svg",
|
|
27691
|
+
{
|
|
27692
|
+
className: "chartSVG",
|
|
27693
|
+
ref: svgRef,
|
|
27694
|
+
id: chartId,
|
|
27695
|
+
style: { width: "100%", height: "100%" }
|
|
27696
|
+
}
|
|
27697
|
+
) });
|
|
27717
27698
|
};
|
|
27718
27699
|
const fileName$5 = "PieofPieChart.tsx";
|
|
27719
27700
|
const PieofPie = ({
|
|
@@ -28130,18 +28111,15 @@ const PieofPie = ({
|
|
|
28130
28111
|
logError$2(fileName$5, "initLegendList", error);
|
|
28131
28112
|
}
|
|
28132
28113
|
};
|
|
28133
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
28134
|
-
|
|
28135
|
-
|
|
28136
|
-
"
|
|
28137
|
-
|
|
28138
|
-
|
|
28139
|
-
|
|
28140
|
-
|
|
28141
|
-
|
|
28142
|
-
}
|
|
28143
|
-
)
|
|
28144
|
-
] });
|
|
28114
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28115
|
+
"svg",
|
|
28116
|
+
{
|
|
28117
|
+
className: "chartSVG",
|
|
28118
|
+
ref: svgRef,
|
|
28119
|
+
id: chartId,
|
|
28120
|
+
style: { width: "100%", height: "100%" }
|
|
28121
|
+
}
|
|
28122
|
+
) });
|
|
28145
28123
|
};
|
|
28146
28124
|
const fileName$4 = "PyramidChart.tsx";
|
|
28147
28125
|
const PyramidChart = ({
|
|
@@ -28489,18 +28467,15 @@ const PyramidChart = ({
|
|
|
28489
28467
|
return 0;
|
|
28490
28468
|
}
|
|
28491
28469
|
};
|
|
28492
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
28493
|
-
|
|
28494
|
-
|
|
28495
|
-
"
|
|
28496
|
-
|
|
28497
|
-
|
|
28498
|
-
|
|
28499
|
-
|
|
28500
|
-
|
|
28501
|
-
}
|
|
28502
|
-
)
|
|
28503
|
-
] });
|
|
28470
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28471
|
+
"svg",
|
|
28472
|
+
{
|
|
28473
|
+
className: "chartSVG",
|
|
28474
|
+
ref: svgRef,
|
|
28475
|
+
id: chartId,
|
|
28476
|
+
style: { width: "100%", height: "100%" }
|
|
28477
|
+
}
|
|
28478
|
+
) });
|
|
28504
28479
|
};
|
|
28505
28480
|
const fileName$3 = "ProgressChart.tsx";
|
|
28506
28481
|
const ProgressChart = ({
|
|
@@ -28733,18 +28708,15 @@ const ProgressChart = ({
|
|
|
28733
28708
|
return "";
|
|
28734
28709
|
}
|
|
28735
28710
|
};
|
|
28736
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
28737
|
-
|
|
28738
|
-
|
|
28739
|
-
"
|
|
28740
|
-
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28744
|
-
|
|
28745
|
-
}
|
|
28746
|
-
)
|
|
28747
|
-
] });
|
|
28711
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28712
|
+
"svg",
|
|
28713
|
+
{
|
|
28714
|
+
className: "chartSVG",
|
|
28715
|
+
ref: svgRef,
|
|
28716
|
+
id: chartId,
|
|
28717
|
+
style: { width: "100%", height: "100%" }
|
|
28718
|
+
}
|
|
28719
|
+
) });
|
|
28748
28720
|
};
|
|
28749
28721
|
const Speedometer = ({
|
|
28750
28722
|
data,
|
|
@@ -29213,18 +29185,15 @@ const Speedometer = ({
|
|
|
29213
29185
|
logError$2(fileName2, "setPointerValueText", error);
|
|
29214
29186
|
}
|
|
29215
29187
|
}
|
|
29216
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
29217
|
-
|
|
29218
|
-
|
|
29219
|
-
"
|
|
29220
|
-
|
|
29221
|
-
|
|
29222
|
-
|
|
29223
|
-
|
|
29224
|
-
|
|
29225
|
-
}
|
|
29226
|
-
)
|
|
29227
|
-
] });
|
|
29188
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29189
|
+
"svg",
|
|
29190
|
+
{
|
|
29191
|
+
className: "chartSVG",
|
|
29192
|
+
ref: svgRef,
|
|
29193
|
+
id: chartId,
|
|
29194
|
+
style: { width: "100%", height: "100%" }
|
|
29195
|
+
}
|
|
29196
|
+
) });
|
|
29228
29197
|
};
|
|
29229
29198
|
function logError(fileName2, functionName, error) {
|
|
29230
29199
|
console.error(`[${fileName2}][${functionName}]`, error);
|
|
@@ -29505,18 +29474,15 @@ const RadialBarChart = ({
|
|
|
29505
29474
|
logError("RadialBarChart.tsx", "getPiePosition", error);
|
|
29506
29475
|
}
|
|
29507
29476
|
};
|
|
29508
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
29509
|
-
|
|
29510
|
-
|
|
29511
|
-
"
|
|
29512
|
-
|
|
29513
|
-
|
|
29514
|
-
|
|
29515
|
-
|
|
29516
|
-
|
|
29517
|
-
}
|
|
29518
|
-
)
|
|
29519
|
-
] });
|
|
29477
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29478
|
+
"svg",
|
|
29479
|
+
{
|
|
29480
|
+
className: "chartSVG",
|
|
29481
|
+
ref: svgRef,
|
|
29482
|
+
id: chartId,
|
|
29483
|
+
style: { width: "100%", height: "100%" }
|
|
29484
|
+
}
|
|
29485
|
+
) });
|
|
29520
29486
|
};
|
|
29521
29487
|
var noop$1 = { value: function() {
|
|
29522
29488
|
} };
|
|
@@ -30047,18 +30013,15 @@ const WordCloud = ({ data, formatOptions, chartId }) => {
|
|
|
30047
30013
|
logError$2(fileName$2, "drawWordCloudChart", e);
|
|
30048
30014
|
}
|
|
30049
30015
|
};
|
|
30050
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
30051
|
-
|
|
30052
|
-
|
|
30053
|
-
"
|
|
30054
|
-
|
|
30055
|
-
|
|
30056
|
-
|
|
30057
|
-
|
|
30058
|
-
|
|
30059
|
-
}
|
|
30060
|
-
)
|
|
30061
|
-
] });
|
|
30016
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30017
|
+
"svg",
|
|
30018
|
+
{
|
|
30019
|
+
className: "chartSVG",
|
|
30020
|
+
ref: svgRef,
|
|
30021
|
+
id: chartId,
|
|
30022
|
+
style: { width: "100%", height: "100%" }
|
|
30023
|
+
}
|
|
30024
|
+
) });
|
|
30062
30025
|
};
|
|
30063
30026
|
var SMALL$1 = 1e-10;
|
|
30064
30027
|
function intersectionArea(circles, stats) {
|
|
@@ -33585,18 +33548,15 @@ const VennChart = ({
|
|
|
33585
33548
|
logError$2("VennChart.tsx", "initLegendListWithTotalValueAllowance", error);
|
|
33586
33549
|
}
|
|
33587
33550
|
};
|
|
33588
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
33589
|
-
|
|
33590
|
-
|
|
33591
|
-
"
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33596
|
-
|
|
33597
|
-
}
|
|
33598
|
-
)
|
|
33599
|
-
] });
|
|
33551
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33552
|
+
"svg",
|
|
33553
|
+
{
|
|
33554
|
+
className: "chartSVG",
|
|
33555
|
+
ref: svgRef,
|
|
33556
|
+
id: chartId,
|
|
33557
|
+
style: { width: "100%", height: "100%" }
|
|
33558
|
+
}
|
|
33559
|
+
) });
|
|
33600
33560
|
};
|
|
33601
33561
|
function max(values, valueof) {
|
|
33602
33562
|
let max2;
|
|
@@ -33979,11 +33939,12 @@ function Sankey() {
|
|
|
33979
33939
|
return sankey;
|
|
33980
33940
|
}
|
|
33981
33941
|
const SankeyChart = ({
|
|
33982
|
-
sankeyLinks,
|
|
33983
|
-
sankeyNodes,
|
|
33984
33942
|
formatOptions,
|
|
33943
|
+
data,
|
|
33985
33944
|
chartId
|
|
33986
33945
|
}) => {
|
|
33946
|
+
let sankeyLinks = JSON.parse(JSON.stringify(data.sankeyLinks));
|
|
33947
|
+
let sankeyNodes = JSON.parse(JSON.stringify(data.sankeyNodes));
|
|
33987
33948
|
const svgRef = useRef();
|
|
33988
33949
|
let chartFormatOptions;
|
|
33989
33950
|
let width;
|
|
@@ -34392,13 +34353,13 @@ const SankeyChart = ({
|
|
|
34392
34353
|
"text-align",
|
|
34393
34354
|
chartFormatOptions.nodes.sankeyChartType === "Left" ? "right" : chartFormatOptions.nodes.sankeyChartType === "Center" ? "center" : "left"
|
|
34394
34355
|
).style("line-height", "20px").attr("title", (d2) => {
|
|
34395
|
-
if (layerWisePercentage.get(d2.name) >
|
|
34396
|
-
return d2.alias ? d2.alias : d2.name;
|
|
34356
|
+
if (layerWisePercentage.get(d2.name) > 0) {
|
|
34357
|
+
return d2.alias ? d2.alias.includes("~$~") ? d2.alias.split("~$~")[1] : d2.alias : d2.name.includes("~$~") ? d2.name.split("~$~")[1] : d2.name;
|
|
34397
34358
|
}
|
|
34398
34359
|
return "";
|
|
34399
34360
|
}).text((d2) => {
|
|
34400
|
-
if (layerWisePercentage.get(d2.name) >
|
|
34401
|
-
return d2.alias ? d2.alias : d2.name;
|
|
34361
|
+
if (layerWisePercentage.get(d2.name) > 0) {
|
|
34362
|
+
return d2.alias ? d2.alias.includes("~$~") ? d2.alias.split("~$~")[1] : d2.alias : d2.name.includes("~$~") ? d2.name.split("~$~")[1] : d2.name;
|
|
34402
34363
|
}
|
|
34403
34364
|
return "";
|
|
34404
34365
|
});
|
|
@@ -34443,7 +34404,7 @@ const SankeyChart = ({
|
|
|
34443
34404
|
"text-align",
|
|
34444
34405
|
chartFormatOptions.nodes.sankeyChartType === "Left" ? "right" : chartFormatOptions.nodes.sankeyChartType === "Center" ? "center" : "left"
|
|
34445
34406
|
).style("line-height", "20px").attr("title", (d2) => {
|
|
34446
|
-
if (layerWisePercentage.get(d2.name) >
|
|
34407
|
+
if (layerWisePercentage.get(d2.name) > 0) {
|
|
34447
34408
|
return chartFormatOptions.nodes.nodeLabelNumberFormat === ",.0%" ? layerWisePercentage.get(d2.name).toFixed(
|
|
34448
34409
|
parseFloat(
|
|
34449
34410
|
chartFormatOptions.nodes.nodeLabelDecimalPrecision
|
|
@@ -34456,7 +34417,7 @@ const SankeyChart = ({
|
|
|
34456
34417
|
}
|
|
34457
34418
|
return "";
|
|
34458
34419
|
}).text((d2) => {
|
|
34459
|
-
if (layerWisePercentage.get(d2.name) >
|
|
34420
|
+
if (layerWisePercentage.get(d2.name) > 0) {
|
|
34460
34421
|
return chartFormatOptions.nodes.nodeLabelNumberFormat === ",.0%" ? layerWisePercentage.get(d2.name).toFixed(
|
|
34461
34422
|
parseFloat(
|
|
34462
34423
|
chartFormatOptions.nodes.nodeLabelDecimalPrecision
|
|
@@ -34551,18 +34512,15 @@ const SankeyChart = ({
|
|
|
34551
34512
|
return { x: 0, y: 0 };
|
|
34552
34513
|
}
|
|
34553
34514
|
};
|
|
34554
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
34555
|
-
|
|
34556
|
-
|
|
34557
|
-
"
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
|
|
34561
|
-
|
|
34562
|
-
|
|
34563
|
-
}
|
|
34564
|
-
)
|
|
34565
|
-
] });
|
|
34515
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34516
|
+
"svg",
|
|
34517
|
+
{
|
|
34518
|
+
className: "chartSVG",
|
|
34519
|
+
ref: svgRef,
|
|
34520
|
+
id: chartId,
|
|
34521
|
+
style: { width: "100%", height: "100%" }
|
|
34522
|
+
}
|
|
34523
|
+
) });
|
|
34566
34524
|
};
|
|
34567
34525
|
const unitedStates = {
|
|
34568
34526
|
"type": "FeatureCollection",
|
|
@@ -52675,7 +52633,7 @@ const BubbleChart = ({
|
|
|
52675
52633
|
)
|
|
52676
52634
|
).tickSize(
|
|
52677
52635
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -innerHeight2 : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? innerHeight2 : 0 : 0 : 0
|
|
52678
|
-
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
52636
|
+
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
52679
52637
|
initXaxis(
|
|
52680
52638
|
chartAreaTagG,
|
|
52681
52639
|
chartFormatOptions,
|
|
@@ -52709,7 +52667,7 @@ const BubbleChart = ({
|
|
|
52709
52667
|
)
|
|
52710
52668
|
).tickSize(
|
|
52711
52669
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
52712
|
-
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
52670
|
+
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
52713
52671
|
initYaxis(
|
|
52714
52672
|
chartAreaTagG,
|
|
52715
52673
|
chartFormatOptions,
|
|
@@ -52798,18 +52756,15 @@ const BubbleChart = ({
|
|
|
52798
52756
|
logError$2("BubbleChart", "initLegendList", e);
|
|
52799
52757
|
}
|
|
52800
52758
|
};
|
|
52801
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
52802
|
-
|
|
52803
|
-
|
|
52804
|
-
"
|
|
52805
|
-
|
|
52806
|
-
|
|
52807
|
-
|
|
52808
|
-
|
|
52809
|
-
|
|
52810
|
-
}
|
|
52811
|
-
)
|
|
52812
|
-
] });
|
|
52759
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
52760
|
+
"svg",
|
|
52761
|
+
{
|
|
52762
|
+
className: "chartSVG",
|
|
52763
|
+
ref: svgRef,
|
|
52764
|
+
id: chartId,
|
|
52765
|
+
style: { width: "100%", height: "100%" }
|
|
52766
|
+
}
|
|
52767
|
+
) });
|
|
52813
52768
|
};
|
|
52814
52769
|
const fileName = "ScatterChart.tsx";
|
|
52815
52770
|
const ScatterChart = ({
|
|
@@ -53079,7 +53034,7 @@ const ScatterChart = ({
|
|
|
53079
53034
|
)
|
|
53080
53035
|
).tickSize(
|
|
53081
53036
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -innerHeight2 : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? innerHeight2 : 0 : 0 : 0
|
|
53082
|
-
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
53037
|
+
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
53083
53038
|
initXaxis(
|
|
53084
53039
|
chartAreaTagG,
|
|
53085
53040
|
chartFormatOptions,
|
|
@@ -53113,7 +53068,7 @@ const ScatterChart = ({
|
|
|
53113
53068
|
)
|
|
53114
53069
|
).tickSize(
|
|
53115
53070
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
53116
|
-
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
53071
|
+
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
53117
53072
|
initYaxis(
|
|
53118
53073
|
chartAreaTagG,
|
|
53119
53074
|
chartFormatOptions,
|
|
@@ -53421,18 +53376,15 @@ const ScatterChart = ({
|
|
|
53421
53376
|
logError$2(fileName, "getJQuerySelector", error);
|
|
53422
53377
|
}
|
|
53423
53378
|
};
|
|
53424
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
53425
|
-
|
|
53426
|
-
|
|
53427
|
-
"
|
|
53428
|
-
|
|
53429
|
-
|
|
53430
|
-
|
|
53431
|
-
|
|
53432
|
-
|
|
53433
|
-
}
|
|
53434
|
-
)
|
|
53435
|
-
] });
|
|
53379
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
53380
|
+
"svg",
|
|
53381
|
+
{
|
|
53382
|
+
className: "chartSVG",
|
|
53383
|
+
ref: svgRef,
|
|
53384
|
+
id: chartId,
|
|
53385
|
+
style: { width: "100%", height: "100%" }
|
|
53386
|
+
}
|
|
53387
|
+
) });
|
|
53436
53388
|
};
|
|
53437
53389
|
const WaterfallChart = ({
|
|
53438
53390
|
isDateType,
|
|
@@ -53823,7 +53775,7 @@ const WaterfallChart = ({
|
|
|
53823
53775
|
customYaxisMinValue,
|
|
53824
53776
|
customYaxisMaxValue
|
|
53825
53777
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
53826
|
-
).tickSizeOuter(0);
|
|
53778
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
53827
53779
|
}
|
|
53828
53780
|
colorScale = ordinal().range([
|
|
53829
53781
|
"#E25A42",
|
|
@@ -54067,18 +54019,15 @@ const WaterfallChart = ({
|
|
|
54067
54019
|
throw error;
|
|
54068
54020
|
}
|
|
54069
54021
|
};
|
|
54070
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
54071
|
-
|
|
54072
|
-
|
|
54073
|
-
"
|
|
54074
|
-
|
|
54075
|
-
|
|
54076
|
-
|
|
54077
|
-
|
|
54078
|
-
|
|
54079
|
-
}
|
|
54080
|
-
)
|
|
54081
|
-
] });
|
|
54022
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
54023
|
+
"svg",
|
|
54024
|
+
{
|
|
54025
|
+
className: "chartSVG",
|
|
54026
|
+
ref: svgRef,
|
|
54027
|
+
id: chartId,
|
|
54028
|
+
style: { width: "100%", height: "100%" }
|
|
54029
|
+
}
|
|
54030
|
+
) });
|
|
54082
54031
|
};
|
|
54083
54032
|
const TornadoChart = ({
|
|
54084
54033
|
isDateType,
|
|
@@ -54441,7 +54390,7 @@ const TornadoChart = ({
|
|
|
54441
54390
|
barChart,
|
|
54442
54391
|
innerWidth2
|
|
54443
54392
|
).customTickValue ?? (dataTableHeight > 0 ? (innerWidth2 - dataTableHeight) / 30 : innerWidth2 / 30)
|
|
54444
|
-
).tickSizeOuter(0);
|
|
54393
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
54445
54394
|
};
|
|
54446
54395
|
const getChartType = (lineData) => {
|
|
54447
54396
|
formatOptions.plotArea.plotAreaCalculatedHigh;
|
|
@@ -54568,18 +54517,15 @@ const TornadoChart = ({
|
|
|
54568
54517
|
barChart
|
|
54569
54518
|
);
|
|
54570
54519
|
};
|
|
54571
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
54572
|
-
|
|
54573
|
-
|
|
54574
|
-
"
|
|
54575
|
-
|
|
54576
|
-
|
|
54577
|
-
|
|
54578
|
-
|
|
54579
|
-
|
|
54580
|
-
}
|
|
54581
|
-
)
|
|
54582
|
-
] });
|
|
54520
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
54521
|
+
"svg",
|
|
54522
|
+
{
|
|
54523
|
+
className: "chartSVG",
|
|
54524
|
+
ref: svgRef,
|
|
54525
|
+
id: chartId,
|
|
54526
|
+
style: { width: "100%", height: "100%" }
|
|
54527
|
+
}
|
|
54528
|
+
) });
|
|
54583
54529
|
};
|
|
54584
54530
|
export {
|
|
54585
54531
|
AreaChart,
|