How to set the percent of each RadialBar in RadialBarChart?
See original GitHub issueDo you want to request a feature or report a bug?
feature
What is the current behavior?
The code as below:
import {ResponsiveContainer, RadialBar,RadialBarChart,Legend} from 'recharts';
const data = [
{ uv: 100, fill: '#ffff00' },
{ uv: 20, fill: '#83a6ed' },
{ uv: 30, fill: '#83a6ed' },
];
const SimpleRadialBarChart = () => {
return (
<ResponsiveContainer width={200} height={200}>
<RadialBarChart className="radial" cx="50%" cy="50%" innerRadius='20%' outerRadius="80%" data={data}>
<RadialBar minAngle={15} background clockWise={true} dataKey='uv'/>
</RadialBarChart>
</ResponsiveContainer>
);
};
export default SimpleRadialBarChart; result is as
What is the expected behavior?
how to set the percent of each RadialBar. If I want to set the percent of the yellow circle ,what can i do ?
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
“recharts”: “^1.0.0-beta.6”
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:21
Top Results From Across the Web
RadialBar / Circular Gauge Chart Guide & Documentation
Radial Bar Charts or Circular Gauges are mostly used in single unit data to indicate progress/activity. It indicates values in terms of percentage....
Read more >Radial bar chart in tableau - YouTube
How to create a Radial Bar chart in tableau using Data densification technique. Also known as Radial Pie Gauge ChartData Densification ...
Read more >How to Create a Radial Bar Chart and Re-use as ... - YouTube
Want to learn how to design a salary structure? Check: https://salarycourse.caripros.com/thecourseFREE template for my video: Excel for HR ...
Read more >Tableau Tutorial 67: Radial Bar Chart Using Table Calculation
This video is going to talk about how to create radial bar chart in Tableau. The challenge here is to design the radial...
Read more >Creating Radial Bar as Easy as 1-2-3 - YouTube
Creating Radial Bar as Easy as 1-2-3 ... How to create ' Radial Bar Chart ' in Adobe Illustrator | DesignMentor (Adobe Illustrator...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Pimaweichai In case you haven’t discovered yet here is how this can be done:
Adding on to @jefferymills for folks with
n
potential bars, that you can just pass the entiredata
array to theRadialBar
as usual too. Solution looks like this: