datastake-daf 0.6.387 → 0.6.389
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/components/index.js
CHANGED
|
@@ -45802,6 +45802,9 @@ const useLegendConfig = ({
|
|
|
45802
45802
|
} = legendConfig;
|
|
45803
45803
|
const legendEnabled = enabled !== undefined ? isPdf || enabled : isPdf;
|
|
45804
45804
|
const [legendItems, setLegendItems] = React__default["default"].useState(_legendItems);
|
|
45805
|
+
React__default["default"].useEffect(() => {
|
|
45806
|
+
setLegendItems(_legendItems);
|
|
45807
|
+
}, [_legendItems]);
|
|
45805
45808
|
return {
|
|
45806
45809
|
legendEnabled,
|
|
45807
45810
|
legendItems,
|
|
@@ -49879,9 +49882,6 @@ function ColumnChart(_ref) {
|
|
|
49879
49882
|
const {
|
|
49880
49883
|
token
|
|
49881
49884
|
} = useToken$e();
|
|
49882
|
-
console.log({
|
|
49883
|
-
legendConfig
|
|
49884
|
-
});
|
|
49885
49885
|
const {
|
|
49886
49886
|
legendEnabled,
|
|
49887
49887
|
legendItems,
|
|
@@ -49948,16 +49948,6 @@ function ColumnChart(_ref) {
|
|
|
49948
49948
|
}
|
|
49949
49949
|
};
|
|
49950
49950
|
}, []);
|
|
49951
|
-
console.log({
|
|
49952
|
-
legendItems
|
|
49953
|
-
});
|
|
49954
|
-
console.log({
|
|
49955
|
-
legendEnabled,
|
|
49956
|
-
legendPosition,
|
|
49957
|
-
legendLayout,
|
|
49958
|
-
legendInteractive,
|
|
49959
|
-
legendStyle
|
|
49960
|
-
});
|
|
49961
49951
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
49962
49952
|
className: "flex flex-1 flex-column justify-content-center",
|
|
49963
49953
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
package/package.json
CHANGED
|
@@ -109,7 +109,6 @@ export default function ColumnChart({
|
|
|
109
109
|
const containerRef = React.useRef(null);
|
|
110
110
|
const chartRef = React.useRef(null);
|
|
111
111
|
const { token } = useToken();
|
|
112
|
-
console.log({legendConfig})
|
|
113
112
|
|
|
114
113
|
const {
|
|
115
114
|
legendEnabled,
|
|
@@ -208,8 +207,6 @@ export default function ColumnChart({
|
|
|
208
207
|
};
|
|
209
208
|
}, []);
|
|
210
209
|
|
|
211
|
-
console.log({legendItems})
|
|
212
|
-
console.log({legendEnabled, legendPosition, legendLayout, legendInteractive, legendStyle})
|
|
213
210
|
|
|
214
211
|
return (
|
|
215
212
|
<div className="flex flex-1 flex-column justify-content-center">
|
|
@@ -13,6 +13,10 @@ export const useLegendConfig = ({legendConfig, isPdf}) => {
|
|
|
13
13
|
const legendEnabled = enabled !== undefined ? (isPdf || enabled) : isPdf;
|
|
14
14
|
|
|
15
15
|
const [legendItems, setLegendItems] = React.useState(_legendItems);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
setLegendItems(_legendItems);
|
|
19
|
+
}, [_legendItems]);
|
|
16
20
|
|
|
17
21
|
return {
|
|
18
22
|
legendEnabled,
|