`
it worked well.
But when i tried to add another pie chart, ' Highcharts error #17' error arised.
soi replaced the highChartsMapFactory code to support highcharts-more:
export function highChartsChartFactory() { const hc = require('highcharts'); const hcMore = require('highcharts/highcharts-more'); hcMore(hc); return hc; }
Then the pie chart worked well but the map throwed a critical error that 'Map is unknown chart type'
Anyone can tell me how to display the map and pie chart in the same page correctly?
i use following codes to display a map:
`export function highChartsMapFactory() { const hc = require('highcharts/highmaps'); const dd = require('highcharts/modules/exporting'); dd(hc); return hc; } @NgModule({ ... providers:[ { provide: HighchartsStatic, useFactory: highChartsMapFactory }, ] })
` it worked well. But when i tried to add another pie chart, ' Highcharts error #17' error arised. soi replaced the highChartsMapFactory code to support highcharts-more:
export function highChartsChartFactory() { const hc = require('highcharts'); const hcMore = require('highcharts/highcharts-more'); hcMore(hc); return hc; }
Then the pie chart worked well but the map throwed a critical error that 'Map is unknown chart type'Anyone can tell me how to display the map and pie chart in the same page correctly?