import * as React from 'react'; import { DonutChart, IDonutChartProps, IChartProps, IChartDataPoint } from '@fluentui/react-charting'; export class DonutChartBasicExample extends React.Component { constructor(props: IDonutChartProps) { super(props); } public render(): JSX.Element { const points: IChartDataPoint[] = [ { legend: 'first', data: 20000, color: '#E5E5E5', xAxisCalloutData: '2020/04/30' }, { legend: 'second', data: 39000, color: '#0078D4', xAxisCalloutData: '2020/04/20' }, ]; const chartTitle = 'Stacked Bar chart example'; const data: IChartProps = { chartTitle: chartTitle, chartData: points, }; return ( ); } }