datastake-daf 0.6.391 → 0.6.392

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.
@@ -49878,7 +49878,14 @@ function ColumnChart(_ref) {
49878
49878
  const {
49879
49879
  token
49880
49880
  } = useToken$e();
49881
- useLegendConfig({
49881
+ const {
49882
+ legendEnabled,
49883
+ legendItems,
49884
+ legendPosition,
49885
+ legendLayout,
49886
+ legendInteractive,
49887
+ legendStyle
49888
+ } = useLegendConfig({
49882
49889
  legendConfig,
49883
49890
  isPdf
49884
49891
  });
@@ -49937,27 +49944,23 @@ function ColumnChart(_ref) {
49937
49944
  }
49938
49945
  };
49939
49946
  }, []);
49940
- return /*#__PURE__*/jsxRuntime.jsx("div", {
49947
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
49941
49948
  className: "flex flex-1 flex-column justify-content-center",
49942
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
49949
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
49943
49950
  className: "flex justify-content-center",
49944
49951
  children: /*#__PURE__*/jsxRuntime.jsx(Container$1, {
49945
49952
  ref: containerRef,
49946
49953
  height: height,
49947
- isPdf: false,
49954
+ isPdf: isPdf,
49948
49955
  width: width
49949
49956
  })
49950
- })
49951
- })
49952
- // {legendEnabled && legendPosition === 'bottom' && (
49953
- // <CustomLegend
49954
- // items={legendItems}
49955
- // layout={legendLayout}
49956
- // interactive={legendInteractive}
49957
- // style={legendStyle}
49958
- // />
49959
- // )}
49960
- ;
49957
+ }), legendEnabled && legendPosition === 'bottom' && /*#__PURE__*/jsxRuntime.jsx(CustomLegend, {
49958
+ items: legendItems,
49959
+ layout: legendLayout,
49960
+ interactive: legendInteractive,
49961
+ style: legendStyle
49962
+ })]
49963
+ });
49961
49964
  }
49962
49965
 
49963
49966
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.391",
3
+ "version": "0.6.392",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -214,18 +214,18 @@ export default function ColumnChart({
214
214
  <Container
215
215
  ref={containerRef}
216
216
  height={height}
217
- isPdf={false}
217
+ isPdf={isPdf}
218
218
  width={width}
219
219
  ></Container>
220
220
  </div>
221
+ {legendEnabled && legendPosition === 'bottom' && (
222
+ <CustomLegend
223
+ items={legendItems}
224
+ layout={legendLayout}
225
+ interactive={legendInteractive}
226
+ style={legendStyle}
227
+ />
228
+ )}
221
229
  </div>
222
- // {legendEnabled && legendPosition === 'bottom' && (
223
- // <CustomLegend
224
- // items={legendItems}
225
- // layout={legendLayout}
226
- // interactive={legendInteractive}
227
- // style={legendStyle}
228
- // />
229
- // )}
230
230
  );
231
231
  }