@springernature/nn-charts
Version:
Visualization for DAS products
40 lines (28 loc) • 768 B
Markdown
# D3 Chart library created by Springer Nature
## How to install this package
In your project directory, run the following command:
```
yarn @springernature/nn-charts
```
## How to import Column Chart
```
import { ColumnChart } from "nn-charts";
const data = {} // JSON data to render chart
const chart = new ColumnChart(data)
```
## How to import Line Chart
```
import { LineChart } from "nn-charts";
const data = {} // JSON data to render chart
const chart = new LineChart(data)
```
## How to import CollapsibleTree Chart
```
import { CollapsibleTreeChart } from "nn-charts";
const data = {} // JSON data to render chart
const chart = new CollapsibleTreeChart(data)
```
### You can write any html tags in the below file/directory
```
public/index.html
```