
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
ng2-google-charts
Advanced tools
Google Charts module for Angular 2
Please see this page for a live demo.
npm i --save ng2-google-charts
Add the following inside the <head>
element in your index.html
:
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
Import the Ng2GoogleChartsModule
in your app.module.ts
:
import { Ng2GoogleChartsModule } from 'ng2-google-charts';
@NgModule({
...
imports: [
...
Ng2GoogleChartsModule,
],
})
export class AppModule { }
In your templates, use the google-chart
component like this:
<google-chart [data]="pieChartOptions"></google-chart>
and in the corresponding .ts
file:
pieChartOptions = {
chartType: 'PieChart',
dataTable: [
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
],
options: {'title': 'Tasks'},
};
Please see this page for a demo with more examples.
FAQs
Google Charts module for Angular 2 and beyond
The npm package ng2-google-charts receives a total of 6,913 weekly downloads. As such, ng2-google-charts popularity was classified as popular.
We found that ng2-google-charts 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.