react-chart-js/examples/line-chart-example/src/LineChartExample.tsx
2021-11-11 16:30:02 +07:00

28 lines
814 B
TypeScript

import React from 'react';
import { ReactChartJs } from '@cubetiq/react-chart-js';
function LineChartExample(props: any) {
return (
<ReactChartJs
chartConfig={{
type: 'pie',
data: {
labels: ['Red', 'Blue', 'Yellow'],
datasets: [
{
label: 'My First Dataset',
data: [300, 50, 100],
backgroundColor: ['rgb(255, 99, 132)', 'rgb(54, 162, 235)', 'rgb(255, 205, 86)'],
hoverOffset: 4,
},
],
},
}}
containerProps={null}
canvasProps={null}
/>
);
}
export default LineChartExample;