Highcharts Chin...login
Highcharts Chinese Reference Manual
author:php.cn  update time:2022-04-14 17:02:58

Highcharts environment configuration


In this chapter we will introduce how to use Highcharts in web pages.

Highcharts depends on jQuery, so the jQuery library must be loaded before loading Highcharts.

If you are not familiar with jQuery, you can refer to the jQuery tutorial on this site.


Installing jQuery

jQuery can be installed in the following two ways:

  • 1. Visit jquery.com to download the jQuery package.

  • 2. Use jQuery resources from Baidu static resource library (http://cdn.code.baidu.com/):

    http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js

Use the download method

Use the download method to introduce jQuery code into the HTML page:

<head>
   <script src="/jquery/jquery.min.js"></script>
</head>

Use CDN (recommended)

Use Baidu static resource library to load the jQuery library:

<head>
   <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>

Installing Highcharts

Highcharts installation can be done in the following two ways:

  • 1. Visit highcharts.com to download the Highcharts package.

  • 2. Use the official CDN address: http://code.highcharts.com/highcharts.js

Use the download method (recommended)

Use the download method and introduce Highcharts code into the HTML page:

<head>
   <script src="/highcharts/highcharts.js"></script>
</head>

Use CDN

Use the official CDN address:

<head>
   <script src="http://code.highcharts.com/highcharts.js"></script>
</head>

php.cn