Echarts Pie Chart Display template

Source: Internet
Author: User
Tags radar

Chart type, necessary Parameters! If the type is empty or unsupported, the series data is not displayed. The options are:

' Lines ' (line chart) | ' Bar ' (histogram) | ' Scatter ' (Scatter chart) | ' K ' (candlestick chart)

' Pie ' (pie chart) | ' Radar ' (Radar Chart) | ' Chord ' (chord chart) | ' Forces ' (force-oriented layout) | ' Map ' (maps)

Pie chart: ' Echarts/chart/pie '// load with a bar chart Bar module, load on demand, remember to change Pie

Bar Chart: ' Echarts/chart/bar '

<%@ page contenttype= "Text/html;charset=utf-8"%><%@ include file= "/web-inf/views/include/taglib.jsp"%> <%@ page language= "java" import= "java.util.*,java.lang.*" pageencoding= "UTF-8"%>//Path Configurationrequire.config ({paths: {echarts:' Http://echarts.baidu.com/build/dist '            }        }); //Userequire ([' Echarts ',                ' Echarts/chart/pie '//load bar module with bar chart, load on Demand            ],             function(EC) {//Initialize the Echarts chart based on the prepared Dom                varMyChart = Ec.init (document.getElementById (' main '))); Option=Replace part//loading data for Echarts objectsmychart.setoption (option);     }        ); </script>

Echarts Pie Chart Display template

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.