GitHub user rick-chou closed a discussion: How to use `@superset-ui/core` & `@superset-ui/plugin-chart-echarts`
I follow the superset storybook https://apache-superset.github.io/superset-ui/?path=/story/legacy-chart-plugins-legacy-preset-chart-nvd3-pie--basic ```tsx import { SuperChart } from "@superset-ui/core"; import { EchartsPieChartPlugin } from "@superset-ui/plugin-chart-echarts"; new EchartsPieChartPlugin().configure({ key: "pie" }).register(); const SupersetChart = () => { return ( <div> <SuperChart chartType="pie" datasource={{ verboseMap: {}, }} enableNoResults formData={{ colorScheme: "d3Category10", donut: false, labelsOutside: true, numberFormat: ".3s", pieLabelType: "key", showLabels: true, showLegend: true, vizType: "pie", }} height={400} queriesData={[ { data: [ { x: "boy", y: 48133355, }, { x: "girl", y: 32546308, }, ], }, ]} width={400} /> </div> ); }; export default SupersetChart; ``` and there are many errors <img width="953" alt="Screenshot 2025-04-11 at 15 25 54" src="https://github.com/user-attachments/assets/589b4def-de5e-4c20-819d-b2deb2a11b7e" /> GitHub link: https://github.com/apache/superset/discussions/33094 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
