@evergis/charts 2.0.55 → 2.0.56
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/charts/BarChart/drawLines/index.d.ts +3 -3
- package/dist/charts/BarChart/drawLines/types.d.ts +2 -2
- package/dist/charts/BarChart/index.d.ts +2 -2
- package/dist/charts/BarChart/types.d.ts +15 -8
- package/dist/charts.cjs.development.js +9 -0
- package/dist/charts.cjs.development.js.map +1 -1
- package/dist/charts.cjs.production.min.js +1 -1
- package/dist/charts.cjs.production.min.js.map +1 -1
- package/dist/charts.esm.js +9 -0
- package/dist/charts.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/charts.esm.js
CHANGED
|
@@ -2465,6 +2465,7 @@ const draw$4 = (node, props) => {
|
|
|
2465
2465
|
const {
|
|
2466
2466
|
data,
|
|
2467
2467
|
lineData = [],
|
|
2468
|
+
markers = [],
|
|
2468
2469
|
barWidth: barWidthProp,
|
|
2469
2470
|
barPadding,
|
|
2470
2471
|
colors,
|
|
@@ -2614,6 +2615,14 @@ const draw$4 = (node, props) => {
|
|
|
2614
2615
|
groups,
|
|
2615
2616
|
barWidth
|
|
2616
2617
|
});
|
|
2618
|
+
markers.forEach(marker => {
|
|
2619
|
+
if (!marker) {
|
|
2620
|
+
return;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
svg.append('line').style("stroke", marker.color || "inherit").style("stroke-width", 1).style("stroke-dasharray", "5, 3").attr("x1", width / data.length * marker.value + 1).attr("y1", 0).attr("x2", width / data.length * marker.value + 1).attr("y2", height - marginTop - marginBottom + marginBottom / 2);
|
|
2624
|
+
svg.append("text").attr("y", height).attr("x", width / data.length * marker.value + 1).attr('text-anchor', 'middle').attr("class", ["marker", marker.className].filter(Boolean).join(" ")).style("fill", (marker == null ? void 0 : marker.color) || "inherit").text(marker.label);
|
|
2625
|
+
});
|
|
2617
2626
|
let lines = null;
|
|
2618
2627
|
|
|
2619
2628
|
if (Array.isArray(lineData) && lineData.length > 0) {
|