| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8"> |
| <title>ECharts</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <meta name="description" content="ECharts"> |
| <meta name="author" content="linzhifeng@baidu.com"> |
| |
| <script src="../asset/js/esl/esl.js"></script> |
| <script src="../asset/js/codemirror.js"></script> |
| <script src="../asset/js/javascript.js"></script> |
| |
| <link href="../asset/css/bootstrap.css" rel="stylesheet"> |
| <link href="../asset/css/bootstrap-responsive.css" rel="stylesheet"> |
| <link href="../asset/css/codemirror.css" rel="stylesheet"> |
| <link href="../asset/css/monokai.css" rel="stylesheet"> |
| <link href="../asset/css/echartsHome.css" rel="stylesheet"> |
| <link rel="shortcut icon" href="../asset/ico/favicon.png"> |
| </head> |
| |
| <body> |
| <!-- NAVBAR |
| ================================================== --> |
| <div class="navbar navbar-inverse navbar-fixed-top"> |
| <div class="navbar-inner"> |
| <div class="container"> |
| <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> |
| <span class="icon-bar"></span> |
| <span class="icon-bar"></span> |
| <span class="icon-bar"></span> |
| </button> |
| <a class="brand" href="../../index.html">ECharts</a> |
| <div class="nav-collapse collapse"> |
| <a id="forkme_banner" href="https://github.com/ecomfe/echarts">View on GitHub</a> |
| <ul class="nav"> |
| <li><a href="../../index.html"><i class="icon-home icon-white"></i> Home</a></li> |
| <li class="active"><a href="../example.html" class="active">Example</a></li> |
| <li><a href="../doc.html" >API & Doc</a></li> |
| <li class="dropdown"> |
| <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-download-alt icon-white"></i>Download <b class="caret"></b></a> |
| <ul class="dropdown-menu"> |
| <li><a id="last-release-link" href=""> </a></li> |
| <li><a href="https://github.com/ecomfe/echarts/archive/master.zip">ZIP (Latest)</a></li> |
| </ul> |
| </li> |
| <li class="dropdown"> |
| <a href="#" class="dropdown-toggle" data-toggle="dropdown">Link <b class="caret"></b></a> |
| <ul class="dropdown-menu"> |
| <li><a href="https://github.com/ecomfe" target="_blank">Ecom-FE</a></li> |
| <li><a href="http://fe.baidu.com/doc/ecom/tech/topic/dv/index.html" target="_blank">Data Visualization</a></li> |
| <li class="divider"></li> |
| <!--li class="nav-header">Library</li--> |
| <li><a href="http://ecomfe.github.io/zrender/index.html" target="_blank">ZRender</a></li> |
| |
| </ul> |
| </li> |
| </ul> |
| </div><!--/.nav-collapse --> |
| </div><!-- /.container --> |
| </div><!-- /.navbar-inner --> |
| </div><!-- /.navbar-wrapper --> |
| |
| <div class="container-fluid"> |
| <div class="row-fluid"> |
| <div id="sidebar-code" class="span4"> |
| <div class="well sidebar-nav"> |
| <div class="nav-header"><a href="#" onclick="autoResize()" class="icon-resize-full" id ="icon-resize" ></a>option</div> |
| <textarea id="code" name="code"> |
| var labelTop = { |
| normal : { |
| label : { |
| show : true, |
| position : 'center', |
| textStyle: { |
| baseline : 'bottom' |
| } |
| }, |
| labelLine : { |
| show : false |
| } |
| } |
| }; |
| var labelBottom = { |
| normal : { |
| color: '#ccc', |
| label : { |
| show : true, |
| position : 'center', |
| formatter : function(a,b,c){return 100 - c + '%'}, |
| textStyle: { |
| baseline : 'top' |
| } |
| }, |
| labelLine : { |
| show : false |
| } |
| }, |
| emphasis: { |
| color: 'rgba(0,0,0,0)' |
| } |
| }; |
| var radius = [40, 55]; |
| option = { |
| legend: { |
| x : 'center', |
| y : 'center', |
| data:[ |
| 'GoogleMaps','Facebook','Youtube','Google+','Weixin', |
| 'Twitter', 'Skype', 'Messenger', 'Whatsapp', 'Instagram' |
| ] |
| }, |
| title : { |
| text: 'The App World', |
| subtext: 'from global web index', |
| x: 'center' |
| }, |
| toolbox: { |
| show : true, |
| feature : { |
| dataView : {show: true, readOnly: false}, |
| restore : {show: true}, |
| saveAsImage : {show: true} |
| } |
| }, |
| series : [ |
| { |
| type : 'pie', |
| center : ['10%', '30%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:46, itemStyle : labelBottom}, |
| {name:'GoogleMaps', value:54,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['30%', '30%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:56, itemStyle : labelBottom}, |
| {name:'Facebook', value:44,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['50%', '30%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:65, itemStyle : labelBottom}, |
| {name:'Youtube', value:35,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['70%', '30%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:70, itemStyle : labelBottom}, |
| {name:'Google+', value:30,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['90%', '30%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:73, itemStyle : labelBottom}, |
| {name:'Weixin', value:27,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['10%', '70%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:78, itemStyle : labelBottom}, |
| {name:'Twitter', value:22,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['30%', '70%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:78, itemStyle : labelBottom}, |
| {name:'Skype', value:22,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['50%', '70%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:78, itemStyle : labelBottom}, |
| {name:'Messenger', value:22,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['70%', '70%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:83, itemStyle : labelBottom}, |
| {name:'Whatsapp', value:17,itemStyle : labelTop} |
| ] |
| }, |
| { |
| type : 'pie', |
| center : ['90%', '70%'], |
| radius : radius, |
| data : [ |
| {name:'other', value:89, itemStyle : labelBottom}, |
| {name:'Instagram', value:11,itemStyle : labelTop} |
| ] |
| } |
| ] |
| }; |
| </textarea> |
| </div><!--/.well --> |
| </div><!--/span--> |
| <div id="graphic" class="span8"> |
| <div id="main" class="main"></div> |
| <div> |
| <button onclick="refresh(true)">Refresh ~</button> |
| <span id='wrong-message' style="color:red"></span> |
| </div> |
| </div><!--/span--> |
| </div><!--/row--> |
| <hr> |
| <!-- FOOTER --> |
| <footer> |
| <p class="pull-right"><a href="#">Back to top</a></p> |
| <p>© 2014 <a href="http://efe.baidu.com" target="_blank">EFE</a> · <a href="https://github.com/ecomfe/echarts/blob/master/LICENSE.txt" target="_blank">License</a> · <a href="../changelog.html" target="_blank">Changelog</a></p> |
| </footer> |
| </div><!--/.fluid-container--> |
| |
| <script src="../asset/js/jquery.js"></script> |
| <script src="../asset/js/bootstrap-transition.js"></script> |
| <script src="../asset/js/bootstrap-alert.js"></script> |
| <script src="../asset/js/bootstrap-modal.js"></script> |
| <script src="../asset/js/bootstrap-dropdown.js"></script> |
| <script src="../asset/js/bootstrap-scrollspy.js"></script> |
| <script src="../asset/js/bootstrap-tab.js"></script> |
| <script src="../asset/js/bootstrap-tooltip.js"></script> |
| <script src="../asset/js/bootstrap-popover.js"></script> |
| <script src="../asset/js/bootstrap-button.js"></script> |
| <script src="../asset/js/bootstrap-collapse.js"></script> |
| <script src="../asset/js/bootstrap-carousel.js"></script> |
| <script src="../asset/js/bootstrap-typeahead.js"></script> |
| <script src="../asset/js/echartsExample.js"></script> |
| </body> |
| </html> |