
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-radial-bar-chart
Advanced tools
环形柱状图(玉玦图) by canvas
import RadialBarChart from 'react-radial-bar-chart';
<RingBarChart />
{
list: [ // example
{ name: 'Q1', percent: 0.5, backgroundColor: '' },
{ name: 'Q2', percent: 0.4 },
{ name: 'Q3', percent: 0.3 },
{ name: 'Q4', percent: 0.2 },
],
lineWidth: 20, // default
width: 250, // default
height: 250, // default
radius: 100, // default
onClick: (e, ringInfo), // default
onHover: (e, ringInfo), // default
onResize: ({ ratio, clientWidth, clientHeight, ratioWidth, ratioHeight }, e), // default
title: '',
isGradient: false,
labelStyle: '#333',
dataStyle: '#fff',
tooltip: { // default
show: true,
formatter: (ringInfo) => {
return `占比: ${ringInfo.percent*100}%`;
}
},
tooltipStyle: {
backgroundColor: 'rgba(0,0,0,0.65)',
...
},
}
In a project I have to make a React RadialBarChart compoment, and I found radial-bar. But its name is not centered. Also I do not need import all of it just for radial-bar, so I write one.

color-conversion-rgb、react-chart-canvaspercent at the end of ring (finish)name at the begin of ring (finish)percent in ring vertical center (finish)percent rotate for read (finish)percent stay in bar and name out, in a regular rule (finish)FAQs
react component about radial bar chart
The npm package react-radial-bar-chart receives a total of 226 weekly downloads. As such, react-radial-bar-chart popularity was classified as not popular.
We found that react-radial-bar-chart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.