Q. How do I install Highcharts and the network graph module in an Angular project?

 A:
You typically run:

npm install highcharts

npm install highcharts-angular

npm install highcharts/modules/networkgraph

 

Then in your Angular component or module:

import * as Highcharts from ‘highcharts’;

import Networkgraph from ‘highcharts/modules/networkgraph’;

Networkgraph(Highcharts);

 

And configure your chart options accordingly (series type networkgraph). Also import the HighchartsChartModule in your Angular module to use the <highcharts-chart> component.

Back To Top