Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (
<div>
<div style="{{">
`${datum.name}: ${datum.y}`} />}
legendData={[{ name: 'Cats' }, { name: 'Birds' }, { name: 'Dogs' }]}
legendOrientation="vertical"
legendPosition="right"
height={200}
padding={{
bottom: 50,
left: 50,
right: 200, // Adjusted to accommodate legend
top: 50
}}
themeColor={ChartThemeColor.cyan}
width={800}
>
</div></div>