-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
<!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="[email protected]"> | ||
|
||
<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"> | ||
<style type="text/css"> | ||
.CodeMirror { | ||
height: 550px; | ||
} | ||
</style> | ||
</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"> | ||
// 自定义扩展图表类型:mapType = USA | ||
require('echarts/util/mapData/params').params.USA = { | ||
getGeoJson: function(callback) { | ||
$.getJSON('geoJson/usa.geo.json', callback); | ||
}, | ||
specialArea : { | ||
Alaska : { | ||
left : -131, | ||
top : 31, | ||
width : 15, | ||
height : 15 | ||
}, | ||
Hawaii : { | ||
left : -112, | ||
top : 29, | ||
width : 5, | ||
height : 5 | ||
}, | ||
'Puerto Rico' : { | ||
left : -76, | ||
top : 26, | ||
width : 2, | ||
height : 2 | ||
} | ||
} | ||
} | ||
option = { | ||
title : { | ||
text: 'USA Population Estimates (2012)', | ||
subtext: 'Data from www.census.gov.', | ||
sublink: 'http://www.census.gov/popest/data/datasets.html', | ||
x:'right' | ||
}, | ||
tooltip : { | ||
trigger: 'item', | ||
showDelay: 0, | ||
transitionDuration: 0.2, | ||
formatter : function(a) { | ||
var sName = a[0]; | ||
var pName = a[1]; | ||
var value = a[2] + ''; | ||
value = value.replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,'); | ||
return sName + '<br/>' + pName + ' : ' + value; | ||
} | ||
}, | ||
dataRange: { | ||
x : 'right', | ||
min: 500000, | ||
max: 38000000, | ||
color: ['orangered','yellow','lightskyblue'], | ||
text:['High','Low'], // 文本,默认为数值文本 | ||
calculable : true | ||
}, | ||
toolbox: { | ||
show : true, | ||
orient : 'vertical', | ||
x: 'left', | ||
y: 'center', | ||
feature : { | ||
mark : true, | ||
dataView : {readOnly: false}, | ||
restore : true, | ||
saveAsImage : true | ||
} | ||
}, | ||
series : [ | ||
{ | ||
name: 'USA PopEstimates', | ||
type: 'map', | ||
roam: true, | ||
mapType: 'USA', // 自定义扩展图表类型 | ||
itemStyle:{ | ||
emphasis:{label:{show:true}} | ||
}, | ||
// 文本位置修正 | ||
textFixed : { | ||
Alaska : [20, -20] | ||
}, | ||
data:[ | ||
{name : 'Alabama', value : 4822023}, | ||
{name : 'Alaska', value : 731449}, | ||
{name : 'Arizona', value : 6553255}, | ||
{name : 'Arkansas', value : 2949131}, | ||
{name : 'California', value : 38041430}, | ||
{name : 'Colorado', value : 5187582}, | ||
{name : 'Connecticut', value : 3590347}, | ||
{name : 'Delaware', value : 917092}, | ||
{name : 'District of Columbia', value : 632323}, | ||
{name : 'Florida', value : 19317568}, | ||
{name : 'Georgia', value : 9919945}, | ||
{name : 'Hawaii', value : 1392313}, | ||
{name : 'Idaho', value : 1595728}, | ||
{name : 'Illinois', value : 12875255}, | ||
{name : 'Indiana', value : 6537334}, | ||
{name : 'Iowa', value : 3074186}, | ||
{name : 'Kansas', value : 2885905}, | ||
{name : 'Kentucky', value : 4380415}, | ||
{name : 'Louisiana', value : 4601893}, | ||
{name : 'Maine', value : 1329192}, | ||
{name : 'Maryland', value : 5884563}, | ||
{name : 'Massachusetts', value : 6646144}, | ||
{name : 'Michigan', value : 9883360}, | ||
{name : 'Minnesota', value : 5379139}, | ||
{name : 'Mississippi', value : 2984926}, | ||
{name : 'Missouri', value : 6021988}, | ||
{name : 'Montana', value : 1005141}, | ||
{name : 'Nebraska', value : 1855525}, | ||
{name : 'Nevada', value : 2758931}, | ||
{name : 'New Hampshire', value : 1320718}, | ||
{name : 'New Jersey', value : 8864590}, | ||
{name : 'New Mexico', value : 2085538}, | ||
{name : 'New York', value : 19570261}, | ||
{name : 'North Carolina', value : 9752073}, | ||
{name : 'North Dakota', value : 699628}, | ||
{name : 'Ohio', value : 11544225}, | ||
{name : 'Oklahoma', value : 3814820}, | ||
{name : 'Oregon', value : 3899353}, | ||
{name : 'Pennsylvania', value : 12763536}, | ||
{name : 'Rhode Island', value : 1050292}, | ||
{name : 'South Carolina', value : 4723723}, | ||
{name : 'South Dakota', value : 833354}, | ||
{name : 'Tennessee', value : 6456243}, | ||
{name : 'Texas', value : 26059203}, | ||
{name : 'Utah', value : 2855287}, | ||
{name : 'Vermont', value : 626011}, | ||
{name : 'Virginia', value : 8185867}, | ||
{name : 'Washington', value : 6897012}, | ||
{name : 'West Virginia', value : 1855413}, | ||
{name : 'Wisconsin', value : 5726398}, | ||
{name : 'Wyoming', value : 576412}, | ||
{name : 'Puerto Rico', value : 3667084} | ||
] | ||
} | ||
] | ||
}; | ||
</textarea> | ||
</div><!--/.well --> | ||
</div><!--/span--> | ||
<div id="graphic" class="span8"> | ||
<div id="main" class="main" style="height: 530px;"></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>© 2013 ECOM-FE · <a href="https://github.com/ecomfe/echarts/blob/master/LICENSE.txt" target="_blank">Terms</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> |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"type":"FeatureCollection","features":[{"type":"Feature","id":"8200","properties":{"name":"澳门","cp":[113.5715,22.1583],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[113.5978,22.1666],[113.6016,22.1573],[113.6052,22.1507],[113.6074,22.1463],[113.6088,22.1424],[113.6101,22.1373],[113.6103,22.1338],[113.61,22.1309],[113.6067,22.1252],[113.6043,22.1215],[113.6016,22.1183],[113.5976,22.1151],[113.5928,22.1117],[113.5876,22.1084],[113.5801,22.1047],[113.571,22.1024],[113.5598,22.1023],[113.5578,22.1035],[113.5552,22.1053],[113.5538,22.1099],[113.5528,22.1178],[113.5528,22.1202],[113.5531,22.1264],[113.5542,22.1367],[113.554,22.1414],[113.5525,22.1454],[113.5458,22.1529],[113.5379,22.1702],[113.537,22.1726],[113.5351,22.1753],[113.5336,22.1768],[113.5327,22.1784],[113.5332,22.1845],[113.5361,22.1903],[113.5379,22.1932],[113.5406,22.2004],[113.5408,22.2023],[113.5396,22.2032],[113.5392,22.2037],[113.5389,22.2063],[113.5382,22.2086],[113.5382,22.2092],[113.5384,22.2096],[113.5416,22.2107],[113.5435,22.2106],[113.5464,22.2099],[113.5483,22.2138],[113.5497,22.2144],[113.5531,22.2138],[113.555,22.2132],[113.5581,22.2126],[113.5628,22.212],[113.5677,22.2095],[113.5703,22.2073],[113.5749,22.2029],[113.5904,22.1827],[113.593,22.1786],[113.5978,22.1666]]]}}],"srcSize":{"left":283.5327,"top":67.7856,"width":0.0776,"height":0.1121}} | ||
{"type":"FeatureCollection","features":[{"type":"Feature","id":"8200","properties":{"name":"澳门","cp":[113.5715,22.1583],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[113.5978,22.1666],[113.6016,22.1573],[113.6052,22.1507],[113.6074,22.1463],[113.6088,22.1424],[113.6101,22.1373],[113.6103,22.1338],[113.61,22.1309],[113.6067,22.1252],[113.6043,22.1215],[113.6016,22.1183],[113.5976,22.1151],[113.5928,22.1117],[113.5876,22.1084],[113.5801,22.1047],[113.571,22.1024],[113.5598,22.1023],[113.5578,22.1035],[113.5552,22.1053],[113.5538,22.1099],[113.5528,22.1178],[113.5528,22.1202],[113.5531,22.1264],[113.5542,22.1367],[113.554,22.1414],[113.5525,22.1454],[113.5458,22.1529],[113.5379,22.1702],[113.537,22.1726],[113.5351,22.1753],[113.5336,22.1768],[113.5327,22.1784],[113.5332,22.1845],[113.5361,22.1903],[113.5379,22.1932],[113.5406,22.2004],[113.5408,22.2023],[113.5396,22.2032],[113.5392,22.2037],[113.5389,22.2063],[113.5382,22.2086],[113.5382,22.2092],[113.5384,22.2096],[113.5416,22.2107],[113.5435,22.2106],[113.5464,22.2099],[113.5483,22.2138],[113.5497,22.2144],[113.5531,22.2138],[113.555,22.2132],[113.5581,22.2126],[113.5628,22.212],[113.5677,22.2095],[113.5703,22.2073],[113.5749,22.2029],[113.5904,22.1827],[113.593,22.1786],[113.5978,22.1666]]]}}]} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.