
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
react-pie-chart-easy
Advanced tools
A simple and customizable React pie chart component. React pie chart component which is very easy to use and have multiple configuration options for more customization.
The React Pie Chart
simple and customizable React pie chart component. React pie chart component which is very easy to use and have multiple configuration options for more customization.
import ReactPieChart from 'react-pie-chart-easy';
const chartData = [
{ title: 'One', value: 10, color: '#E38627', tooltip: 'I am one' },
{ title: 'Two', value: 15, color: '#C13C37', tooltip: 'I am two' },
{ title: 'Three', value: 20, color: '#6A2135', tooltip: 'I am three' },
];
const showLegend = false
const App = () => (
<ReactPieChart
data={chartData}
backgroundColor={['#E38627', '#C13C37', '#6A2135']}
borderColor={['#FFF', '#FFF', '#FFF']}
radius={90}
animate="yes"
zoom={true}
rotate={45}
showLegend={showLegend}
/>
);
export default App;
data
: Array of data objects (title
, value
, color
, tooltip
).backgroundColor
: Array of background colors for each slice (optional).borderColor
: Array of border colors for each slice (optional).radius
: The radius of the pie chart (default: 100
) in % of the canvas area.cutout
: The inner donut circle size (default: 0
).animate
: Whether to animate the chart ("yes"
or "no"
).zoom
: Whether to enable zoom and pan functionality (boolean).rotate
: Rotation angle of the chart (default: 0
).showLegend
: Whether to show the chart legend (summary) (default: true
).FAQs
A simple and customizable React pie chart component. React pie chart component which is very easy to use and have multiple configuration options for more customization.
The npm package react-pie-chart-easy receives a total of 2 weekly downloads. As such, react-pie-chart-easy popularity was classified as not popular.
We found that react-pie-chart-easy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.