97ac51868f2918af13ef84287c0351fb73876b05.svn-base 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="ECharts">
  8. <meta name="author" content="kener.linfeng@gmail.com">
  9. <title>ECharts · Example</title>
  10. <link rel="shortcut icon" href="./asset/ico/favicon.png">
  11. <link href="./asset/css/font-awesome.min.css" rel="stylesheet">
  12. <link href="./asset/css/bootstrap.css" rel="stylesheet">
  13. <link href="./asset/css/carousel.css" rel="stylesheet">
  14. <link href="./asset/css/echartsHome.css" rel="stylesheet">
  15. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <style type="text/css">
  21. .affix {
  22. width:160px;
  23. }
  24. .affix li {
  25. list-style-type : none;
  26. height : 35px;
  27. line-height:35px;
  28. vertical-align:middle;
  29. }
  30. ul.slides li{
  31. width : 33.3%;
  32. overflow:hidden;
  33. float : left;
  34. border:0px solid #ccc;
  35. margin: 15px 0;
  36. list-style-type : none;
  37. position:relative;
  38. }
  39. ul.slides li a {
  40. padding:5px;
  41. display:block;
  42. }
  43. ul.slides li a strong{
  44. font-size:15px;
  45. color : #1e90ff;
  46. }
  47. ul.slides li a:hover {
  48. background-color:#eee;
  49. text-decoration:none;
  50. }
  51. ul.slides li img {
  52. width:60%;
  53. }
  54. ul.slides li span {
  55. color:#666;
  56. width:36%;
  57. vertical-align:top;
  58. display:inline-block;
  59. *zoom:1;
  60. }
  61. .col-md-10 h3 {
  62. clear:both;
  63. margin:10px 0;
  64. padding-bottom:10px;
  65. border-bottom:1px solid #ccc;
  66. }
  67. .col-md-10 h3 a {
  68. display:inline-block;
  69. *zoom:1;
  70. padding-top:63px;
  71. }
  72. #chartsTypeNav ul li {
  73. transition: background-color 0.3s;
  74. -moz-transition: background-color 0.3s;
  75. -webkit-transition: background-color 0.3s;
  76. -o-transition: background-color 0.3s;
  77. padding-left:10px;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <!-- Fixed navbar -->
  83. <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head"></div>
  84. <div class="container" style="padding-top:10px;">
  85. <div class="row-fluid">
  86. <div class="col-md-2">
  87. <div class = 'affix' style="margin-left:-20px;" id="chartsTypeNav">
  88. <ul style="padding:5px 0;">
  89. <li><i class="ec-icon ec-icon-line"></i> <a href="#line"><abbr title="Line & Area">Line</abbr></a></li>
  90. <li><i class="ec-icon ec-icon-bar"></i> <a href="#bar"><abbr title="Column & Bar">Bar</abbr></a></li>
  91. <li><i class="ec-icon ec-icon-scatter"></i> <a href="#scatter"><abbr title="Scatter & Bubble">Scatter</abbr></a></li>
  92. <li><i class="ec-icon ec-icon-k"></i> <a href="#k">Candlestick</a></li>
  93. <li><i class="ec-icon ec-icon-pie"></i> <a href="#pie"><abbr title="Pie & Doughnut">Pie</abbr></a></li>
  94. <li><i class="ec-icon ec-icon-radar"></i> <a href="#radar">Radar</a></li>
  95. <li><i class="ec-icon ec-icon-chord"></i> <a href="#chord">Chord</a></li>
  96. <li><i class="ec-icon ec-icon-force"></i> <a href="#force"><abbr title="Force-Directed Charts">FD Charts</abbr></a></li>
  97. <li><i class="ec-icon ec-icon-map"></i> <a href="#map">Maps</a></li>
  98. <li><i class="ec-icon ec-icon-gauge"></i> <a href="#gauge">Gauges</a></li>
  99. <li><i class="ec-icon ec-icon-funnel"></i> <a href="#funnel">Funnels</a></li>
  100. <li><i class="ec-icon ec-icon-eventRiver"></i> <a href="#eventRiver">EventRiver</a></li>
  101. <li><i class="ec-icon ec-icon-heatmap"></i> <a href="#heatmap">Heatmap</a></li>
  102. <li><i class="ec-icon ec-icon-venn"></i> <a href="#venn">Venn</a></li>
  103. <li><i class="ec-icon ec-icon-treemap"></i> <a href="#treemap">Treemap</a></li>
  104. <li><i class="ec-icon ec-icon-tree"></i> <a href="#tree">Tree</a></li>
  105. <li><i class="ec-icon ec-icon-wordCloud"></i> <a href="#wordCloud">WordCloud</a></li>
  106. <li><i class="ec-icon ec-icon-mix"></i> <a href="#mix">Combinations</a></li>
  107. <li><i class="ec-icon ec-icon-component"></i> <a href="#component">Components</a></li>
  108. <li><i class="ec-icon ec-icon-other"></i> <a href="#other">Others</a></li>
  109. <li><i class="ec-icon ec-icon-theme"></i> <a href="#theme">Themes</a></li>
  110. <li><i class="ec-icon ec-icon-topic"></i> <a href="#topic">Features</a></li>
  111. </ul>
  112. </div>
  113. </div>
  114. <div class="col-md-10">
  115. <p style="margin:10px 0 -30px 0">
  116. <a href="./start-en.html" target="_blank" style="margin-right: 50px;">Getting started »</a>
  117. <a href="https://github.com/ecomfe/echarts/issues?page=1&state=open" target="_blank">Any feedback or question ? »</a>
  118. </p>
  119. <div>
  120. <h3>Line<a name="line"> </a></h3>
  121. <div class="section">
  122. <div class="thumb3">
  123. <ul class="slides">
  124. <li data-thumb="asset/img/example/line1.png">
  125. <a href="example/line1.html"><img src="asset/img/example/line1.png" >
  126. <span><strong>Basic Line</strong><br/>label, custom line shadow</span></a>
  127. </li><!--/li-->
  128. <li data-thumb="asset/img/example/cache.png">
  129. <a href="example/line2.html"><img src="asset/img/example/cache.png">
  130. <span><strong>Stacked Line</strong><br/>multiple sreies stack</span></a>
  131. </li><!--/li-->
  132. <li data-thumb="asset/img/example/cache.png">
  133. <a href="example/line5.html"><img src="asset/img/example/cache.png">
  134. <span><strong>Basic Line</strong><br/>inverted axes, smoothed line</span></a>
  135. </li><!--/li-->
  136. <li data-thumb="asset/img/example/cache.png">
  137. <a href="example/line3.html"><img src="asset/img/example/cache.png">
  138. <span><strong>Basic Area</strong><br/>vertical fill, smoothed line</span></a>
  139. </li><!--/li-->
  140. <li data-thumb="asset/img/example/cache.png">
  141. <a href="example/line4.html"><img src="asset/img/example/cache.png">
  142. <span><strong>Stacked Area</strong><br/>multiple sreies stack</span></a>
  143. </li><!--/li-->
  144. <li data-thumb="asset/img/example/cache.png">
  145. <a href="example/line7.html"><img src="asset/img/example/cache.png">
  146. <span><strong>Irregular Line</strong><br/>two value axis</span></a>
  147. </li><!--/li-->
  148. <li data-thumb="asset/img/example/cache.png">
  149. <a href="example/line8.html"><img src="asset/img/example/cache.png">
  150. <span><strong>Irregular Line</strong><br/>time axis</span></a>
  151. </li><!--/li-->
  152. <li data-thumb="asset/img/example/cache.png">
  153. <a href="example/line6.html"><img src="asset/img/example/cache.png">
  154. <span><strong>Area</strong><br/>reversed value axis</span></a>
  155. </li><!--/li-->
  156. <li data-thumb="asset/img/example/cache.png">
  157. <a href="example/line.html"><img src="asset/img/example/cache.png">
  158. <span><strong>Line</strong><br/>multilevel control, customizable</span></a>
  159. </li><!--/li-->
  160. <li data-thumb="asset/img/example/cache.png">
  161. <a href="example/line9.html"><img src="asset/img/example/cache.png">
  162. <span><strong>Logarithmic Axis</strong></a>
  163. </li><!--/li-->
  164. </ul>
  165. </div>
  166. </div>
  167. </div>
  168. <div>
  169. <h3>Bar (Column)<a name="bar"> </a></h3>
  170. <div class="section">
  171. <div class="thumb4">
  172. <ul class="slides">
  173. <li data-thumb="asset/img/example/bar1.png">
  174. <a href="example/bar1.html"><img src="asset/img/example/bar1.png">
  175. <span><strong>Basic Column</strong><br/>label, annotation</span></a>
  176. </li><!--/li-->
  177. <li data-thumb="asset/img/example/cache.png">
  178. <a href="example/bar2.html"><img src="asset/img/example/cache.png">
  179. <span><strong>Stacked Column</strong><br/>multiple sreies stack</span></a>
  180. </li><!--/li-->
  181. <li data-thumb="asset/img/example/cache.png">
  182. <a href="example/bar10.html"><img src="asset/img/example/cache.png">
  183. <span><strong>Thermometer</strong><br/>custom style, tooltip display</span></a>
  184. </li><!--/li-->
  185. <li data-thumb="asset/img/example/cache.png">
  186. <a href="example/bar7.html"><img src="asset/img/example/cache.png">
  187. <span><strong>Compositive Waterfall</strong><br/>customizable</span></a>
  188. </li><!--/li-->
  189. <li data-thumb="asset/img/example/cache.png">
  190. <a href="example/bar6.html"><img src="asset/img/example/cache.png">
  191. <span><strong>Change Waterfall</strong><br/>customizable</span></a>
  192. </li><!--/li-->
  193. <li data-thumb="asset/img/example/cache.png">
  194. <a href="example/bar12.html"><img src="asset/img/example/cache.png">
  195. <span><strong>Stacked and Clustered Column</strong><br/>customizable</span></a>
  196. </li><!--/li-->
  197. <li data-thumb="asset/img/example/cache.png">
  198. <a href="example/bar3.html"><img src="asset/img/example/cache.png">
  199. <span><strong>Basic Bar</strong><br/>inverted axes</span></a>
  200. </li><!--/li-->
  201. <li data-thumb="asset/img/example/cache.png">
  202. <a href="example/bar4.html"><img src="asset/img/example/cache.png">
  203. <span><strong>Stacked Bar</strong><br/>click on a legend key to show or hide a series</span></a>
  204. </li><!--/li-->
  205. <li data-thumb="asset/img/example/cache.png">
  206. <a href="example/bar9.html"><img src="asset/img/example/cache.png">
  207. <span><strong>Stacked Floating Bar</strong><br/>transparent data-driven style</span></a>
  208. </li><!--/li-->
  209. <li data-thumb="asset/img/example/cache.png">
  210. <a href="example/bar5.html"><img src="asset/img/example/cache.png">
  211. <span><strong>Tornado</strong><br/>bar chart with negative stack</span></a>
  212. </li><!--/li-->
  213. <li data-thumb="asset/img/example/cache.png">
  214. <a href="example/bar8.html"><img src="asset/img/example/cache.png">
  215. <span><strong>Tornado</strong><br/>staggered axes labels</span></a>
  216. </li><!--/li-->
  217. <li data-thumb="asset/img/example/cache.png">
  218. <a href="example/bar13.html"><img src="asset/img/example/cache.png">
  219. <span><strong>Irregular Bar</strong><br/>two value axis</span></a>
  220. </li><!--/li-->
  221. <li data-thumb="asset/img/example/cache.png">
  222. <a href="example/bar11.html"><img src="asset/img/example/cache.png">
  223. <span><strong>Timeline</strong><br/>display how data changes over time</span></a>
  224. </li><!--/li-->
  225. <li data-thumb="asset/img/example/cache.png">
  226. <a href="example/bar14.html"><img src="asset/img/example/cache.png">
  227. <span><strong>Rainbow bar</strong><br/>customizable</span></a>
  228. </li><!--/li-->
  229. <li data-thumb="asset/img/example/cache.png">
  230. <a href="example/bar15.html"><img src="asset/img/example/cache.png">
  231. <span><strong>Multiple sreies rainbow bar</strong><br/>customizable</span></a>
  232. </li><!--/li-->
  233. <li data-thumb="asset/img/example/cache.png">
  234. <a href="example/bar.html"><img src="asset/img/example/cache.png">
  235. <span><strong>Column</strong><br/>multilevel control, customizable</span></a>
  236. </li><!--/li-->
  237. </ul>
  238. </div>
  239. </div>
  240. </div>
  241. <div>
  242. <h3>Scatter<a name="scatter"> </a></h3>
  243. <div class="section">
  244. <div class="thumb4">
  245. <ul class="slides">
  246. <li data-thumb="asset/img/example/scatter1.png">
  247. <a href="example/scatter1.html"><img src="asset/img/example/scatter1.png">
  248. <span><strong>Basic Scatter</strong><br/>label, annotation</span></a>
  249. </li><!--/li-->
  250. <li data-thumb="asset/img/example/cache.png">
  251. <a href="example/scatter2.html"><img src="asset/img/example/cache.png">
  252. <span><strong>Basic Bubble</strong><br/>bubble size calculation</span></a>
  253. </li><!--/li-->
  254. <li data-thumb="asset/img/example/cache.png">
  255. <a href="example/scatter3.html"><img src="asset/img/example/cache.png">
  256. <span><strong>Large-Scale Scatter</strong><br/>enable the setting</span></a>
  257. </li><!--/li-->
  258. <li data-thumb="asset/img/example/cache.png">
  259. <a href="example/scatter5.html"><img src="asset/img/example/cache.png">
  260. <span><strong>Category Scatter</strong><br/>scrollable data area</span></a>
  261. </li><!--/li-->
  262. <li data-thumb="asset/img/example/cache.png">
  263. <a href="example/scatter6.html"><img src="asset/img/example/cache.png">
  264. <span><strong>Time data</strong><br/>time axis</span></a>
  265. </li><!--/li-->
  266. <li data-thumb="asset/img/example/cache.png">
  267. <a href="example/scatter4.html"><img src="asset/img/example/cache.png">
  268. <span><strong>Timeline</strong><br/>like Gapminder</span></a>
  269. </li><!--/li-->
  270. <li data-thumb="asset/img/example/cache.png">
  271. <a href="example/dataRange1.html"><img src="asset/img/example/cache.png">
  272. <span><strong>Scale Roaming</strong><br/>basic function</span></a>
  273. </li><!--/li-->
  274. <li data-thumb="asset/img/example/cache.png">
  275. <a href="example/scatter.html"><img src="asset/img/example/cache.png">
  276. <span><strong>Scatter</strong><br/>multilevel control, customizable</span></a>
  277. </li><!--/li-->
  278. </ul>
  279. </div>
  280. </div>
  281. </div>
  282. <div>
  283. <h3>Candlestick<a name="k"> </a></h3>
  284. <div class="section">
  285. <div class="thumb4">
  286. <ul class="slides">
  287. <li data-thumb="asset/img/example/k1.png">
  288. <a href="example/k1.html"><img src="asset/img/example/k1.png">
  289. <span><strong>Candlestick</strong><br/>label, zoomable</span></a>
  290. </li><!--/li-->
  291. <li data-thumb="asset/img/example/cache.png">
  292. <a href="example/k.html"><img src="asset/img/example/cache.png">
  293. <span><strong>Candlestick</strong><br/>multilevel control, customizable</span></a>
  294. </li><!--/li-->
  295. </ul>
  296. </div>
  297. </div>
  298. </div>
  299. <div>
  300. <h3>Pie<a name="pie"> </a></h3>
  301. <div class="section">
  302. <div class="thumb4">
  303. <ul class="slides">
  304. <li data-thumb="asset/img/example/cache.png">
  305. <a href="example/pie1.html"><img src="asset/img/example/cache.png">
  306. <span><strong>Basic Pie</strong><br/>set center, radius</span></a>
  307. </li><!--/li-->
  308. <li data-thumb="asset/img/example/cache.png">
  309. <a href="example/pie2.html"><img src="asset/img/example/cache.png">
  310. <span><strong>Doughnut</strong><br/>set center and radius, tooltip display</span></a>
  311. </li><!--/li-->
  312. <li data-thumb="asset/img/example/cache.png">
  313. <a href="example/pie3.html"><img src="asset/img/example/cache.png">
  314. <span><strong>Nested Pie</strong><br/>set multiple pies' centers and radii</span></a>
  315. </li><!--/li-->
  316. <li data-thumb="asset/img/example/cache.png">
  317. <a href="example/pie4.html"><img src="asset/img/example/cache.png">
  318. <span><strong>Nightingale's Rose Diagram</strong><br/> radius & area</span></a>
  319. </li><!--/li-->
  320. <li data-thumb="asset/img/example/cache.png">
  321. <a href="example/pie5.html"><img src="asset/img/example/cache.png">
  322. <span><strong>Doughnut</strong><br/>infographic style, tooltip technique</span></a>
  323. </li><!--/li-->
  324. <li data-thumb="asset/img/example/cache.png">
  325. <a href="example/pie6.html"><img src="asset/img/example/cache.png">
  326. <span><strong>Doughnut</strong><br/>infographic style, extra content addition</span></a>
  327. </li><!--/li-->
  328. <li data-thumb="asset/img/example/cache.png">
  329. <a href="example/pie7.html"><img src="asset/img/example/cache.png">
  330. <span><strong>Timeline</strong><br/>display how data changes over time</span></a>
  331. </li><!--/li-->
  332. <li data-thumb="asset/img/example/cache.png">
  333. <a href="example/lasagna.html"><img src="asset/img/example/cache.png">
  334. <span><strong>Lasagna</strong><br/>multi-level doughnut chart</span></a>
  335. </li><!--/li-->
  336. <li data-thumb="asset/img/example/cache.png">
  337. <a href="example/pie.html"><img src="asset/img/example/cache.png">
  338. <span><strong>Pie</strong><br/>multilevel control, customizable</span></a>
  339. </li><!--/li-->
  340. </ul>
  341. </div>
  342. </div>
  343. </div>
  344. <div>
  345. <h3>Radar<a name="radar"> </a></h3>
  346. <div class="section">
  347. <div class="thumb4">
  348. <ul class="slides">
  349. <li data-thumb="asset/img/example/cache.png">
  350. <a href="example/radar1.html"><img src="asset/img/example/cache.png">
  351. <span><strong>Basic Radar</strong><br/>set polar coordinate system </span></a>
  352. </li><!--/li-->
  353. <li data-thumb="asset/img/example/cache.png">
  354. <a href="example/radar2.html"><img src="asset/img/example/cache.png">
  355. <span><strong>Basic Filled Radar</strong><br/>fill style</span></a>
  356. </li><!--/li-->
  357. <li data-thumb="asset/img/example/cache.png">
  358. <a href="example/radar3.html"><img src="asset/img/example/cache.png">
  359. <span><strong>Multiple Radars</strong><br/>multiple polar coordinate systems</span></a>
  360. </li><!--/li-->
  361. <li data-thumb="asset/img/example/cache.png">
  362. <a href="example/wormhole.html"><img src="asset/img/example/cache.png">
  363. <span><strong>Wormhole</strong><br/>multi-level radar chart</span></a>
  364. </li><!--/li-->
  365. <li data-thumb="asset/img/example/cache.png">
  366. <a href="example/radar.html"><img src="asset/img/example/cache.png">
  367. <span><strong>Radar</strong><br/>multilevel control, customizable</span></a>
  368. </li><!--/li-->
  369. </ul>
  370. </div>
  371. </div>
  372. </div>
  373. <div>
  374. <h3>Chord<a name="chord"> </a></h3>
  375. <div class="section">
  376. <div class="thumb3">
  377. <ul class="slides">
  378. <li data-thumb="asset/img/example/cache.png">
  379. <a href="example/chord1.html"><img src="asset/img/example/cache.png">
  380. <span><strong>Basic Chord</strong><br/>data format, sorting</span></a>
  381. </li><!--/li-->
  382. <li data-thumb="asset/img/example/cache.png">
  383. <a href="example/chord2.html"><img src="asset/img/example/cache.png">
  384. <span><strong>Multiple Dimensions</strong><br/>legend selected</span></a>
  385. </li><!--/li-->
  386. <li data-thumb="asset/img/example/cache.png">
  387. <a href="example/chord3.html"><img src="asset/img/example/cache.png">
  388. <span><strong>Basic Chord</strong><br/>data format, sorting</span></a>
  389. </li><!--/li-->
  390. <li data-thumb="asset/img/example/cache.png">
  391. <a href="example/chord4.html"><img src="asset/img/example/cache.png">
  392. <span><strong>Non-ribbon Chord</strong><br/>data format, sorting</span></a>
  393. </li><!--/li-->
  394. <li data-thumb="asset/img/example/cache.png">
  395. <a href="example/webkit-dep2.html"><img src="asset/img/example/cache.png">
  396. <span><strong>Complex Topology</strong><br/>Webkit dependency</span></a>
  397. </li><!--/li-->
  398. <li data-thumb="asset/img/example/cache.png">
  399. <a href="example/chord.html"><img src="asset/img/example/cache.png">
  400. <span><strong>Chord</strong><br/>multilevel control, customizable</span></a>
  401. </li><!--/li-->
  402. </ul>
  403. </div>
  404. </div>
  405. </div>
  406. <div>
  407. <h3>Force-Directed Charts<a name="force"> </a></h3>
  408. <div class="section">
  409. <div class="thumb3">
  410. <ul class="slides">
  411. <li data-thumb="asset/img/example/cache.png">
  412. <a href="example/force1.html"><img src="asset/img/example/cache.png">
  413. <span><strong>Simple Topology</strong><br/>data format</span></a>
  414. </li><!--/li-->
  415. <li data-thumb="asset/img/example/cache.png">
  416. <a href="example/force2.html"><img src="asset/img/example/cache.png">
  417. <span><strong>Tree Topology</strong><br/>data format</span></a>
  418. </li><!--/li-->
  419. <li data-thumb="asset/img/example/cache.png">
  420. <a href="example/force4.html"><img src="asset/img/example/cache.png">
  421. <span><strong>Tree Topology</strong><br/>data format</span></a>
  422. </li><!--/li-->
  423. <li data-thumb="asset/img/example/cache.png">
  424. <a href="example/webkit-dep.html"><img src="asset/img/example/cache.png">
  425. <span><strong>Complex Topology</strong><br/>Webkit dependency</span></a>
  426. </li><!--/li-->
  427. <li data-thumb="asset/img/example/cache.png">
  428. <a href="example/force.html"><img src="asset/img/example/cache.png">
  429. <span><strong>Force-Directed Layout</strong><br/>customizable</span></a>
  430. </li><!--/li-->
  431. </ul>
  432. </div>
  433. </div>
  434. </div>
  435. <div>
  436. <h3>Maps<a name="map"> </a></h3>
  437. <div class="section">
  438. <div class="thumb4">
  439. <ul class="slides">
  440. <li data-thumb="asset/img/example/cache.png">
  441. <a href="example/map1.html"><img src="asset/img/example/cache.png">
  442. <span><strong>Basic Map</strong><br/>China map, multi-series, Scale Roaming</span></a>
  443. </li><!--/li-->
  444. <li data-thumb="asset/img/example/cache.png">
  445. <a href="example/map2.html"><img src="asset/img/example/cache.png">
  446. <span><strong>Basic Map</strong><br/>China map, region selector</span></a>
  447. </li><!--/li-->
  448. <li data-thumb="asset/img/example/cache.png">
  449. <a href="example/map3.html"><img src="asset/img/example/cache.png">
  450. <span><strong>Basic Map</strong><br/>event response, switch</span></a>
  451. </li><!--/li-->
  452. <li data-thumb="asset/img/example/cache.png">
  453. <a href="example/map4.html"><img src="asset/img/example/cache.png">
  454. <span><strong>Basic Map</strong><br/>world map, Scale Roaming</span></a>
  455. </li><!--/li-->
  456. <li data-thumb="asset/img/example/cache.png">
  457. <a href="example/map5.html"><img src="asset/img/example/cache.png">
  458. <span><strong>Basic Map</strong><br/>world map, region selector</span></a>
  459. </li><!--/li-->
  460. <li data-thumb="asset/img/example/cache.png">
  461. <a href="example/mix5.html"><img src="asset/img/example/cache.png">
  462. <span><strong>MultiMap</strong><br/>data-driven, zoom in</span></a>
  463. </li><!--/li-->
  464. <li data-thumb="asset/img/example/cache.png">
  465. <a href="example/map20.html"><img src="asset/img/example/cache.png">
  466. <span><strong>Map Extension</strong><br/>GeoJSON - Chinese city</span></a>
  467. </li><!--/li-->
  468. <li data-thumb="asset/img/example/cache.png">
  469. <a href="example/map6.html"><img src="asset/img/example/cache.png">
  470. <span><strong>Map Extension</strong><br/>GeoJSON - Hong Kong</span></a>
  471. </li><!--/li-->
  472. <li data-thumb="asset/img/example/cache.png">
  473. <a href="example/map7.html"><img src="asset/img/example/cache.png">
  474. <span><strong>Map Extension</strong><br/>GeoJSON - USA</span></a>
  475. </li><!--/li-->
  476. <li data-thumb="asset/img/example/cache.png">
  477. <a href="example/map13.html"><img src="asset/img/example/cache.png">
  478. <span><strong>Map Extension</strong><br/>GeoJSON - Continents</span></a>
  479. </li><!--/li-->
  480. <li data-thumb="asset/img/example/bmap1.png">
  481. <a href="../extension/BMap/doc/BMap.html"><img src="asset/img/example/bmap1.png" >
  482. <span><strong>ECharts Extension</strong><br/>map.baidu.com BMap</span></a>
  483. </li><!--/li-->
  484. <li data-thumb="asset/img/example/bmap2.png">
  485. <a href="../extension/BMap/doc/example.html"><img src="asset/img/example/bmap2.png" >
  486. <span><strong>ECharts Extension</strong><br/>map.baidu.com BMap</span></a>
  487. </li><!--/li-->
  488. <li data-thumb="asset/img/example/cache.png">
  489. <a href="example/map10.html"><img src="asset/img/example/cache.png">
  490. <span><strong>Map MarkLine</strong><br/>markLine<br/>multi-series</span></a>
  491. </li><!--/li-->
  492. <li data-thumb="asset/img/example/cache.png">
  493. <a href="example/map9.html"><img src="asset/img/example/cache.png">
  494. <span><strong>Map MarkPoint</strong><br/>Scale Roaming</span></a>
  495. </li><!--/li-->
  496. <li data-thumb="asset/img/example/cache.png">
  497. <a href="example/map8.html"><img src="asset/img/example/cache.png">
  498. <span><strong>Sub-Region Mode</strong><br/>sub-region mode</span></a>
  499. </li><!--/li-->
  500. <li data-thumb="asset/img/example/cache.png">
  501. <a href="example/map11.html"><img src="asset/img/example/cache.png">
  502. <span><strong>Map MarkLine</strong><br/>glow effects, Baidu migration</span></a>
  503. </li><!--/li-->
  504. <li data-thumb="asset/img/example/cache.png">
  505. <a href="example/map12.html"><img src="asset/img/example/cache.png">
  506. <span><strong>Map MarkLine</strong><br/>glow effect, Chinese trunk railways</span></a>
  507. </li><!--/li-->
  508. <li data-thumb="asset/img/example/cache.png">
  509. <a href="example/map15.html"><img src="asset/img/example/cache.png">
  510. <span><strong>Map MarkLine</strong><br/>large-scale glow effects, Popularity</span></a>
  511. </li><!--/li-->
  512. <li data-thumb="asset/img/example/cache.png">
  513. <a href="example/map16.html"><img src="asset/img/example/cache.png">
  514. <span><strong>Map Extension</strong><br/>SVG - body composition</span></a>
  515. </li><!--/li-->
  516. <li data-thumb="asset/img/example/cache.png">
  517. <a href="example/map17.html"><img src="asset/img/example/cache.png">
  518. <span><strong>Map Extension</strong><br/>SVG - football pitch</span></a>
  519. </li><!--/li-->
  520. <li data-thumb="asset/img/example/cache.png">
  521. <a href="example/map18.html"><img src="asset/img/example/cache.png">
  522. <span><strong>Map Extension</strong><br/>SVG - interior space data analysis</span></a>
  523. </li><!--/li-->
  524. <li data-thumb="asset/img/example/cache.png">
  525. <a href="example/map14.html"><img src="asset/img/example/cache.png">
  526. <span><strong>Timeline</strong><br/>display how data changes over time</span></a>
  527. </li><!--/li-->
  528. <li data-thumb="asset/img/example/cache.png">
  529. <a href="example/map19.html"><img src="asset/img/example/cache.png">
  530. <span><strong>Extension + Timeline</strong><br/>simulation of 2014 World Cup goals</span></a>
  531. </li><!--/li-->
  532. <li data-thumb="asset/img/example/cache.png">
  533. <a href="example/map.html"><img src="asset/img/example/cache.png">
  534. <span><strong>Map</strong><br/>multilevel control, customizable</span></a>
  535. </li><!--/li-->
  536. <li data-thumb="asset/img/example/cache.png">
  537. <a href="example/dataRange2.html"><img src="asset/img/example/cache.png">
  538. <span><strong>Data Range</strong><br/>Customized split list</span></a>
  539. </li><!--/li-->
  540. </ul>
  541. </div>
  542. </div>
  543. </div>
  544. <div>
  545. <h3>Gauges<a name="gauge"> </a></h3>
  546. <div class="section">
  547. <div class="thumb4">
  548. <ul class="slides">
  549. <li data-thumb="asset/img/example/gauge1.png">
  550. <a href="example/gauge1.html"><img src="asset/img/example/gauge1.png">
  551. <span><strong>Basic Angular Gauge</strong><br/>customizable</span></a>
  552. </li><!--/li-->
  553. <li data-thumb="asset/img/example/cache.png">
  554. <a href="example/gauge2.html"><img src="asset/img/example/cache.png">
  555. <span><strong>Basic Angular Gauge</strong><br/>customizable</span></a>
  556. </li><!--/li-->
  557. <li data-thumb="asset/img/example/cache.png">
  558. <a href="example/gauge3.html"><img src="asset/img/example/cache.png">
  559. <span><strong>Basic Angular Gauge</strong><br/>customizable</span></a>
  560. </li><!--/li-->
  561. <li data-thumb="asset/img/example/cache.png">
  562. <a href="example/gauge4.html"><img src="asset/img/example/cache.png">
  563. <span><strong>Multiple Angular Gauges</strong><br/>customizable</span></a>
  564. </li><!--/li-->
  565. <li data-thumb="asset/img/example/cache.png">
  566. <a href="example/gauge5.html"><img src="asset/img/example/cache.png">
  567. <span><strong>Multiple Angular Gauges</strong><br/>customizable</span></a>
  568. </li><!--/li-->
  569. <li data-thumb="asset/img/example/cache.png">
  570. <a href="example/gauge.html"><img src="asset/img/example/cache.png">
  571. <span><strong>Basic Angular Gauge</strong><br/>customizable</span></a>
  572. </li><!--/li-->
  573. </ul>
  574. </div>
  575. </div>
  576. </div>
  577. <div>
  578. <h3>Funnel<a name="funnel"> </a></h3>
  579. <div class="section">
  580. <div class="thumb4">
  581. <ul class="slides">
  582. <li data-thumb="asset/img/example/funnel1.png">
  583. <a href="example/funnel1.html"><img src="asset/img/example/funnel1.png">
  584. <span><strong>Basic Funnel</strong><br/>customizable</span></a>
  585. </li><!--/li-->
  586. <li data-thumb="asset/img/example/cache.png">
  587. <a href="example/funnel2.html"><img src="asset/img/example/cache.png">
  588. <span><strong>Multiple Funnels</strong><br/>customizable</span></a>
  589. </li><!--/li-->
  590. <li data-thumb="asset/img/example/cache.png">
  591. <a href="example/funnel3.html"><img src="asset/img/example/cache.png">
  592. <span><strong>Multiple Funnels</strong><br/>customizable</span></a>
  593. </li><!--/li-->
  594. <li data-thumb="asset/img/example/cache.png">
  595. <a href="example/funnel4.html"><img src="asset/img/example/cache.png">
  596. <span><strong>Multiple Funnels</strong><br/>customizable align</span></a>
  597. </li><!--/li-->
  598. <li data-thumb="asset/img/example/cache.png">
  599. <a href="example/funnel.html"><img src="asset/img/example/cache.png">
  600. <span><strong>Basic Funnel</strong><br/>customizable</span></a>
  601. </li><!--/li-->
  602. </ul>
  603. </div>
  604. </div>
  605. </div>
  606. <div>
  607. <h3>Heatmap<a name="heatmap"> </a></h3>
  608. <div class="section">
  609. <div class="thumb4">
  610. <ul class="slides">
  611. <li data-thumb="asset/img/example/cache.png">
  612. <a href="example/heatmap.html"><img src="asset/img/example/cache.png">
  613. <span><strong>Heatmap</strong><br/>Customizable</span></a>
  614. </li><!--/li-->
  615. <li data-thumb="asset/img/example/cache.png">
  616. <a href="example/heatmap2.html"><img src="asset/img/example/cache.png">
  617. <span><strong>Heatmap</strong></span></a>
  618. </li><!--/li-->
  619. <li data-thumb="asset/img/example/cache.png">
  620. <a href="example/heatmap_map.html"><img src="asset/img/example/cache.png">
  621. <span><strong>Heatmap</strong><br/>Used with map</span></a>
  622. </li><!--/li-->
  623. </ul>
  624. </div>
  625. </div>
  626. </div>
  627. <div>
  628. <h3>EventRiver<a name="eventRiver"> </a></h3>
  629. <div class="section">
  630. <div class="thumb4">
  631. <ul class="slides">
  632. <li data-thumb="asset/img/example/eventRiver1.png">
  633. <a href="example/eventRiver1.html"><img src="asset/img/example/eventRiver1.png">
  634. <span><strong>EventRiver</strong><br/>customizable</span></a>
  635. </li><!--/li-->
  636. <li data-thumb="asset/img/example/cache.png">
  637. <a href="example/eventRiver2.html"><img src="asset/img/example/cache.png">
  638. <span><strong>EventRiver</strong><br/>customizable</span></a>
  639. </li><!--/li-->
  640. </ul>
  641. </div>
  642. </div>
  643. </div>
  644. <div>
  645. <h3>Venn<a name="venn"> </a></h3>
  646. <div class="section">
  647. <div class="thumb4">
  648. <ul class="slides">
  649. <li data-thumb="asset/img/example/cache.png">
  650. <a href="example/venn.html"><img src="asset/img/example/cache.png">
  651. <span><strong>Venn</strong><br/>customizable</span></a>
  652. </li><!--/li-->
  653. </ul>
  654. </div>
  655. </div>
  656. </div>
  657. <div>
  658. <h3>Treemap<a name="treemap"> </a></h3>
  659. <div class="section">
  660. <div class="thumb4">
  661. <ul class="slides">
  662. <li data-thumb="asset/img/example/cache.png">
  663. <a href="example/treemap.html"><img src="asset/img/example/cache.png">
  664. <span><strong>Treemap</strong><br/>Basic example</span></a>
  665. </li><!--/li-->
  666. <li data-thumb="asset/img/example/cache.png">
  667. <a href="example/treemap1.html"><img src="asset/img/example/cache.png">
  668. <span><strong>Treemap</strong><br/>Drill down</span></a>
  669. </li><!--/li-->
  670. <li data-thumb="asset/img/example/cache.png">
  671. <a href="example/treemap2.html"><img src="asset/img/example/cache.png">
  672. <span><strong>Treemap</strong><br/>customizable</span></a>
  673. </li><!--/li-->
  674. </ul>
  675. </div>
  676. </div>
  677. </div>
  678. <div>
  679. <h3>Tree<a name="tree"> </a></h3>
  680. <div class="section">
  681. <div class="thumb4">
  682. <ul class="slides">
  683. <li data-thumb="asset/img/example/cache.png">
  684. <a href="example/tree.html"><img src="asset/img/example/cache.png">
  685. <span><strong>Tree</strong><br/>Basic example</span></a>
  686. </li><!--/li-->
  687. <li data-thumb="asset/img/example/cache.png">
  688. <a href="example/tree2.html"><img src="asset/img/example/cache.png">
  689. <span><strong>Tree</strong><br/>China province</span></a>
  690. </li><!--/li-->
  691. <li data-thumb="asset/img/example/cache.png">
  692. <a href="example/tree1.html"><img src="asset/img/example/cache.png">
  693. <span><strong>Tree</strong><br/>Customizable</span></a>
  694. </li><!--/li-->
  695. </ul>
  696. </div>
  697. </div>
  698. </div>
  699. <div>
  700. <h3>Word Cloud<a name="wordCloud"> </a></h3>
  701. <div class="section">
  702. <div class="thumb4">
  703. <ul class="slides">
  704. <li data-thumb="asset/img/example/cache.png">
  705. <a href="example/wordCloud.html"><img src="asset/img/example/cache.png">
  706. <span><strong>Word Cloud</strong></a>
  707. </li><!--/li-->
  708. </ul>
  709. </div>
  710. </div>
  711. </div>
  712. <div>
  713. <h3>Combinations<a name="mix"> </a></h3>
  714. <div class="section">
  715. <div class="thumb4">
  716. <ul class="slides">
  717. <li data-thumb="asset/img/example/cache.png">
  718. <a href="example/mix1.html"><img src="asset/img/example/cache.png">
  719. <span><strong>Column + Line</strong><br/>double value axes</span></a>
  720. </li><!--/li-->
  721. <li data-thumb="asset/img/example/cache.png">
  722. <a href="example/mix6.html"><img src="asset/img/example/cache.png">
  723. <span><strong>Column + Line</strong><br/>range simulation</span></a>
  724. </li><!--/li-->
  725. <li data-thumb="asset/img/example/cache.png">
  726. <a href="example/mix2.html"><img src="asset/img/example/cache.png">
  727. <span><strong>Column + Pie</strong><br/>custom pie center</span></a>
  728. </li><!--/li-->
  729. <li data-thumb="asset/img/example/cache.png">
  730. <a href="example/mix4.html"><img src="asset/img/example/cache.png">
  731. <span><strong>Scatter + Line</strong><br/>synchronized of value and category axis</span></a>
  732. </li><!--/li-->
  733. <li data-thumb="asset/img/example/cache.png">
  734. <a href="example/mix7.html"><img src="asset/img/example/cache.png">
  735. <span><strong>Scatter + Pie</strong><br/>pie in bubble’s place, multi-series</span></a>
  736. </li><!--/li-->
  737. <li data-thumb="asset/img/example/cache.png">
  738. <a href="example/mix10.html"><img src="asset/img/example/cache.png">
  739. <span><strong>Candlestick + Line</strong><br/>double value axes, multi-series</span></a>
  740. </li><!--/li-->
  741. <li data-thumb="asset/img/example/cache.png">
  742. <a href="example/mix12.html"><img src="asset/img/example/cache.png">
  743. <span><strong>Line + Pie</strong><br/>tendency and percentage, more efficient</span></a>
  744. </li><!--/li-->
  745. <li data-thumb="asset/img/example/cache.png">
  746. <a href="example/mix3.html"><img src="asset/img/example/cache.png">
  747. <span><strong>Map + Pie</strong><br/>map as region selector</span></a>
  748. </li><!--/li-->
  749. <li data-thumb="asset/img/example/cache.png">
  750. <a href="example/mix9.html"><img src="asset/img/example/cache.png">
  751. <span><strong>Multiple Combinations</strong><br/>easy connect, legend, tool sharing, multi-series</span></a>
  752. </li><!--/li-->
  753. <li data-thumb="asset/img/example/cache.png">
  754. <a href="example/mix8.html"><img src="asset/img/example/cache.png">
  755. <span><strong>Multiple Combinations</strong><br/>Cartesian coordinate system, multi-series</span></a>
  756. </li><!--/li-->
  757. <li data-thumb="asset/img/example/cache.png">
  758. <a href="example/mix11.html"><img src="asset/img/example/cache.png">
  759. <span><strong>Business Intelligence(BI) Charts</strong><br/>gauge, nested funnel</span></a>
  760. </li><!--/li-->
  761. </ul>
  762. </div>
  763. </div>
  764. </div>
  765. <div>
  766. <h3>Components<a name="component"> </a></h3>
  767. <div class="section">
  768. <div class="thumb3">
  769. <ul class="slides">
  770. <li data-thumb="asset/img/example/cache.png">
  771. <a href="example/axis.html"><img src="asset/img/example/cache.png">
  772. <span><strong>Coordinate System</strong><br/>customizable</span></a>
  773. </li><!--/li-->
  774. <li data-thumb="asset/img/doc/legend.png">
  775. <a href="example/legend.html"><img src="asset/img/doc/legend.png">
  776. <span><strong>Legend</strong><br/>customizable</span></a>
  777. </li><!--/li-->
  778. <li data-thumb="asset/img/example/cache.png">
  779. <a href="example/dataZoom1.html"><img src="asset/img/example/cache.png">
  780. <span><strong>Data Area Zoom</strong><br/>basic function</span></a>
  781. </li><!--/li-->
  782. <li data-thumb="asset/img/example/cache.png">
  783. <a href="example/dataZoom.html"><img src="asset/img/example/cache.png">
  784. <span><strong>Data Area Control</strong><br/>customizable</span></a>
  785. </li><!--/li-->
  786. <li data-thumb="asset/img/example/cache.png">
  787. <a href="example/tooltip.html"><img src="asset/img/example/cache.png">
  788. <span><strong>Tooltip</strong><br/>multilevel control, customizable</span></a>
  789. </li><!--/li-->
  790. <li data-thumb="asset/img/example/cache.png">
  791. <a href="example/dataRange.html"><img src="asset/img/example/cache.png">
  792. <span><strong>Scale Control</strong><br/>custom layout, background, drag handle, etc</span></a>
  793. </li><!--/li-->
  794. </ul>
  795. </div>
  796. </div>
  797. </div>
  798. <div>
  799. <h3>Others<a name="other"> </a></h3>
  800. <div class="section">
  801. <div class="thumb4">
  802. <ul class="slides">
  803. <li data-thumb="asset/img/example/cache.png">
  804. <a href="example/dynamicLineBar.html"><img src="asset/img/example/cache.png">
  805. <span><strong>Dynamic Data</strong><br/>line, column</span></a>
  806. </li><!--/li-->
  807. <li data-thumb="asset/img/example/cache.png">
  808. <a href="example/dynamicScatterK.html"><img src="asset/img/example/cache.png">
  809. <span><strong>Dynamic Data</strong><br/>scatter, candlestick</span></a>
  810. </li><!--/li-->
  811. <li data-thumb="asset/img/example/cache.png">
  812. <a href="example/dynamicPieRadar.html"><img src="asset/img/example/cache.png">
  813. <span><strong>Dynamic Data</strong><br/>pie, radar</span></a>
  814. </li><!--/li-->
  815. <li data-thumb="asset/img/example/cache.png">
  816. <a href="example/loading.html"><img src="asset/img/example/cache.png">
  817. <span><strong>Animated Transition </strong><br/>Loading</span></a>
  818. </li><!--/li-->
  819. <li data-thumb="asset/img/example/import.png">
  820. <a href="example/www/index.html"><img src="asset/img/example/import.png">
  821. <span><strong>Single File Import</strong><br/>modular single file echarts.js</span></a>
  822. </li><!--/li-->
  823. <li data-thumb="asset/img/example/import.png">
  824. <a href="example/www2/index.html"><img src="asset/img/example/import.png">
  825. <span><strong>Single File Import</strong><br/>plain single file echarts-all.js</span></a>
  826. </li><!--/li-->
  827. <li data-thumb="asset/img/example/cache.png">
  828. <a href="example/event.html"><img src="asset/img/example/cache.png">
  829. <span><strong>Event Interaction</strong><br/>link chart with the outside</span></a>
  830. </li><!--/li-->
  831. </ul>
  832. </div>
  833. </div>
  834. </div>
  835. <div>
  836. <h3>Themes<a name="theme"> </a></h3>
  837. <p>Theme Preview <a href='example/theme.html#-en' target="_blank">ECharts Theme</a>, Custom Theme Debugger <a href='example/themeDesigner.html#-en' target="_blank">ECharts Theme Designer</a></p>
  838. <p><small>PS: Please do not rely too much on the code editing area, for we don't have local cache and the page will be gone once you refresh it. Instead, we would strongly recommend that you use a local editor to customize your theme, and the code editing area to debug it. When you finish writing your theme, just click on the "SaveAsImage" button at the top of the page (not supported by IE8-), and all the charts will be saved in a picture, which is the default style. Come on, show us your design, and make it our built-in or even default theme! As a reward, we will offer you a small gift and add your name to the contributor list.</small></p>
  839. <a href="example/theme.html#-en" target="_blank"><img src="asset/img/example/theme.png" style="max-width:100%"></a>
  840. <div>
  841. </div>
  842. <h3>Features<a name="topic"></a></h3>
  843. <p><small>The following pages do not support old versions of IE; please use IE9+, chrome, safari, firefox, opear or other modern browsers.</small></p>
  844. <ul>
  845. <li><a href="example/topic/aqi-china/index.html" target="_blank">Air Quality of Major Chinese Cities </a> by <a href="http://weibo.com/wfsr" target="_blank">Da Fo</a>(Baidu), <a href="http://weibo.com/kenerlinfeng" target="_blank">Lin Feng</a>(Baidu)</li>
  846. <li><a href="example/topic/10-me-china/index.html" target="_blank">Charting China's Economy (2002-2011)</a> by Yu Bo (Xinhua News Agency), Wu Chuyin(Nanfang Metropolis Daily), <a href="http://weibo.com/kenerlinfeng" target="_blank">Lin Feng</a>(Baidu)</li>
  847. <li><a href="example/topic/24-population-china/index.html" target="_blank">China's population flow (1987 - 2011)</a> by Meng Lixin(Tencent), Wang Feiyu(Securities Times), Yan Dong (Shijue.me), <a href="http://weibo.com/kenerlinfeng" target="_blank">Lin Feng</a>(Baidu)</li>
  848. <li><a href="http://hijiangtao.github.io/variety-show-hot-spot-vis/" target="_blank">TV show visual evaluation system</a> by <a href="http://hijiangtao.github.io/variety-show-hot-spot-vis/about/" target="_blank">Data.BIT</a> (Beijing Institute of Technology)</li>
  849. <li><a href="http://echarts.baidu.com/doc/example/topic/sino-japanese-war-1895/index.html" target="_blank">120th anniversary of the sino-japanese war</a> by <a href="http://weibo.com/u/3798120772" target="_blank">Fu Jianhai</a> (CSDN open source camp)</li>
  850. <li><a href="http://www.thinkgis.cn/public/sina/" target="_blank">2014 Sina Weibo POI Data Visualization</a> by <a href="http://www.weibo.com/u/1707284737" target="_blank">ThinkingGIS </a></li>
  851. </ul>
  852. </div>
  853. </div>
  854. </div>
  855. </div> <!-- /container -->
  856. <footer id="footer"></footer>
  857. <!-- Le javascript
  858. ================================================== -->
  859. <!-- Placed at the end of the document so the pages load faster -->
  860. <script src="./asset/js/jquery.min.js"></script>
  861. <script type="text/javascript" src="./asset/js/echartsHome.js"></script>
  862. <script src="./asset/js/bootstrap.min.js"></script>
  863. <script type="text/javascript">
  864. $(function (){
  865. var section = $('[class=section]');
  866. function loadImage(i) {
  867. setTimeout(function (){
  868. var list = $('div>ul>li>a', section[i]);
  869. var nav = $('ol>li>img', section[i]);
  870. var href;
  871. var src;
  872. if (list.length > 0) {
  873. for (var j = 0, k = list.length; j < k; j++) {
  874. list[j].target = '_blank';
  875. href = list[j].href.slice(list[j].href.lastIndexOf('/') + 1, -5);
  876. src = list[j].firstChild.src.replace(
  877. 'cache', href
  878. );
  879. list[j].firstChild.alt = 'ECharts ' + href;
  880. list[j].firstChild.src = src;
  881. list[j].href += '#-en';
  882. }
  883. }
  884. }, i * 100);
  885. }
  886. for (var i = 0, l = section.length; i < l; i++) {
  887. loadImage(i);
  888. }
  889. var chartsTypeNav = document.getElementById('chartsTypeNav');
  890. function _scroll() {
  891. var navHeight = chartsTypeNav.offsetHeight;
  892. var viewHeight = document.documentElement.clientHeight;
  893. var scrollHeight = document.documentElement.scrollTop
  894. || document.body.scrollTop;
  895. var offsetHeight = document.body.offsetHeight;
  896. var footHole = offsetHeight - scrollHeight - viewHeight;
  897. var maxHeight = viewHeight - (230 - footHole) - 80;
  898. if (footHole < 320 && maxHeight < navHeight) {
  899. // 见footer
  900. //chartsTypeNav.style.marginTop = footHole - 150 + 'px';
  901. chartsTypeNav.style.marginTop = maxHeight - navHeight + 'px';
  902. }
  903. else {
  904. // 未见footer
  905. chartsTypeNav.style.marginTop = 'auto';
  906. }
  907. var len = offsetList.length;
  908. if (scrollHeight > offsetList[len - 3].offsetTop) {
  909. navDom[len - 2].style.backgroundColor = '#3E98C5';
  910. $(navDom[len - 2]).children('a')[0].style.color = '#fff';
  911. }
  912. else {
  913. for (var i = 0; i < len - 1; i++) {
  914. if (Math.abs(scrollHeight - offsetList[i].offsetTop) < 280 && navDom[i]) {
  915. navDom[i].style.backgroundColor = '#3E98C5';
  916. $(navDom[i]).children('a')[0].style.color = '#fff';
  917. }
  918. else {
  919. navDom[i].style.backgroundColor = 'transparent';
  920. $(navDom[i]).children('a')[0].style.color = '#3E98C5';
  921. }
  922. }
  923. }
  924. }
  925. var offsetList = [];
  926. var navDom = $('#chartsTypeNav>ul>li');
  927. function _resize() {
  928. offsetList = [];
  929. $('h3').each(function(idx, dom){
  930. offsetList[idx] = {
  931. name : dom.childNodes[1].name,
  932. offsetTop : dom.childNodes[1].offsetTop
  933. };
  934. });
  935. offsetList.push({
  936. name : 'topic',
  937. offsetTop : 100000
  938. })
  939. setTimeout(_scroll, 500);
  940. }
  941. function scroll2Pos (idx) {
  942. return function() {
  943. $("body,html").animate(
  944. {scrollTop: offsetList[idx].offsetTop + 30},
  945. 500
  946. );
  947. return false;
  948. }
  949. }
  950. $('#chartsTypeNav>ul>li>a').each(function(idx, dom){
  951. $(dom).on('click', scroll2Pos(idx));
  952. })
  953. $(window).on('scroll', _scroll);
  954. $(window).on('resize', _resize);
  955. _resize();
  956. });
  957. </script>
  958. </body>
  959. </html>