
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
ngx-d3-pie-chart
Advanced tools
This library is a simple Angular component featuring a pie chart rendered with D3.js. It's probably useful, but it's principal purpose it to illustrate the article I've published at https://www.beyondjava.net/ngx-d3-pie-chart.
This library is a simple Angular component featuring a pie chart rendered with D3.js. It's probably useful, but it's principal purpose it to illustrate the article I've published at https://www.beyondjava.net/ngx-d3-pie-chart.
However, feel free to contribute pull request to make this library a first-class citizen of the Angular and D3 world!
The library has been developed with Angular 6. In theory, it should work with older versions of Angular, too, but I haven't tested this yet.
There's a minimalistic demo project at https://github.com/stephanrauh/ngx-d3/tree/simple-pie-chart.
Install the library with npm i ngx-d3-pie-chart --save
<lib-pie-chart [data]="pieChartData"></lib-pie-chart>
import { PieChartData } from 'projects/pie-chart/src/public_api';
...
public pieChartData: Array<PieChartData>: Array<PieChartData> = [
{ value: 10, caption: 'apples', color: 'green' },
{ value: 20, caption: 'oranges', color: 'orange' },
{ value: 30, caption: 'bananas', color: 'yellow' }
];
Pull requests and bug reports are welcome. Please send them to the bug tracker of the project page: https://github.com/stephanrauh/ExploringAngular/tree/master/embedding-pdf
ngx-d3-pie-chart has been published under an Apache V2 license.
The library is based on https://github.com/d3, which has been published under an BSD 3-Clause "New" or "Revised" License
FAQs
This library is a simple Angular component featuring a pie chart rendered with D3.js. It's probably useful, but it's principal purpose it to illustrate the article I've published at https://www.beyondjava.net/ngx-d3-pie-chart.
We found that ngx-d3-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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.