cx 24.10.0 → 24.10.1
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.js +3 -1
- package/dist/manifest.js +610 -610
- package/package.json +1 -1
- package/src/charts/Legend.js +1 -1
- package/src/charts/PieChart.d.ts +92 -89
- package/src/charts/PieChart.js +529 -527
package/dist/charts.js
CHANGED
|
@@ -851,6 +851,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
|
|
|
851
851
|
legend: undefined,
|
|
852
852
|
hoverId: undefined,
|
|
853
853
|
br: undefined,
|
|
854
|
+
legendDisplayText: undefined,
|
|
854
855
|
},
|
|
855
856
|
]),
|
|
856
857
|
);
|
|
@@ -930,6 +931,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
|
|
|
930
931
|
hoverId: data.hoverId,
|
|
931
932
|
hoverChannel: this.hoverChannel,
|
|
932
933
|
hoverSync: instance.hoverSync,
|
|
934
|
+
displayText: data.legendDisplayText,
|
|
933
935
|
onClick: function onClick(e) {
|
|
934
936
|
_this2.onLegendClick(e, instance);
|
|
935
937
|
},
|
|
@@ -1752,7 +1754,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1752
1754
|
children: [
|
|
1753
1755
|
_this.renderShape(e, shape),
|
|
1754
1756
|
/*#__PURE__*/ jsx("div", {
|
|
1755
|
-
children: e.name,
|
|
1757
|
+
children: e.displayText || e.name,
|
|
1756
1758
|
}),
|
|
1757
1759
|
],
|
|
1758
1760
|
},
|