我正在尝试将superset-ui集成到Reactjs应用程序中。我遵循关于国家预防机制的文件和github样本,但是当我启动项目时,它会显示错误
错误chartType=“枢轴表”-Error:项与键“枢轴表”未注册。
这是我的密码
import { SuperChart } from '@superset-ui/core';
import PivotTableChartPlugin from '@superset-ui/legacy-plugin-chart-pivot-table';
new PivotTableChartPlugin().configure({ key: 'pivot-table' }).register();
const PivotTable = () => {
const datasource = {
columnFormats: {},
verboseMap: {
sum__num: 'sum__num',
},
};
return (
<SuperChart
chartType="pivot-table"
width={400}
height={400}
datasource={datasource}
queriesData={[{ /* sample data */ }]}
/>
);
}
export default PivotTable;
有人知道吗?
发布于 2021-02-24 12:38:58
试一试
new PivotTableChartPlugin().configure({ key: 'pivot_table' }).register();
这不是枢轴表,而是pivot_table
https://stackoverflow.com/questions/66349923
复制相似问题