
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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 12 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.