Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gevgeny committed Feb 12, 2017
1 parent 0c24ba5 commit f601c3a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,31 +233,40 @@ Also you need to change your `@NgModule` setup.
<chart type="Map" [options]="options"></chart>
```
Also you need to change your `@NgModule` setup.
```TypeScript
```diff
...
@NgModule({
...
imports: [BrowserModule, ChartModule.forRoot(require('highcharts/highmaps')],
imports: [
BrowserModule,
ChartModule.forRoot(
- require('highcharts')
+ require('highcharts/highmaps')
],
})
```
[Live Demo](https://plnkr.co/edit/AmDfKwhRhshFn3CPprkk?p=preview)
### Add Highcharts Modules
Any other modules like highchart-3d, highchart-exporintg and etc. should be also added in `@NgModule` after main chart module
```TypeScript
```diff
...
@NgModule({
...
imports: [
BrowserModule,
ChartModule.forRoot(
require('highcharts'),
require('highcharts/highchart-3d'),
require('highcharts/modules/exporting')
+ require('highcharts/highchart-3d'),
+ require('highcharts/modules/exporting')
],
})
```
Check out structure of the `node-modules/highcharts` folder to find necessary module
[Live Demo](https://plnkr.co/edit/AmDfKwhRhshFn3CPfgd?p=preview)
Expand Down

0 comments on commit f601c3a

Please sign in to comment.