Highcharts Environment Configuration
In this chapter, we will introduce how to use Highcharts in a web page.
This tutorial uses Highcharts together with jQuery, so the jQuery library must be loaded before loading Highcharts.
If you are not familiar with jQuery, you can refer to ourjQuery tutorial。
Install jQuery
jQuery can be installed in the following two ways:
- 1. Visit jquery.com to download the jQuery package.
-
2. Use the jQuery resources from the Staticfile CDN static resource library:
https://cdn.staticfile.net/jquery/2.1.4/jquery.min.js
-
3. Use the jQuery resources from the Baidu static resource library:
https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
Using the download method
Using the download method, include the jQuery code in the HTML page:
Using a CDN (recommended)
Use the Staticfile CDN static resource library to load the jQuery library:
Install Highcharts
Highcharts can be installed in the following two ways:
- 1. Visit highcharts.com Download the Highcharts package.
- 2. Use the officially provided CDN address:https://code.highcharts.com/highcharts.js
Using the download method (recommended)
Using the download method, include the Highcharts code in the HTML page:
Using a CDN
Use the officially provided CDN address: