react-charts
react-charts copied to clipboard
Custome CSS for Chart
how to use custome css, colors for charts ? is there a additional way to send options ?
Please see https://github.com/react-tools/react-charts/blob/master/www/src/containers/CustomStyles.js
This works for me.
const data = React.useMemo(
() => [
{
label: 'Series 1',
data: [
{ primary: 'Oct', secondary: 10 },
],
color: '#1f77b4'
},
{
label: 'Series 2',
data: [
{ primary: 'Oct', secondary: 5 },
],
color: '#ff7f0e'
},
{
label: 'Series 3',
data: [
{ primary: 'Oct', secondary: 7 },
],
color: '#ffff4d'
}
],
[]
)