График MREACT
function MyChart() {
const data = React.useMemo(
() => [
{
specialLabel: 'Hello World!',
data: [
//...
]
}
],
[]
)
const getLabel = React.useCallback(series => series.specialLabel, [])
return (
<div
style={{
width: '400px',
height: '300px'
}}
>
<Chart data={data} getLabel={getLabel} />
</div>
)
}
Adorable Anteater