An open API service indexing awesome lists of open source software.

https://github.com/whyour/ng-hcharts

Responsive highcharts for Angular2+ base on highcharts used attribute
https://github.com/whyour/ng-hcharts

Last synced: 6 months ago
JSON representation

Responsive highcharts for Angular2+ base on highcharts used attribute

Awesome Lists containing this project

README

          

# ng-hcharts [![npm version](https://img.shields.io/npm/v/ng-hcharts.svg)](https://img.shields.io/npm/v/ng-hcharts.svg) [![npm downloads](https://img.shields.io/npm/dt/ng-hcharts.svg)](https://npmjs.org/ng-hcharts)
Responsive highcharts for Angular2+ base on highcharts used attibute

- - -

### Installation

1. You can install ***ng-hcharts*** using npm

```bash
npm install ng-hcharts --save
```
2. You need to install and include `highcharts.js` library in application via `html` or `webpack bundler` (more options can be found in official `highcharts.js`

```bash
npm install highcharts --save
```

### Usage & Demo

Make a chart!
```typescript
import { NgHChartsModule } from 'ng-hcharts';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgHChartsModule
],
providers: [],
bootstrap: [AppComponent]
})
```

```html


```

### Properties

**Note**: For more information about possible options please refer to original [highcharts](https://www.highcharts.com/docs) documentation

- `ng-hcharts` (`?any`) - chart options (as from [highcharts documentation](https://www.highcharts.com/docs))
- `oneToOne` (`?Boolean`) - When true, the series, xAxis and yAxis collections will be updated one to one, and items will be either added or removed to match the new updated options. For example, if the chart has two series and we call chart.update with a configuration containing three series, one will be added. If we call chart.update with one series, one will be removed. Setting an empty series array will remove all series, but leaving out the series property will leave all series untouched. If the series have id's, the new series options will be matched by id, and the remaining ones removed.

## Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

1. Use [GitHub Issues](https://github.com/whyour/ng-hcharts/issues) board to report bugs and feature requests (not our email address)
2. Please **always** write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

### License

This library is available under the MIT license. However it and is a wrapper for Highcharts. Highcharts itself has an own license. So make sure to follow their license as well (https://github.com/highcharts/highcharts/blob/master/license.txt)