
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.
d3-react-pie-chart
Advanced tools
npm i d3-react-pie-chart
import { PieChart } from 'd3-react-pie-chart';
const MyPieChart = () => {
const sampleData = [
{type: 'TypeA', value: 7}
{type: 'TypeB', value: 4}
{type: 'TypeC', value: 2}
{type: 'TypeD', value: 2}
{type: 'TypeE', value: 3}
{type: 'TypeF', value: 5}
]
const dataAccessorField: string = 'value' // field name of the data value
const dataLabelField: string = 'type' // field name of the label value
const innerRadius: number = 0.35 // OPTIONAL - creates a donut - Valid values 0 - 0.35
const dimensions: { height: number } = {height: 300} // determines both height and width of the chart
return
<PieChart
data={sampleData}
dataAccessorField={dataAccessorField}
dataLabelField={dataLabelField}
dimensions={dimensions}
innerRadius={innerRadius}
/>;
};
export default MyPieChart;
FAQs
A component library for data visualization with React and D3
We found that d3-react-pie-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.