Home  >  Article  >  Web Front-end  >  How to download China map in .js file format with Echarts

How to download China map in .js file format with Echarts

零到壹度
零到壹度Original
2018-04-21 11:27:445423browse

The content of this article is about how Echarts downloads the China map in .js file format. It has certain reference value. Now I share it with you. Friends in need can refer to it

When using the China map of Echarts in the morning, you need to use the china.js file, but the official map js download of Echarts has been suspended for download. After searching, there is the following link to download:
1.Github Address: https://github.com/apache/incubator-echarts

2. Baidu cloud network disk (please leave a message if it fails and I will update it as soon as possible):
Link: https://pan.baidu.com/s/1j_edGU2ka9YeHBTErqDWdg Password: ft9n

After downloading, you need to introduce the link in html or jsp as follows:

  <script type="text/javascript" src="echarts/china.js"></script>

Finally The effect is as follows:
How to download China map in .js file format with Echarts

Let’s talk about the theme of the map again. You can also go to the official website to download the js file. If you download the shine theme, the following code is introduced:

<script type="text/javascript" src="echarts/shine.js"></script>
.........
     var myChart = echarts.init(document.getElementById(&#39;main&#39;),&#39;shine&#39;);.........

​​​

Related recommendations:

##How to use echarts.js

##Baidu The use of Echarts chart JS plug-in

ECharts usage experience

The above is the detailed content of How to download China map in .js file format with Echarts. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn