const chartConfig = ChartWrapper
.create('bar', data.labels , data.datasets, {})
.addDataLabels(true)
.addZoom(true)
.build('mixed-chart');
return (
<div>
<Chart type={chartConfig.type} data={chartConfig.data} options={chartConfig.options} />
</div>
);import { ChartWrapper } from 'stz-chart-maker';
import { Chart } from 'react-chartjs-2';
const chart = ChartWrapper
.create('bar', ['A', 'B', 'C'], [{ data: [10, 20, 30] }])
.addZoom(true)
.addDataLabels(true)
.build('basic-bar');
<Chart {...chart} />;