Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@swimlane/ngx-charts
Advanced tools
@swimlane/ngx-charts is a declarative charting framework for Angular. It provides a variety of chart types and is built using D3.js. The package is designed to be simple to use and highly customizable, making it suitable for a wide range of data visualization needs.
Bar Chart
This feature allows you to create a vertical bar chart. The code sample demonstrates how to bind data to the chart and configure various options such as axis labels and legend.
<ngx-charts-bar-vertical [results]="data" [scheme]="colorScheme" [xAxis]="true" [yAxis]="true" [legend]="true" [showXAxisLabel]="true" [showYAxisLabel]="true" [xAxisLabel]="'Country'" [yAxisLabel]="'Population'"></ngx-charts-bar-vertical>
Line Chart
This feature allows you to create a line chart. The code sample shows how to set up the chart with data and configure the axes and legend.
<ngx-charts-line-chart [results]="data" [scheme]="colorScheme" [xAxis]="true" [yAxis]="true" [legend]="true" [showXAxisLabel]="true" [showYAxisLabel]="true" [xAxisLabel]="'Year'" [yAxisLabel]="'Value'"></ngx-charts-line-chart>
Pie Chart
This feature allows you to create a pie chart. The code sample demonstrates how to bind data to the chart and configure options such as the legend and labels.
<ngx-charts-pie-chart [results]="data" [scheme]="colorScheme" [legend]="true" [doughnut]="false" [labels]="true"></ngx-charts-pie-chart>
ng2-charts is an Angular wrapper for Chart.js. It provides a variety of chart types and is known for its simplicity and ease of use. Compared to @swimlane/ngx-charts, ng2-charts is more lightweight but may not offer as many customization options.
angular-google-charts is an Angular wrapper for Google Charts. It offers a wide range of chart types and is highly customizable. However, it requires an internet connection to load the Google Charts library, whereas @swimlane/ngx-charts is self-contained.
highcharts-angular is an Angular wrapper for Highcharts. It provides a comprehensive set of chart types and is highly customizable. Highcharts is known for its advanced features and performance, but it is a commercial product with licensing fees, unlike @swimlane/ngx-charts which is open-source.
Declarative Charting Framework for Angular!
ngx-charts is unique because we don't merely wrap d3, nor any other chart engine for that matter. It is using Angular to render and animate the SVG elements with all of its binding and speed goodness, and uses d3 for the excellent math functions, scales, axis and shape generators. By having Angular do all of the rendering it opens us up to endless possibilities the Angular platform provides such as AoT, SSR, etc.
Data visualization is a science but that doesn't mean it has to be ugly. One of the big efforts we've made while creating this project is to make the charts aesthetically pleasing. The styles are also completely customizable through CSS, so you can override them as you please.
Also, constructing custom charts is possible by leveraging the various ngx-charts components that are exposed through the ngx-charts module.
For more info, check out the documentation and the demos.
To use ngx-charts in your project install it via npm:
npm i @swimlane/ngx-charts --save
To learn how to use the ngx-charts components to build custom charts and find examples, please refer to our Custom Charts Page.
git checkout master
)git pull
)yarn install --immutable
)yarn test
)git checkout -b release/X.Y.Z
projects/swimlane/ngx-charts/package.json
.projects/docs/changelog.md
git commit -am "(release): X.Y.Z"
git tag X.Y.Z
git push origin HEAD --tags
yarn package
yarn publish:lib
ngx-charts
is a Swimlane open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
SecOps Hub is an open, product-agnostic, online community for security professionals to share ideas, use cases, best practices, and incident response strategies.
FAQs
Declarative Charting Framework for Angular
The npm package @swimlane/ngx-charts receives a total of 112,593 weekly downloads. As such, @swimlane/ngx-charts popularity was classified as popular.
We found that @swimlane/ngx-charts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 40 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.