Answers for "recharts pie chart different colors"

1

recharts pie chart different colors

<Pie
  data={data} 
  cx={120} 
  cy={200} 
  innerRadius={60}
  outerRadius={80} 
  fill="#8884d8"
  paddingAngle={5}
>
  {
    data.map((entry, index) => <Cell fill={COLORS[index % COLORS.length]}/>)
  }
</Pie>
Posted by: Guest on March-10-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language