ECharts, a javascript interactive chart Library, is used as an example ., Echartsjavascript

Source: Internet
Author: User

ECharts, a javascript interactive chart Library, is used as an example ., Echartsjavascript
Download echarts-plain.js2, the new index.html, And the downloaded echarts-plain.js to the same directory.

<HTML> <HEAD> <title> System Environment Information </title> <meta http-equiv = "Content-Type" content = "text/html; charset = GBK "> <meta name =" Author "CONTENT =" mahh "> <meta name =" Description "CONTENT =" System Environment Information "> <style type =" text/ css ">. version {border-collapse: collapse }. version td {border: 1px solid #999999} </style> </HEAD> <BODY style = "background: transparent; "> <div> <table class =" "width =" 100% "height =" 100% "border =" 0 "cellpadd Ing = "0" cellspacing = "0"> <tr> <td height = ""> <! -- <Div class = "unit_content_list"> --> <div id = "main" style = "height: 400px; border: 1px solid # ccc; width: 100%"> <! -- Canvas --> </div> <! -- </Div> --> </td> </tr> </table> </div> <script type = "text/javascript" src = "echarts-plain.js"> </ script> <script type = "text/javascript"> var usedimethyl = 200; var freeMe = 300; var maxUseabledMe = 512; var domCode = document. getElementById ('main'); var myChart = echarts. init (domCode); myChart. setOption ({title: {text: 'memory usage statistics', x: 'center'}, tooltip: {trigger: 'item', formatter: "{a} <br/> {B} ({d} %)"}, legend: {orient: 'vertical ', x: 'left', data: ['total memory occupied currently '+ usedimethyl + 'mb', 'remaining memory occupied temporarily' + freeMe + 'mb ', 'maximum available memory '+ maxUseabledMe + 'mb']}, toolbox: {show: true, feature: {saveAsImage: true }, series: [{name: 'memory usage statistics', type: 'pie', radius: '145px ', center: ['000000', 50%], selectedMode: 'Single', data: [{value: usedimethyl, name: 'total memory occupied currently '+ usedimethyl + 'mb'}, {value: freeMe, name: 'remaining memory occupied currently' + freeMe + 'mb '}, {value: maxUseabledMe, name: 'maximum memory available '+ maxUseabledMe + 'mb'}]}); </script> </BODY> </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.