"Echarts" Baidu Chart plug-in echarts use __echarts

Source: Internet
Author: User
Tags prepare script tag

Baidu Echarts Report rendering component, pretty good one component
Official website: http://echarts.baidu.com/Download echarts
Http://echarts.baidu.com/download.html
You can choose to download or customize all the JS packages you need
Introduction of Echarts
Echarts 3 is no longer forced to use AMD on demand, and the AMD loader is no longer built into the code. So the introduction is a lot simpler, just like the normal JavaScript library with the script tag introduced.

<! DOCTYPE html>
Draw a simple chart
Before drawing, we need to prepare a DOM container with a high width for echarts.
<body>
    <!--prepare a DOM-->
    <div id= "main" style= "width:600px;height:400px" for echarts with size (width); ></div>
</body>

You can then initialize a Echarts instance through the Echarts.init method and generate a simple histogram from the SetOption method, with the full code below.

<! DOCTYPE html>  

So your first chart is born.

Echarts Tutorial: http://echarts.baidu.com/tutorial.html
Api:http://echarts.baidu.com/api.html
Instance demo:http://echarts.baidu.com/examples.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.