pace-chart-lib 1.0.5 → 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.
- package/dist/pace-chart-lib.es.js +406 -473
- package/dist/pace-chart-lib.umd.js +406 -473
- package/package.json +1 -1
|
@@ -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("position", "absolute").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;
|
|
@@ -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,7 +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
|
-
|
|
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])));
|
|
18558
18551
|
columnGroups.exit().remove();
|
|
18559
18552
|
gTag.selectAll(".parentGroup").raise();
|
|
18560
18553
|
};
|
|
@@ -18867,18 +18860,15 @@ const StackColumnChart = ({
|
|
|
18867
18860
|
} catch (e) {
|
|
18868
18861
|
}
|
|
18869
18862
|
};
|
|
18870
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
"
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
}
|
|
18880
|
-
)
|
|
18881
|
-
] });
|
|
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
|
+
) });
|
|
18882
18872
|
};
|
|
18883
18873
|
const NormalizedStackColumnChart = ({
|
|
18884
18874
|
isDateType,
|
|
@@ -19190,7 +19180,7 @@ const NormalizedStackColumnChart = ({
|
|
|
19190
19180
|
).ticks(
|
|
19191
19181
|
dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30,
|
|
19192
19182
|
"%"
|
|
19193
|
-
).tickSizeOuter(0);
|
|
19183
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
19194
19184
|
}
|
|
19195
19185
|
};
|
|
19196
19186
|
const getXAxis = () => {
|
|
@@ -19245,7 +19235,8 @@ const NormalizedStackColumnChart = ({
|
|
|
19245
19235
|
const { props } = getPropsForRect(nodes, i);
|
|
19246
19236
|
return d.data[d.key] === 0 && props?.hideZeroValues ? "hidden" : "visible";
|
|
19247
19237
|
});
|
|
19248
|
-
|
|
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])));
|
|
19249
19240
|
rectsEnter.merge(rects).on("mousemove", (event2, d) => {
|
|
19250
19241
|
showTooltipOnMouseMove(
|
|
19251
19242
|
[
|
|
@@ -19404,18 +19395,15 @@ const NormalizedStackColumnChart = ({
|
|
|
19404
19395
|
})
|
|
19405
19396
|
);
|
|
19406
19397
|
};
|
|
19407
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
"
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
}
|
|
19417
|
-
)
|
|
19418
|
-
] });
|
|
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
|
+
) });
|
|
19419
19407
|
};
|
|
19420
19408
|
const fileName$a = "ChartsWithoutAxisFunctions.ts";
|
|
19421
19409
|
function marginCalculationForBubbleScatter(width, height, maxMeasure, formatOptions, maxDimension, maxLegendDimensions) {
|
|
@@ -20262,7 +20250,7 @@ const ColumnHistogramChart = ({
|
|
|
20262
20250
|
false,
|
|
20263
20251
|
innerWidth2
|
|
20264
20252
|
).yAxisLabelArray
|
|
20265
|
-
).ticks(innerHeight2 / 50).tickSizeOuter(0);
|
|
20253
|
+
).ticks(innerHeight2 / 50).tickPadding(8).tickSizeOuter(0);
|
|
20266
20254
|
}
|
|
20267
20255
|
};
|
|
20268
20256
|
const getXAxis = () => {
|
|
@@ -20279,7 +20267,7 @@ const ColumnHistogramChart = ({
|
|
|
20279
20267
|
)
|
|
20280
20268
|
).tickSize(
|
|
20281
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
|
|
20282
|
-
).tickValues(labelArray).ticks(innerWidth2 / 30).tickSizeOuter(0);
|
|
20270
|
+
).tickValues(labelArray).ticks(innerWidth2 / 30).tickPadding(8).tickSizeOuter(0);
|
|
20283
20271
|
formatOptions.bins.binsCalculation === "Automatic" ? xAxis.ticks(thresholds) : xAxis.tickValues(periods).ticks(innerWidth2 / 50);
|
|
20284
20272
|
};
|
|
20285
20273
|
const getChartType = (lineData) => {
|
|
@@ -20395,18 +20383,15 @@ const ColumnHistogramChart = ({
|
|
|
20395
20383
|
filteredDimension
|
|
20396
20384
|
);
|
|
20397
20385
|
};
|
|
20398
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
"
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
}
|
|
20408
|
-
)
|
|
20409
|
-
] });
|
|
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
|
+
) });
|
|
20410
20395
|
};
|
|
20411
20396
|
const LineChart = ({
|
|
20412
20397
|
isDateType,
|
|
@@ -20776,7 +20761,7 @@ const LineChart = ({
|
|
|
20776
20761
|
customYaxisMinValue,
|
|
20777
20762
|
customYaxisMaxValue
|
|
20778
20763
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
20779
|
-
).tickSizeOuter(0);
|
|
20764
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
20780
20765
|
}
|
|
20781
20766
|
if (isSecondaryAxisDrawn) {
|
|
20782
20767
|
yAxisRight = axisRight(yScaleRight).tickFormat(
|
|
@@ -20802,7 +20787,7 @@ const LineChart = ({
|
|
|
20802
20787
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
20803
20788
|
).tickSize(
|
|
20804
20789
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
20805
|
-
).tickSizeOuter(0);
|
|
20790
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
20806
20791
|
}
|
|
20807
20792
|
};
|
|
20808
20793
|
const getXAxis = () => {
|
|
@@ -20817,16 +20802,17 @@ const LineChart = ({
|
|
|
20817
20802
|
cData.axis = lData.properties.axis;
|
|
20818
20803
|
});
|
|
20819
20804
|
});
|
|
20820
|
-
const lineGenerator = line$1().x(
|
|
20821
|
-
|
|
20822
|
-
|
|
20805
|
+
const lineGenerator = line$1().x((d) => {
|
|
20806
|
+
const val = xScale(d.dimension);
|
|
20807
|
+
return val != null ? val : 0;
|
|
20808
|
+
}).y(
|
|
20823
20809
|
(d) => d.axis === "Primary" ? yScaleLeft(d.value) : yScaleRight(d.value)
|
|
20824
20810
|
).defined((d) => d.hideZero ? Boolean(d.value) : true).curve(getCurveType(formatOptions));
|
|
20825
20811
|
let lines = gTag.selectAll(".parentGroup").data([lineData]);
|
|
20826
20812
|
lines = lines.enter().append("g").attr("class", "lines parentGroup").merge(lines);
|
|
20827
20813
|
let lineGroups = lines.selectAll(".line-group").data((d) => d);
|
|
20828
20814
|
let lineGroupsEnter = lineGroups.enter().append("g").attr("class", "line-group");
|
|
20829
|
-
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");
|
|
20830
20816
|
lineGroupsEnter.merge(lineGroups).each(function(d) {
|
|
20831
20817
|
const g = select$2(this);
|
|
20832
20818
|
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine").attr("d", (d2) => lineGenerator(d2.data)).attr(
|
|
@@ -20847,11 +20833,7 @@ const LineChart = ({
|
|
|
20847
20833
|
).attr(
|
|
20848
20834
|
"stroke-width",
|
|
20849
20835
|
(d2) => d2.properties.lineStyle !== "None" ? 2.5 : 0
|
|
20850
|
-
).attr("
|
|
20851
|
-
const path2 = select$2(this);
|
|
20852
|
-
const totalLength = this.getTotalLength();
|
|
20853
|
-
path2.attr("stroke-dasharray", totalLength + " " + totalLength).attr("stroke-dashoffset", totalLength).transition().duration(2e3).ease(linear$2).attr("stroke-dashoffset", 0);
|
|
20854
|
-
});
|
|
20836
|
+
).attr("d", (d2) => lineGenerator(d2.data));
|
|
20855
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) {
|
|
20856
20838
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
20857
20839
|
svg.selectAll(
|
|
@@ -20968,18 +20950,15 @@ const LineChart = ({
|
|
|
20968
20950
|
);
|
|
20969
20951
|
}
|
|
20970
20952
|
};
|
|
20971
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
"
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
}
|
|
20981
|
-
)
|
|
20982
|
-
] });
|
|
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
|
+
) });
|
|
20983
20962
|
};
|
|
20984
20963
|
const StackLineChart = ({
|
|
20985
20964
|
isDateType,
|
|
@@ -21331,7 +21310,7 @@ const StackLineChart = ({
|
|
|
21331
21310
|
customYaxisMinValue,
|
|
21332
21311
|
customYaxisMaxValue
|
|
21333
21312
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
21334
|
-
).tickSizeOuter(0);
|
|
21313
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
21335
21314
|
}
|
|
21336
21315
|
};
|
|
21337
21316
|
const getXAxis = () => {
|
|
@@ -21352,27 +21331,36 @@ const StackLineChart = ({
|
|
|
21352
21331
|
let lines = gTag.selectAll(".parentGroup").data([stackChartData]);
|
|
21353
21332
|
lines = lines.enter().append("g").attr("class", "lines parentGroup").merge(lines);
|
|
21354
21333
|
let lineGroups = lines.selectAll(".line-group").data((d) => d);
|
|
21355
|
-
|
|
21334
|
+
const lineGroupsEnter = lineGroups.enter().append("g").attr("class", (d) => "line-group " + d.key.replace(/ /g, "-"));
|
|
21356
21335
|
lineGroupsEnter.attr(
|
|
21357
21336
|
"hoverId",
|
|
21358
21337
|
(d) => d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
21359
21338
|
).append("path").attr("class", "line").attr("fill", "none");
|
|
21360
21339
|
lineGroupsEnter.merge(lineGroups).each(function(d, i) {
|
|
21361
21340
|
const g = select$2(this);
|
|
21362
|
-
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(
|
|
21363
21342
|
"stroke-dasharray",
|
|
21364
21343
|
seriesData[i].properties.lineStyle === "dotted" ? "0,3" : seriesData[i].properties.lineStyle === "dashed" ? "20,10,5,5,5,10" : ""
|
|
21365
|
-
).attr(
|
|
21366
|
-
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
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
|
+
}
|
|
21370
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() {
|
|
21371
21356
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
21372
|
-
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);
|
|
21373
21362
|
}).on("mouseleave", function() {
|
|
21374
21363
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
|
|
21375
|
-
svg.selectAll(`[hoverId="${getJQuerySelector(d.key.split("~$~")[1].replace(/ /g, "-"))}"]`).classed("highlight", false).classed("unhighlight", false);
|
|
21376
21364
|
});
|
|
21377
21365
|
});
|
|
21378
21366
|
lineGroups.exit().remove();
|
|
@@ -21513,18 +21501,15 @@ const StackLineChart = ({
|
|
|
21513
21501
|
visibleBars = fVisibleBars;
|
|
21514
21502
|
drawLineChart();
|
|
21515
21503
|
};
|
|
21516
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
21517
|
-
|
|
21518
|
-
|
|
21519
|
-
"
|
|
21520
|
-
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
|
|
21524
|
-
|
|
21525
|
-
}
|
|
21526
|
-
)
|
|
21527
|
-
] });
|
|
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
|
+
) });
|
|
21528
21513
|
};
|
|
21529
21514
|
const NormalisedStackLineChart = ({
|
|
21530
21515
|
isDateType,
|
|
@@ -21814,7 +21799,7 @@ const NormalisedStackLineChart = ({
|
|
|
21814
21799
|
).ticks(
|
|
21815
21800
|
dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30,
|
|
21816
21801
|
"%"
|
|
21817
|
-
).tickSizeOuter(0);
|
|
21802
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
21818
21803
|
}
|
|
21819
21804
|
};
|
|
21820
21805
|
const getXAxis = () => {
|
|
@@ -21850,7 +21835,7 @@ const NormalisedStackLineChart = ({
|
|
|
21850
21835
|
).append("path").attr("class", "line").attr("fill", "none");
|
|
21851
21836
|
lineGroupsEnter.merge(lineGroups).each(function(d, i) {
|
|
21852
21837
|
const g = select$2(this);
|
|
21853
|
-
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(
|
|
21854
21839
|
"stroke-dasharray",
|
|
21855
21840
|
seriesData[i].properties.lineStyle === "dotted" ? "0,3" : seriesData[i].properties.lineStyle === "dashed" ? "20,10,5,5,5,10" : ""
|
|
21856
21841
|
).attr(
|
|
@@ -21859,16 +21844,16 @@ const NormalisedStackLineChart = ({
|
|
|
21859
21844
|
).attr(
|
|
21860
21845
|
"stroke-width",
|
|
21861
21846
|
seriesData[i].properties.lineStyle !== "None" ? 2.5 : 0
|
|
21862
|
-
).attr("fill", "none")
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
}
|
|
21847
|
+
).attr("fill", "none");
|
|
21848
|
+
const totalLength = pathSel.node().getTotalLength();
|
|
21849
|
+
{
|
|
21850
|
+
pathSel.attr("stroke-dasharray", totalLength + " " + totalLength).attr("stroke-dashoffset", 0);
|
|
21851
|
+
}
|
|
21867
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() {
|
|
21868
21853
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
21869
21854
|
svg.selectAll(
|
|
21870
21855
|
`[hoverId="${getJQuerySelector(
|
|
21871
|
-
d.key.split("~$~")[1].replace(/ /g, "-")
|
|
21856
|
+
d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
21872
21857
|
)}"]`
|
|
21873
21858
|
).classed("highlight", true).classed("unhighlight", false);
|
|
21874
21859
|
}).on("mouseleave", function() {
|
|
@@ -22017,18 +22002,15 @@ const NormalisedStackLineChart = ({
|
|
|
22017
22002
|
})
|
|
22018
22003
|
);
|
|
22019
22004
|
};
|
|
22020
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
"
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
}
|
|
22030
|
-
)
|
|
22031
|
-
] });
|
|
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
|
+
) });
|
|
22032
22014
|
};
|
|
22033
22015
|
const HorizontalBarChart = ({
|
|
22034
22016
|
isDateType,
|
|
@@ -22359,7 +22341,7 @@ const HorizontalBarChart = ({
|
|
|
22359
22341
|
customYaxisMinValue,
|
|
22360
22342
|
customYaxisMaxValue
|
|
22361
22343
|
).customTickValue ?? innerHeight2 / 30
|
|
22362
|
-
).tickSizeOuter(0);
|
|
22344
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
22363
22345
|
}
|
|
22364
22346
|
if (isSecondaryAxisDrawn) {
|
|
22365
22347
|
xAxisTop = axisTop(xScaleTop).tickFormat(
|
|
@@ -22385,7 +22367,7 @@ const HorizontalBarChart = ({
|
|
|
22385
22367
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
22386
22368
|
).tickSize(
|
|
22387
22369
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
22388
|
-
).tickSizeOuter(0);
|
|
22370
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
22389
22371
|
}
|
|
22390
22372
|
};
|
|
22391
22373
|
const getYAxis = () => {
|
|
@@ -22413,7 +22395,7 @@ const HorizontalBarChart = ({
|
|
|
22413
22395
|
).attr("transform", (d) => `translate(0, ${yScale(d.dimension) - columnWidth / 2})`);
|
|
22414
22396
|
columnGroups.attr("transform", (d) => `translate(0, ${yScale(d.dimension) - columnWidth / 2})`);
|
|
22415
22397
|
columnGroupsEnter.merge(columnGroups).attr("transform", (d) => `translate(0, ${yScale(d.dimension) - columnWidth / 2})`);
|
|
22416
|
-
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) => {
|
|
22417
22399
|
const xScaleUsed = data2.properties.axis === "Primary" ? xScaleBottom : xScaleTop;
|
|
22418
22400
|
return d.value >= 0 ? xScaleUsed(0) : xScaleUsed(0);
|
|
22419
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(
|
|
@@ -22422,7 +22404,9 @@ const HorizontalBarChart = ({
|
|
|
22422
22404
|
).style("clip-path", "inset(0px) fill-box").style("shape-rendering", "crispEdges").attr(
|
|
22423
22405
|
"visibility",
|
|
22424
22406
|
(d) => d.value === 0 && formatOptions.xAxisLabel.hideZeroValues ? "hidden" : "visible"
|
|
22425
|
-
)
|
|
22407
|
+
);
|
|
22408
|
+
const finalBars = bars;
|
|
22409
|
+
finalBars.attr("x", (d) => {
|
|
22426
22410
|
const xScaleUsed = data2.properties.axis === "Primary" ? xScaleBottom : xScaleTop;
|
|
22427
22411
|
return d.value >= 0 ? xScaleUsed(0) : xScaleUsed(d.value);
|
|
22428
22412
|
}).attr("width", (d) => {
|
|
@@ -22536,18 +22520,15 @@ const HorizontalBarChart = ({
|
|
|
22536
22520
|
barChart
|
|
22537
22521
|
);
|
|
22538
22522
|
};
|
|
22539
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
"
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
}
|
|
22549
|
-
)
|
|
22550
|
-
] });
|
|
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
|
+
) });
|
|
22551
22532
|
};
|
|
22552
22533
|
const StackHorizontalChart = ({
|
|
22553
22534
|
isDateType,
|
|
@@ -22863,7 +22844,7 @@ const StackHorizontalChart = ({
|
|
|
22863
22844
|
barChart,
|
|
22864
22845
|
innerWidth2
|
|
22865
22846
|
).customTickValue ?? innerHeight2 / 30
|
|
22866
|
-
).tickSizeOuter(0);
|
|
22847
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
22867
22848
|
}
|
|
22868
22849
|
};
|
|
22869
22850
|
const getYAxis = () => {
|
|
@@ -22894,7 +22875,7 @@ const StackHorizontalChart = ({
|
|
|
22894
22875
|
const groupIndex = Array.from(columnGroups.nodes()).indexOf(nodes[i].parentNode);
|
|
22895
22876
|
return { props: seriesData[groupIndex]?.properties, groupIndex };
|
|
22896
22877
|
};
|
|
22897
|
-
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) => {
|
|
22898
22879
|
const props = getPropsForRect(nodes, i).props;
|
|
22899
22880
|
return props?.stackBorderStyle === 0 ? "none" : formatOptions.column.stackBorderVisibility ? props.stackBorderColor : "none";
|
|
22900
22881
|
}).attr(
|
|
@@ -22944,7 +22925,9 @@ const StackHorizontalChart = ({
|
|
|
22944
22925
|
selectAll('[hoverId="' + legend + '"]').classed("highlight", false).classed("unhighlight", false);
|
|
22945
22926
|
hideTooltipOnMouseOut();
|
|
22946
22927
|
});
|
|
22947
|
-
|
|
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])));
|
|
22948
22931
|
columnGroups.exit().remove();
|
|
22949
22932
|
gTag.selectAll(".parentGroup").raise();
|
|
22950
22933
|
};
|
|
@@ -23243,18 +23226,15 @@ const StackHorizontalChart = ({
|
|
|
23243
23226
|
console.error(e);
|
|
23244
23227
|
}
|
|
23245
23228
|
};
|
|
23246
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
23247
|
-
|
|
23248
|
-
|
|
23249
|
-
"
|
|
23250
|
-
|
|
23251
|
-
|
|
23252
|
-
|
|
23253
|
-
|
|
23254
|
-
|
|
23255
|
-
}
|
|
23256
|
-
)
|
|
23257
|
-
] });
|
|
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
|
+
) });
|
|
23258
23238
|
};
|
|
23259
23239
|
const NormalizedStackHorizontalBarChart = ({
|
|
23260
23240
|
isDateType,
|
|
@@ -23534,7 +23514,7 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23534
23514
|
{
|
|
23535
23515
|
xAxisBottom = axisBottom(xScaleBottom).tickSize(
|
|
23536
23516
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ? -innerHeight2 : 0 : 0
|
|
23537
|
-
).ticks(innerWidth2 / 30, "%").tickSizeOuter(0);
|
|
23517
|
+
).ticks(innerWidth2 / 30, "%").tickPadding(8).tickSizeOuter(0);
|
|
23538
23518
|
}
|
|
23539
23519
|
};
|
|
23540
23520
|
const getYAxis = () => {
|
|
@@ -23571,7 +23551,7 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23571
23551
|
const groupIndex = Array.from(columnGroups.nodes()).indexOf(nodes[i].parentNode);
|
|
23572
23552
|
return { props: seriesData[groupIndex]?.properties, groupIndex };
|
|
23573
23553
|
};
|
|
23574
|
-
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) => {
|
|
23575
23555
|
const props = getPropsForRect(nodes, i).props;
|
|
23576
23556
|
return props?.stackBorderStyle === 0 ? "none" : formatOptions.column.stackBorderVisibility ? props.stackBorderColor : "none";
|
|
23577
23557
|
}).attr(
|
|
@@ -23617,7 +23597,8 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23617
23597
|
gTag.select(`#dim-background-${d.data.dimension}`).attr("visibility", "hidden");
|
|
23618
23598
|
hideTooltipOnMouseOut();
|
|
23619
23599
|
});
|
|
23620
|
-
|
|
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])));
|
|
23621
23602
|
columnGroups.exit().remove();
|
|
23622
23603
|
gTag.selectAll(".parentGroup").raise();
|
|
23623
23604
|
};
|
|
@@ -23707,18 +23688,15 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23707
23688
|
createStackLineData();
|
|
23708
23689
|
drawLineChart();
|
|
23709
23690
|
};
|
|
23710
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
23711
|
-
|
|
23712
|
-
|
|
23713
|
-
"
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
}
|
|
23720
|
-
)
|
|
23721
|
-
] });
|
|
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
|
+
) });
|
|
23722
23700
|
};
|
|
23723
23701
|
const LayeredHorizontalBarChart = ({
|
|
23724
23702
|
isDateType,
|
|
@@ -24029,7 +24007,7 @@ const LayeredHorizontalBarChart = ({
|
|
|
24029
24007
|
barChart,
|
|
24030
24008
|
innerWidth2
|
|
24031
24009
|
).customTickValue ?? innerHeight2 / 30
|
|
24032
|
-
).tickSizeOuter(0);
|
|
24010
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
24033
24011
|
}
|
|
24034
24012
|
};
|
|
24035
24013
|
const getYAxis = () => {
|
|
@@ -24403,18 +24381,15 @@ const LayeredHorizontalBarChart = ({
|
|
|
24403
24381
|
console.error(e);
|
|
24404
24382
|
}
|
|
24405
24383
|
};
|
|
24406
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
"
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
}
|
|
24416
|
-
)
|
|
24417
|
-
] });
|
|
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
|
+
) });
|
|
24418
24393
|
};
|
|
24419
24394
|
const HorizontalHistogramChart = ({
|
|
24420
24395
|
isDateType,
|
|
@@ -24795,7 +24770,7 @@ const HorizontalHistogramChart = ({
|
|
|
24795
24770
|
customYaxisMinValue,
|
|
24796
24771
|
customYaxisMaxValue
|
|
24797
24772
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
24798
|
-
).tickSizeOuter(0);
|
|
24773
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
24799
24774
|
}
|
|
24800
24775
|
if (isSecondaryAxisDrawn) {
|
|
24801
24776
|
xAxisTop = axisTop(xScaleTop).tickFormat(
|
|
@@ -24821,7 +24796,7 @@ const HorizontalHistogramChart = ({
|
|
|
24821
24796
|
).secondaryCustomTickValue ?? innerHeight2 / 30
|
|
24822
24797
|
).tickSize(
|
|
24823
24798
|
formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
24824
|
-
).tickSizeOuter(0);
|
|
24799
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
24825
24800
|
}
|
|
24826
24801
|
};
|
|
24827
24802
|
const getYAxis = () => {
|
|
@@ -25011,18 +24986,15 @@ const HorizontalHistogramChart = ({
|
|
|
25011
24986
|
barChart
|
|
25012
24987
|
);
|
|
25013
24988
|
};
|
|
25014
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
25015
|
-
|
|
25016
|
-
|
|
25017
|
-
"
|
|
25018
|
-
|
|
25019
|
-
|
|
25020
|
-
|
|
25021
|
-
|
|
25022
|
-
|
|
25023
|
-
}
|
|
25024
|
-
)
|
|
25025
|
-
] });
|
|
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
|
+
) });
|
|
25026
24998
|
};
|
|
25027
24999
|
const AreaChart = ({
|
|
25028
25000
|
isDateType,
|
|
@@ -25363,7 +25335,7 @@ const AreaChart = ({
|
|
|
25363
25335
|
customYaxisMinValue,
|
|
25364
25336
|
customYaxisMaxValue
|
|
25365
25337
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
25366
|
-
).tickSizeOuter(0);
|
|
25338
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
25367
25339
|
}
|
|
25368
25340
|
};
|
|
25369
25341
|
const getXAxis = () => {
|
|
@@ -25392,7 +25364,11 @@ const AreaChart = ({
|
|
|
25392
25364
|
areaGroupsEnter.append("path").attr("hoverId", (d) => d.legend.replace(/ /g, "-")).attr("class", "area parentGroup").attr(
|
|
25393
25365
|
"fill",
|
|
25394
25366
|
(d) => d.properties.color !== "#ffffff" ? d.properties.color : "none"
|
|
25395
|
-
).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
|
+
});
|
|
25396
25372
|
areaGroupsEnter.merge(areaGroups).each(function(d) {
|
|
25397
25373
|
const g = select$2(this);
|
|
25398
25374
|
g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2.data)).attr(
|
|
@@ -25544,18 +25520,15 @@ const AreaChart = ({
|
|
|
25544
25520
|
);
|
|
25545
25521
|
}
|
|
25546
25522
|
};
|
|
25547
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
25548
|
-
|
|
25549
|
-
|
|
25550
|
-
"
|
|
25551
|
-
|
|
25552
|
-
|
|
25553
|
-
|
|
25554
|
-
|
|
25555
|
-
|
|
25556
|
-
}
|
|
25557
|
-
)
|
|
25558
|
-
] });
|
|
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
|
+
) });
|
|
25559
25532
|
};
|
|
25560
25533
|
const StackAreaChart = ({
|
|
25561
25534
|
isDateType,
|
|
@@ -25908,7 +25881,7 @@ const StackAreaChart = ({
|
|
|
25908
25881
|
customYaxisMinValue,
|
|
25909
25882
|
customYaxisMaxValue
|
|
25910
25883
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
25911
|
-
).tickSizeOuter(0);
|
|
25884
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
25912
25885
|
}
|
|
25913
25886
|
};
|
|
25914
25887
|
const getXAxis = () => {
|
|
@@ -25941,7 +25914,11 @@ const StackAreaChart = ({
|
|
|
25941
25914
|
areaGroupsEnter.append("path").attr(
|
|
25942
25915
|
"hoverId",
|
|
25943
25916
|
(d) => d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
25944
|
-
).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
|
+
});
|
|
25945
25922
|
areaGroupsEnter.merge(areaGroups).each(function(d, i) {
|
|
25946
25923
|
const g = select$2(this);
|
|
25947
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", () => {
|
|
@@ -26122,18 +26099,15 @@ const StackAreaChart = ({
|
|
|
26122
26099
|
})
|
|
26123
26100
|
);
|
|
26124
26101
|
};
|
|
26125
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
26126
|
-
|
|
26127
|
-
|
|
26128
|
-
"
|
|
26129
|
-
|
|
26130
|
-
|
|
26131
|
-
|
|
26132
|
-
|
|
26133
|
-
|
|
26134
|
-
}
|
|
26135
|
-
)
|
|
26136
|
-
] });
|
|
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
|
+
) });
|
|
26137
26111
|
};
|
|
26138
26112
|
const NormalizedStackAreaChart = ({
|
|
26139
26113
|
isDateType,
|
|
@@ -26437,7 +26411,7 @@ const NormalizedStackAreaChart = ({
|
|
|
26437
26411
|
).ticks(
|
|
26438
26412
|
dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30,
|
|
26439
26413
|
"%"
|
|
26440
|
-
).tickSizeOuter(0);
|
|
26414
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
26441
26415
|
}
|
|
26442
26416
|
};
|
|
26443
26417
|
const getXAxis = () => {
|
|
@@ -26475,7 +26449,12 @@ const NormalizedStackAreaChart = ({
|
|
|
26475
26449
|
areaGroupsEnter.append("path").attr(
|
|
26476
26450
|
"hoverId",
|
|
26477
26451
|
(d) => d.key.includes("~$~") ? d.key.split("~$~")[1].replace(/ /g, "-") : d.key.replace(/ /g, "-")
|
|
26478
|
-
).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
|
+
});
|
|
26479
26458
|
areaGroupsEnter.merge(areaGroups).each(function(d, i) {
|
|
26480
26459
|
const g = select$2(this);
|
|
26481
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", () => {
|
|
@@ -26656,18 +26635,15 @@ const NormalizedStackAreaChart = ({
|
|
|
26656
26635
|
})
|
|
26657
26636
|
);
|
|
26658
26637
|
};
|
|
26659
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
26660
|
-
|
|
26661
|
-
|
|
26662
|
-
"
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
|
|
26668
|
-
}
|
|
26669
|
-
)
|
|
26670
|
-
] });
|
|
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
|
+
) });
|
|
26671
26647
|
};
|
|
26672
26648
|
const TSankeyDataLabelPostion = {
|
|
26673
26649
|
left: "Left",
|
|
@@ -27112,18 +27088,15 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
27112
27088
|
logError$2(fileName$8, "drawPieDataLabels", error);
|
|
27113
27089
|
}
|
|
27114
27090
|
};
|
|
27115
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
27116
|
-
|
|
27117
|
-
|
|
27118
|
-
"
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
}
|
|
27125
|
-
)
|
|
27126
|
-
] });
|
|
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
|
+
) });
|
|
27127
27100
|
};
|
|
27128
27101
|
const fileName$7 = "DonutChart.tsx";
|
|
27129
27102
|
const DonutChart = ({
|
|
@@ -27235,6 +27208,7 @@ const DonutChart = ({
|
|
|
27235
27208
|
};
|
|
27236
27209
|
const drawDonutChart = () => {
|
|
27237
27210
|
try {
|
|
27211
|
+
const enableTransition = false;
|
|
27238
27212
|
const arc2 = arc$1().innerRadius(innerRadius).outerRadius(radius);
|
|
27239
27213
|
const arcOver = arc$1().innerRadius(innerRadius).outerRadius(radius + 10);
|
|
27240
27214
|
const parentGroup = chartAreaTagG.append("g").attr("class", "parentGroup").attr("fill-opacity", chartFormatOptions.plotArea.opacity).attr("transform", `${getPiePosition()}`);
|
|
@@ -27245,7 +27219,10 @@ const DonutChart = ({
|
|
|
27245
27219
|
const thisPath = d;
|
|
27246
27220
|
thisPath._current = { startAngle: 0, endAngle: 0 };
|
|
27247
27221
|
}).on("mouseover.arc", function() {
|
|
27248
|
-
|
|
27222
|
+
if (enableTransition) ;
|
|
27223
|
+
else {
|
|
27224
|
+
select$2(this).attr("d", arcOver);
|
|
27225
|
+
}
|
|
27249
27226
|
}).on("mousemove.text", (d) => {
|
|
27250
27227
|
showTooltipOnMouseMove(
|
|
27251
27228
|
[
|
|
@@ -27268,17 +27245,15 @@ const DonutChart = ({
|
|
|
27268
27245
|
chartFormatOptions
|
|
27269
27246
|
);
|
|
27270
27247
|
}).on("mouseout.text", () => hideTooltipOnMouseOut()).on("mouseout.arc", function() {
|
|
27271
|
-
|
|
27272
|
-
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
{ startAngle: 0, endAngle: 0 },
|
|
27276
|
-
d
|
|
27277
|
-
);
|
|
27278
|
-
return function(t) {
|
|
27279
|
-
return arc2(interpolate2(t));
|
|
27280
|
-
};
|
|
27248
|
+
if (enableTransition) ;
|
|
27249
|
+
else {
|
|
27250
|
+
select$2(this).attr("d", arc2);
|
|
27251
|
+
}
|
|
27281
27252
|
});
|
|
27253
|
+
if (enableTransition) ;
|
|
27254
|
+
else {
|
|
27255
|
+
paths.attr("d", (d) => arc2(d));
|
|
27256
|
+
}
|
|
27282
27257
|
} catch (error) {
|
|
27283
27258
|
logError$2(fileName$7, "drawDonutChart", error);
|
|
27284
27259
|
}
|
|
@@ -27523,18 +27498,15 @@ const DonutChart = ({
|
|
|
27523
27498
|
logError$2(fileName$7, "drawTotalValue", error);
|
|
27524
27499
|
}
|
|
27525
27500
|
};
|
|
27526
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
27527
|
-
|
|
27528
|
-
|
|
27529
|
-
"
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
}
|
|
27536
|
-
)
|
|
27537
|
-
] });
|
|
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
|
+
) });
|
|
27538
27510
|
};
|
|
27539
27511
|
const fileName$6 = "TreemapChart.tsx";
|
|
27540
27512
|
const Treemap = ({ data, formatOptions, chartId }) => {
|
|
@@ -27714,18 +27686,15 @@ const Treemap = ({ data, formatOptions, chartId }) => {
|
|
|
27714
27686
|
logError$2(fileName$6, "initChartRect", error);
|
|
27715
27687
|
}
|
|
27716
27688
|
};
|
|
27717
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
27718
|
-
|
|
27719
|
-
|
|
27720
|
-
"
|
|
27721
|
-
|
|
27722
|
-
|
|
27723
|
-
|
|
27724
|
-
|
|
27725
|
-
|
|
27726
|
-
}
|
|
27727
|
-
)
|
|
27728
|
-
] });
|
|
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
|
+
) });
|
|
27729
27698
|
};
|
|
27730
27699
|
const fileName$5 = "PieofPieChart.tsx";
|
|
27731
27700
|
const PieofPie = ({
|
|
@@ -28142,18 +28111,15 @@ const PieofPie = ({
|
|
|
28142
28111
|
logError$2(fileName$5, "initLegendList", error);
|
|
28143
28112
|
}
|
|
28144
28113
|
};
|
|
28145
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
28146
|
-
|
|
28147
|
-
|
|
28148
|
-
"
|
|
28149
|
-
|
|
28150
|
-
|
|
28151
|
-
|
|
28152
|
-
|
|
28153
|
-
|
|
28154
|
-
}
|
|
28155
|
-
)
|
|
28156
|
-
] });
|
|
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
|
+
) });
|
|
28157
28123
|
};
|
|
28158
28124
|
const fileName$4 = "PyramidChart.tsx";
|
|
28159
28125
|
const PyramidChart = ({
|
|
@@ -28501,18 +28467,15 @@ const PyramidChart = ({
|
|
|
28501
28467
|
return 0;
|
|
28502
28468
|
}
|
|
28503
28469
|
};
|
|
28504
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
28505
|
-
|
|
28506
|
-
|
|
28507
|
-
"
|
|
28508
|
-
|
|
28509
|
-
|
|
28510
|
-
|
|
28511
|
-
|
|
28512
|
-
|
|
28513
|
-
}
|
|
28514
|
-
)
|
|
28515
|
-
] });
|
|
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
|
+
) });
|
|
28516
28479
|
};
|
|
28517
28480
|
const fileName$3 = "ProgressChart.tsx";
|
|
28518
28481
|
const ProgressChart = ({
|
|
@@ -28745,18 +28708,15 @@ const ProgressChart = ({
|
|
|
28745
28708
|
return "";
|
|
28746
28709
|
}
|
|
28747
28710
|
};
|
|
28748
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
28749
|
-
|
|
28750
|
-
|
|
28751
|
-
"
|
|
28752
|
-
|
|
28753
|
-
|
|
28754
|
-
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
}
|
|
28758
|
-
)
|
|
28759
|
-
] });
|
|
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
|
+
) });
|
|
28760
28720
|
};
|
|
28761
28721
|
const Speedometer = ({
|
|
28762
28722
|
data,
|
|
@@ -29225,18 +29185,15 @@ const Speedometer = ({
|
|
|
29225
29185
|
logError$2(fileName2, "setPointerValueText", error);
|
|
29226
29186
|
}
|
|
29227
29187
|
}
|
|
29228
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
29229
|
-
|
|
29230
|
-
|
|
29231
|
-
"
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
29236
|
-
|
|
29237
|
-
}
|
|
29238
|
-
)
|
|
29239
|
-
] });
|
|
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
|
+
) });
|
|
29240
29197
|
};
|
|
29241
29198
|
function logError(fileName2, functionName, error) {
|
|
29242
29199
|
console.error(`[${fileName2}][${functionName}]`, error);
|
|
@@ -29517,18 +29474,15 @@ const RadialBarChart = ({
|
|
|
29517
29474
|
logError("RadialBarChart.tsx", "getPiePosition", error);
|
|
29518
29475
|
}
|
|
29519
29476
|
};
|
|
29520
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
29521
|
-
|
|
29522
|
-
|
|
29523
|
-
"
|
|
29524
|
-
|
|
29525
|
-
|
|
29526
|
-
|
|
29527
|
-
|
|
29528
|
-
|
|
29529
|
-
}
|
|
29530
|
-
)
|
|
29531
|
-
] });
|
|
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
|
+
) });
|
|
29532
29486
|
};
|
|
29533
29487
|
var noop$1 = { value: function() {
|
|
29534
29488
|
} };
|
|
@@ -30059,18 +30013,15 @@ const WordCloud = ({ data, formatOptions, chartId }) => {
|
|
|
30059
30013
|
logError$2(fileName$2, "drawWordCloudChart", e);
|
|
30060
30014
|
}
|
|
30061
30015
|
};
|
|
30062
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
30063
|
-
|
|
30064
|
-
|
|
30065
|
-
"
|
|
30066
|
-
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
}
|
|
30072
|
-
)
|
|
30073
|
-
] });
|
|
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
|
+
) });
|
|
30074
30025
|
};
|
|
30075
30026
|
var SMALL$1 = 1e-10;
|
|
30076
30027
|
function intersectionArea(circles, stats) {
|
|
@@ -33597,18 +33548,15 @@ const VennChart = ({
|
|
|
33597
33548
|
logError$2("VennChart.tsx", "initLegendListWithTotalValueAllowance", error);
|
|
33598
33549
|
}
|
|
33599
33550
|
};
|
|
33600
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
33601
|
-
|
|
33602
|
-
|
|
33603
|
-
"
|
|
33604
|
-
|
|
33605
|
-
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
|
|
33609
|
-
}
|
|
33610
|
-
)
|
|
33611
|
-
] });
|
|
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
|
+
) });
|
|
33612
33560
|
};
|
|
33613
33561
|
function max(values, valueof) {
|
|
33614
33562
|
let max2;
|
|
@@ -34564,18 +34512,15 @@ const SankeyChart = ({
|
|
|
34564
34512
|
return { x: 0, y: 0 };
|
|
34565
34513
|
}
|
|
34566
34514
|
};
|
|
34567
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
34568
|
-
|
|
34569
|
-
|
|
34570
|
-
"
|
|
34571
|
-
|
|
34572
|
-
|
|
34573
|
-
|
|
34574
|
-
|
|
34575
|
-
|
|
34576
|
-
}
|
|
34577
|
-
)
|
|
34578
|
-
] });
|
|
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
|
+
) });
|
|
34579
34524
|
};
|
|
34580
34525
|
const unitedStates = {
|
|
34581
34526
|
"type": "FeatureCollection",
|
|
@@ -52688,7 +52633,7 @@ const BubbleChart = ({
|
|
|
52688
52633
|
)
|
|
52689
52634
|
).tickSize(
|
|
52690
52635
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -innerHeight2 : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? innerHeight2 : 0 : 0 : 0
|
|
52691
|
-
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
52636
|
+
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
52692
52637
|
initXaxis(
|
|
52693
52638
|
chartAreaTagG,
|
|
52694
52639
|
chartFormatOptions,
|
|
@@ -52722,7 +52667,7 @@ const BubbleChart = ({
|
|
|
52722
52667
|
)
|
|
52723
52668
|
).tickSize(
|
|
52724
52669
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
52725
|
-
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
52670
|
+
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
52726
52671
|
initYaxis(
|
|
52727
52672
|
chartAreaTagG,
|
|
52728
52673
|
chartFormatOptions,
|
|
@@ -52811,18 +52756,15 @@ const BubbleChart = ({
|
|
|
52811
52756
|
logError$2("BubbleChart", "initLegendList", e);
|
|
52812
52757
|
}
|
|
52813
52758
|
};
|
|
52814
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
52815
|
-
|
|
52816
|
-
|
|
52817
|
-
"
|
|
52818
|
-
|
|
52819
|
-
|
|
52820
|
-
|
|
52821
|
-
|
|
52822
|
-
|
|
52823
|
-
}
|
|
52824
|
-
)
|
|
52825
|
-
] });
|
|
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
|
+
) });
|
|
52826
52768
|
};
|
|
52827
52769
|
const fileName = "ScatterChart.tsx";
|
|
52828
52770
|
const ScatterChart = ({
|
|
@@ -53092,7 +53034,7 @@ const ScatterChart = ({
|
|
|
53092
53034
|
)
|
|
53093
53035
|
).tickSize(
|
|
53094
53036
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -innerHeight2 : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? innerHeight2 : 0 : 0 : 0
|
|
53095
|
-
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
53037
|
+
).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
53096
53038
|
initXaxis(
|
|
53097
53039
|
chartAreaTagG,
|
|
53098
53040
|
chartFormatOptions,
|
|
@@ -53126,7 +53068,7 @@ const ScatterChart = ({
|
|
|
53126
53068
|
)
|
|
53127
53069
|
).tickSize(
|
|
53128
53070
|
chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
|
|
53129
|
-
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickSizeOuter(0);
|
|
53071
|
+
).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
|
|
53130
53072
|
initYaxis(
|
|
53131
53073
|
chartAreaTagG,
|
|
53132
53074
|
chartFormatOptions,
|
|
@@ -53434,18 +53376,15 @@ const ScatterChart = ({
|
|
|
53434
53376
|
logError$2(fileName, "getJQuerySelector", error);
|
|
53435
53377
|
}
|
|
53436
53378
|
};
|
|
53437
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
53438
|
-
|
|
53439
|
-
|
|
53440
|
-
"
|
|
53441
|
-
|
|
53442
|
-
|
|
53443
|
-
|
|
53444
|
-
|
|
53445
|
-
|
|
53446
|
-
}
|
|
53447
|
-
)
|
|
53448
|
-
] });
|
|
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
|
+
) });
|
|
53449
53388
|
};
|
|
53450
53389
|
const WaterfallChart = ({
|
|
53451
53390
|
isDateType,
|
|
@@ -53836,7 +53775,7 @@ const WaterfallChart = ({
|
|
|
53836
53775
|
customYaxisMinValue,
|
|
53837
53776
|
customYaxisMaxValue
|
|
53838
53777
|
).customTickValue ?? (dataTableHeight > 0 ? (innerHeight2 - dataTableHeight) / 30 : innerHeight2 / 30)
|
|
53839
|
-
).tickSizeOuter(0);
|
|
53778
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
53840
53779
|
}
|
|
53841
53780
|
colorScale = ordinal().range([
|
|
53842
53781
|
"#E25A42",
|
|
@@ -54080,18 +54019,15 @@ const WaterfallChart = ({
|
|
|
54080
54019
|
throw error;
|
|
54081
54020
|
}
|
|
54082
54021
|
};
|
|
54083
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
54084
|
-
|
|
54085
|
-
|
|
54086
|
-
"
|
|
54087
|
-
|
|
54088
|
-
|
|
54089
|
-
|
|
54090
|
-
|
|
54091
|
-
|
|
54092
|
-
}
|
|
54093
|
-
)
|
|
54094
|
-
] });
|
|
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
|
+
) });
|
|
54095
54031
|
};
|
|
54096
54032
|
const TornadoChart = ({
|
|
54097
54033
|
isDateType,
|
|
@@ -54454,7 +54390,7 @@ const TornadoChart = ({
|
|
|
54454
54390
|
barChart,
|
|
54455
54391
|
innerWidth2
|
|
54456
54392
|
).customTickValue ?? (dataTableHeight > 0 ? (innerWidth2 - dataTableHeight) / 30 : innerWidth2 / 30)
|
|
54457
|
-
).tickSizeOuter(0);
|
|
54393
|
+
).tickPadding(8).tickSizeOuter(0);
|
|
54458
54394
|
};
|
|
54459
54395
|
const getChartType = (lineData) => {
|
|
54460
54396
|
formatOptions.plotArea.plotAreaCalculatedHigh;
|
|
@@ -54581,18 +54517,15 @@ const TornadoChart = ({
|
|
|
54581
54517
|
barChart
|
|
54582
54518
|
);
|
|
54583
54519
|
};
|
|
54584
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
54585
|
-
|
|
54586
|
-
|
|
54587
|
-
"
|
|
54588
|
-
|
|
54589
|
-
|
|
54590
|
-
|
|
54591
|
-
|
|
54592
|
-
|
|
54593
|
-
}
|
|
54594
|
-
)
|
|
54595
|
-
] });
|
|
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
|
+
) });
|
|
54596
54529
|
};
|
|
54597
54530
|
export {
|
|
54598
54531
|
AreaChart,
|