Highcharts not working I am using the Charts module for displaying charts in my Drupal project. 
When I took the chart API example module page, it's not displaying any. It throws me this error (in the console):


  Uncaught TypeError: $(...).highcharts is not a function




Any idea on how to resolve this issue? Or is there anything additional to do after installing the module?

I enabled all the sub-modules of the Chart module:



And I selected Highcharts as the Charting library option:



Notes:


I added the chart js file inside charts/modules/charts_api_example and referenced the charts_highcharts.js file in the charts_api_example.libraries.yml file.
I think the issue may be because jQuery must be loaded before Highcharts when checked the view source on the API examples page the jQuery is loaded at last after the Highcharts library. Not sure though that's the issue.
I was thoroughly mistaken about the installation of the charts. After installation, I was editing the repositories section in composer.json  and running the composer command to install the specific library (eg: composer require --prefer-dist highcharts/highcharts:6.0.4) from the particular sub-module. But it has to be done from the Drupal project root directory. Appreciate your valuable time and expecting this will help others.