The echarts plug-in the javascript framework implements cool cube and javascriptecharts
Recently, due to project requirements, a network relationship effect similar to the person-cube effect is required. After querying many documents, it is found that the open-source echarts component of Baidu is very suitable and the loading speed is great, echarts graphics are mainly based on the new features of html5 and the canvas. The following are some of my own processes and experiences for your reference.
Here is the site of echarts: http://echarts.baidu.com/doc/example.html
There are detailed use procedures and examples, as long as you know a little javascript can understand.
Step 1:
Download the echarts plug-in: import two files in the project
1 esl. js
2 echarts-original.js
3 jquery-1.9.1.min.js jQuery compressed file
Step 2:
Define a div container to hold the echarts image. An id must be defined. As follows:
<Div id = "rel" style = "height: 500px; margin: 0 auto;"> </div>
Step 3:
Configure related graphics properties, load the graphics to the container, and start the graphics.
The Code is as follows:
<! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">
Its entry: