UNPKG

3.76 kBMarkdownView Raw
1# ngx-charts
2
3[![Join the chat at https://gitter.im/swimlane/ngx-charts](https://badges.gitter.im/swimlane/ngx-charts.svg)](https://gitter.im/swimlane/ngx-charts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b097196f7f544412a79a99080a41bbc1)](https://www.codacy.com/app/Swimlane/ngx-charts?utm_source=github.com&utm_medium=referral&utm_content=swimlane/ngx-charts&utm_campaign=Badge_Grade)
5[![npm version](https://badge.fury.io/js/%40swimlane%2Fngx-charts.svg)](https://badge.fury.io/js/%40swimlane%2Fngx-charts)
6[![npm downloads](https://img.shields.io/npm/dm/@swimlane/ngx-charts.svg)](https://npmjs.org/@swimlane/ngx-charts)
7
8Declarative Charting Framework for Angular!
9
10ngx-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.
11
12Data 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.
13
14Also, constructing custom charts is possible by leveraging the various ngx-charts components that are exposed through the ngx-charts module.
15
16For more info, check out the [documentation](https://swimlane.gitbook.io/ngx-charts) and the [demos](https://swimlane.github.io/ngx-charts/).
17
18## Features
19
20### Chart Types
21
22- Horizontal & Vertical Bar Charts (Standard, Grouped, Stacked, Normalized)
23- Line
24- Area (Standard, Stacked, Normalized)
25- Pie (Explodable, Grid, Custom legends)
26- Bubble
27- Donut
28- Gauge (Linear & Radial)
29- Heatmap
30- Treemap
31- Number Cards
32- Sankey Diagram
33
34### Customization
35
36- Autoscaling
37- Timeline Filtering
38- Line Interpolation
39- Configurable Axis Labels
40- Legends (Labels & Gradient)
41- Advanced Label Positioning
42- Real-time data support
43- Advanced Tooltips
44- Data point Event Handlers
45- Works with ngUpgrade
46
47## Install
48
49To use ngx-charts in your project install it via [npm](https://www.npmjs.com/package/@swimlane/ngx-charts):
50
51```
52npm i @swimlane/ngx-charts --save
53```
54
55## Custom Charts
56
57To learn how to use the ngx-charts components to build custom charts and find examples, please refer to our [Custom Charts Page](https://github.com/swimlane/ngx-charts/blob/master/docs/custom-charts.md).
58
59## Release
60
61- Checkout master (`git checkout master`)
62- Pull master (`git pull`)
63- Refresh node modules (`npm ci`)
64- Run tests (`npm test`)
65- Examine log to determine next version (X.Y.Z)
66- Run `git checkout -b release/X.Y.Z`
67- Update version in `projects/swimlane/ngx-charts/package.json`.
68- Update changelog in `projects/docs/changelog.md`
69- Run `git commit -am "(release): X.Y.Z"`
70- Run `git tag X.Y.Z`
71- Run `git push origin HEAD --tags`
72- Run `npm run publish:lib`
73- Submit PR
74
75## Credits
76
77`ngx-charts` is a [Swimlane](http://swimlane.com) 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.
78
79[SecOps Hub](http://secopshub.com) is an open, product-agnostic, online community for security professionals to share ideas, use cases, best practices, and incident response strategies.