sea-chart 0.0.41-beta.8 → 0.0.41-beta.9

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.
@@ -1,4 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
+ import { generateChartConfig } from '../../utils';
2
3
  import StatisticType from './chart-type';
3
4
  import SelectTable from './select-table';
4
5
  import SelectView from './select-view';
@@ -39,11 +40,16 @@ const CommonDataSettings = _ref => {
39
40
  view_id: selectedViewId
40
41
  });
41
42
  }, [chart, onChange]);
43
+ const generateConfig = useCallback(config => {
44
+ return generateChartConfig(config, tables);
45
+ }, [tables]);
42
46
  const {
43
47
  table_id
44
48
  } = chart.config;
45
49
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatisticType, {
46
- chart: chart
50
+ chart: chart,
51
+ generateChartConfig: generateConfig,
52
+ onChange: onChange
47
53
  }), /*#__PURE__*/React.createElement(SelectTable, {
48
54
  tables: tables,
49
55
  selectedTableId: table_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "0.0.41-beta.8",
3
+ "version": "0.0.41-beta.9",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@antv/data-set": "0.11.8",