import React from
'react'
;
import { RadialBarChart, RadialBar } from
'recharts'
;
const App = () => {
const data = [
{ name:
'A'
, x: 1, fill:
"green"
},
{ name:
'B'
, x: 2, fill:
"yellow"
},
{ name:
'C'
, x: 3, fill:
"aqua"
},
{ name:
'D'
, x: 4, fill:
"blue"
},
{ name:
'E'
, x: 5, fill:
"orange"
},
{ name:
'F'
, x: 6, fill:
"red"
},
{ name:
'G'
, x: 7, fill:
"black"
},
{ name:
'H'
, x: 8, fill:
"purple"
},
{ name:
'I'
, x: 9, fill:
"gray"
},
];
return
(
<RadialBarChart width={500}
height={500} data={data}>
<RadialBar minAngle={15} dataKey=
"x"
/>
</RadialBarChart>
);
}
export
default
App;