example.html 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  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">折线(面积)图</a></li>
  90. <li><i class="ec-icon ec-icon-bar"></i> <a href="#bar">柱状(条形)图</a></li>
  91. <li><i class="ec-icon ec-icon-scatter"></i> <a href="#scatter">散点(气泡)图</a></li>
  92. <li><i class="ec-icon ec-icon-k"></i> <a href="#k">K线图</a></li>
  93. <li><i class="ec-icon ec-icon-pie"></i> <a href="#pie">饼(圆环)图</a></li>
  94. <li><i class="ec-icon ec-icon-radar"></i> <a href="#radar">雷达(面积)图</a></li>
  95. <li><i class="ec-icon ec-icon-chord"></i> <a href="#chord">和弦图</a></li>
  96. <li><i class="ec-icon ec-icon-force"></i> <a href="#force">力导向布局图</a></li>
  97. <li><i class="ec-icon ec-icon-map"></i> <a href="#map">地图</a></li>
  98. <li><i class="ec-icon ec-icon-gauge"></i> <a href="#gauge">仪表盘</a></li>
  99. <li><i class="ec-icon ec-icon-funnel"></i> <a href="#funnel">漏斗图</a></li>
  100. <li><i class="ec-icon ec-icon-eventRiver"></i> <a href="#eventRiver">事件河流图</a></li>
  101. <li><i class="ec-icon ec-icon-mix"></i> <a href="#mix">混搭</a></li>
  102. <li><i class="ec-icon ec-icon-component"></i> <a href="#component">组件</a></li>
  103. <li><i class="ec-icon ec-icon-other"></i> <a href="#other">其他</a></li>
  104. <li><i class="ec-icon ec-icon-theme"></i> <a href="#theme">主题</a></li>
  105. <li><i class="ec-icon ec-icon-topic"></i> <a href="#topic">专题</a></li>
  106. </ul>
  107. </div>
  108. </div>
  109. <div class="col-md-10">
  110. <p style="margin:10px 0 -30px 0">
  111. <a href="./start.html" target="_blank" style="margin-right: 50px;">入门教程 ( Getting started ) »</a>
  112. <a href="https://github.com/ecomfe/echarts/issues?page=1&state=open" target="_blank">Any feedback or question ? »</a>
  113. </p>
  114. <div>
  115. <h3>折线图<a name="line"> </a></h3>
  116. <div class="section">
  117. <div class="thumb3">
  118. <ul class="slides">
  119. <li data-thumb="asset/img/example/line1.png">
  120. <a href="example/line1.html"><img src="asset/img/example/line1.png" >
  121. <span><strong>标准折线图</strong><br/>标注,标线,个性化线条阴影</span></a>
  122. </li><!--/li-->
  123. <li data-thumb="asset/img/example/cache.png">
  124. <a href="example/line2.html"><img src="asset/img/example/cache.png">
  125. <span><strong>堆积折线图</strong><br/>任意系列多维度堆积</span></a>
  126. </li><!--/li-->
  127. <li data-thumb="asset/img/example/cache.png">
  128. <a href="example/line5.html"><img src="asset/img/example/cache.png">
  129. <span><strong>标准折线图</strong><br/>横纵坐标轴互换,平滑曲线</span></a>
  130. </li><!--/li-->
  131. <li data-thumb="asset/img/example/cache.png">
  132. <a href="example/line3.html"><img src="asset/img/example/cache.png">
  133. <span><strong>标准面积图</strong><br/>填充样式,平滑曲线<br/></span></a>
  134. </li><!--/li-->
  135. <li data-thumb="asset/img/example/cache.png">
  136. <a href="example/line4.html"><img src="asset/img/example/cache.png">
  137. <span><strong>堆积面积图</strong><br/>任意系列多维度堆积</span></a>
  138. </li><!--/li-->
  139. <li data-thumb="asset/img/example/cache.png">
  140. <a href="example/line7.html"><img src="asset/img/example/cache.png">
  141. <span><strong>不等距折线图</strong><br/>双数值轴</span></a>
  142. </li><!--/li-->
  143. <li data-thumb="asset/img/example/cache.png">
  144. <a href="example/line8.html"><img src="asset/img/example/cache.png">
  145. <span><strong>不等距折线图</strong><br/>时间坐标轴折线图</span></a>
  146. </li><!--/li-->
  147. <li data-thumb="asset/img/example/cache.png">
  148. <a href="example/line6.html"><img src="asset/img/example/cache.png">
  149. <span><strong>面积图</strong><br/>反向数值轴</span></a>
  150. </li><!--/li-->
  151. <li data-thumb="asset/img/example/cache.png">
  152. <a href="example/line.html"><img src="asset/img/example/cache.png">
  153. <span><strong>折线图</strong><br/>多级控制,个性化,填充、线条、拐点样式等</span></a>
  154. </li><!--/li-->
  155. </ul>
  156. </div>
  157. </div>
  158. </div>
  159. <div>
  160. <h3>柱状图<a name="bar"> </a></h3>
  161. <div class="section">
  162. <div class="thumb4">
  163. <ul class="slides">
  164. <li data-thumb="asset/img/example/bar1.png">
  165. <a href="example/bar1.html"><img src="asset/img/example/bar1.png">
  166. <span><strong>标准柱状图</strong><br/>标注,标线</span></a>
  167. </li><!--/li-->
  168. <li data-thumb="asset/img/example/cache.png">
  169. <a href="example/bar2.html"><img src="asset/img/example/cache.png">
  170. <span><strong>堆积柱状图</strong><br/>标线,任意系列多维度堆积</span></a>
  171. </li><!--/li-->
  172. <li data-thumb="asset/img/example/cache.png">
  173. <a href="example/bar10.html"><img src="asset/img/example/cache.png">
  174. <span><strong>温度计式图表</strong><br/>个性化样式,文本标签显示</span></a>
  175. </li><!--/li-->
  176. <li data-thumb="asset/img/example/cache.png">
  177. <a href="example/bar7.html"><img src="asset/img/example/cache.png">
  178. <span><strong>组成瀑布图</strong><br/>个性化样式,文本标签显示,透明数据驱动样式</span></a>
  179. </li><!--/li-->
  180. <li data-thumb="asset/img/example/cache.png">
  181. <a href="example/bar6.html"><img src="asset/img/example/cache.png">
  182. <span><strong>变化瀑布图</strong><br/>个性化样式,文本标签显示,透明数据驱动样式</span></a>
  183. </li><!--/li-->
  184. <li data-thumb="asset/img/example/cache.png">
  185. <a href="example/bar12.html"><img src="asset/img/example/cache.png">
  186. <span><strong>多系列层叠</strong><br/>个性化样式</span></a>
  187. </li><!--/li-->
  188. <li data-thumb="asset/img/example/cache.png">
  189. <a href="example/bar3.html"><img src="asset/img/example/cache.png">
  190. <span><strong>标准条形图</strong><br/>横纵坐标轴互换</span></a>
  191. </li><!--/li-->
  192. <li data-thumb="asset/img/example/cache.png">
  193. <a href="example/bar4.html"><img src="asset/img/example/cache.png">
  194. <span><strong>堆积条形图</strong><br/>任意系列多维度堆积</span></a>
  195. </li><!--/li-->
  196. <li data-thumb="asset/img/example/cache.png">
  197. <a href="example/bar9.html"><img src="asset/img/example/cache.png">
  198. <span><strong>多维条形图</strong><br/>个性化样式,文本标签显示,透明数据驱动样式</span></a>
  199. </li><!--/li-->
  200. <li data-thumb="asset/img/example/cache.png">
  201. <a href="example/bar5.html"><img src="asset/img/example/cache.png">
  202. <span><strong>旋风条形图</strong><br/>正负值混合</span></a>
  203. </li><!--/li-->
  204. <li data-thumb="asset/img/example/cache.png">
  205. <a href="example/bar8.html"><img src="asset/img/example/cache.png">
  206. <span><strong>旋风条形图</strong><br/>正负值混合,交错正负轴标签</span></a>
  207. </li><!--/li-->
  208. <li data-thumb="asset/img/example/cache.png">
  209. <a href="example/bar13.html"><img src="asset/img/example/cache.png">
  210. <span><strong>不等距柱形图</strong><br/>双数值轴</span></a>
  211. </li><!--/li-->
  212. <li data-thumb="asset/img/example/cache.png">
  213. <a href="example/bar11.html"><img src="asset/img/example/cache.png">
  214. <span><strong>搭配时间轴</strong><br/>时空维度的数据展现</span></a>
  215. </li><!--/li-->
  216. <li data-thumb="asset/img/example/cache.png">
  217. <a href="example/bar14.html"><img src="asset/img/example/cache.png">
  218. <span><strong>彩虹柱形图</strong><br/>个性化</span></a>
  219. </li><!--/li-->
  220. <li data-thumb="asset/img/example/cache.png">
  221. <a href="example/bar15.html"><img src="asset/img/example/cache.png">
  222. <span><strong>多系列彩虹柱形图</strong><br/>个性化</span></a>
  223. </li><!--/li-->
  224. <li data-thumb="asset/img/example/cache.png">
  225. <a href="example/bar.html"><img src="asset/img/example/cache.png">
  226. <span><strong>柱状图</strong><br/>个性化,柱形宽度,填充、高亮、文本样式等</span></a>
  227. </li><!--/li-->
  228. </ul>
  229. </div>
  230. </div>
  231. </div>
  232. <div>
  233. <h3>散点图<a name="scatter"> </a></h3>
  234. <div class="section">
  235. <div class="thumb4">
  236. <ul class="slides">
  237. <li data-thumb="asset/img/example/scatter1.png">
  238. <a href="example/scatter1.html"><img src="asset/img/example/scatter1.png">
  239. <span><strong>标准散点图</strong><br/>标注,标线</span></a>
  240. </li><!--/li-->
  241. <li data-thumb="asset/img/example/cache.png">
  242. <a href="example/scatter2.html"><img src="asset/img/example/cache.png">
  243. <span><strong>标准气泡图</strong><br/>气泡大小计算</span></a>
  244. </li><!--/li-->
  245. <li data-thumb="asset/img/example/cache.png">
  246. <a href="example/scatter3.html"><img src="asset/img/example/cache.png">
  247. <span><strong>大规模散点图</strong><br/>启用设置</span></a>
  248. </li><!--/li-->
  249. <li data-thumb="asset/img/example/cache.png">
  250. <a href="example/scatter5.html"><img src="asset/img/example/cache.png">
  251. <span><strong>类目散点图</strong><br/>搭配数据区域缩放</span></a>
  252. </li><!--/li-->
  253. <li data-thumb="asset/img/example/cache.png">
  254. <a href="example/scatter6.html"><img src="asset/img/example/cache.png">
  255. <span><strong>时间坐标</strong><br/>时间坐标轴</span></a>
  256. </li><!--/li-->
  257. <li data-thumb="asset/img/example/cache.png">
  258. <a href="example/scatter4.html"><img src="asset/img/example/cache.png">
  259. <span><strong>搭配时间轴</strong><br/>时空维度数据展现,Gapminder</span></a>
  260. </li><!--/li-->
  261. <li data-thumb="asset/img/example/cache.png">
  262. <a href="example/dataRange1.html"><img src="asset/img/example/cache.png">
  263. <span><strong>搭配值域漫游</strong><br/>基本使用</span></a>
  264. </li><!--/li-->
  265. <li data-thumb="asset/img/example/cache.png">
  266. <a href="example/scatter.html"><img src="asset/img/example/cache.png">
  267. <span><strong>散点图</strong><br/>多级控制,个性化图形样式,大小等</span></a>
  268. </li><!--/li-->
  269. </ul>
  270. </div>
  271. </div>
  272. </div>
  273. <div>
  274. <h3>K线图<a name="k"> </a></h3>
  275. <div class="section">
  276. <div class="thumb4">
  277. <ul class="slides">
  278. <li data-thumb="asset/img/example/k1.png">
  279. <a href="example/k1.html"><img src="asset/img/example/k1.png">
  280. <span><strong>标准K线图</strong><br/>标注,标线,数据区域缩放</span></a>
  281. </li><!--/li-->
  282. <li data-thumb="asset/img/example/cache.png">
  283. <a href="example/k.html"><img src="asset/img/example/cache.png">
  284. <span><strong>K线图</strong><br/>多级控制,个性化,柱形阴阳图形样式等</span></a>
  285. </li><!--/li-->
  286. </ul>
  287. </div>
  288. </div>
  289. </div>
  290. <div>
  291. <h3>饼图<a name="pie"> </a></h3>
  292. <div class="section">
  293. <div class="thumb4">
  294. <ul class="slides">
  295. <li data-thumb="asset/img/example/cache.png">
  296. <a href="example/pie1.html"><img src="asset/img/example/cache.png">
  297. <span><strong>标准饼图</strong><br/>中心,半径设置</span></a>
  298. </li><!--/li-->
  299. <li data-thumb="asset/img/example/cache.png">
  300. <a href="example/pie2.html"><img src="asset/img/example/cache.png">
  301. <span><strong>标准环形图</strong><br/>中心,半径设置,文本标签显示</span></a>
  302. </li><!--/li-->
  303. <li data-thumb="asset/img/example/cache.png">
  304. <a href="example/pie3.html"><img src="asset/img/example/cache.png">
  305. <span><strong>嵌套饼图</strong><br/>多个饼图,中心,半径设置,文本标签显示</span></a>
  306. </li><!--/li-->
  307. <li data-thumb="asset/img/example/cache.png">
  308. <a href="example/pie4.html"><img src="asset/img/example/cache.png">
  309. <span><strong>南丁格尔玫瑰图</strong><br/>半径、面积玫瑰图样式</span></a>
  310. </li><!--/li-->
  311. <li data-thumb="asset/img/example/cache.png">
  312. <a href="example/pie5.html"><img src="asset/img/example/cache.png">
  313. <span><strong>环形图</strong><br/>信息图样式,文本标签技巧</span></a>
  314. </li><!--/li-->
  315. <li data-thumb="asset/img/example/cache.png">
  316. <a href="example/pie6.html"><img src="asset/img/example/cache.png">
  317. <span><strong>环形图</strong><br/>信息图样式,额外内容添加,文本标签技巧</span></a>
  318. </li><!--/li-->
  319. <li data-thumb="asset/img/example/cache.png">
  320. <a href="example/pie7.html"><img src="asset/img/example/cache.png">
  321. <span><strong>搭配时间轴</strong><br/>时空维度数据展现</span></a>
  322. </li><!--/li-->
  323. <li data-thumb="asset/img/example/cache.png">
  324. <a href="example/lasagna.html"><img src="asset/img/example/cache.png">
  325. <span><strong>千层饼</strong><br/>多层嵌套环形图</span></a>
  326. </li><!--/li-->
  327. <li data-thumb="asset/img/example/cache.png">
  328. <a href="example/pie.html"><img src="asset/img/example/cache.png">
  329. <span><strong>饼图</strong><br/>多级控制,个性化填充、标签文本、视觉引导线样式等</span></a>
  330. </li><!--/li-->
  331. </ul>
  332. </div>
  333. </div>
  334. </div>
  335. <div>
  336. <h3>雷达图<a name="radar"> </a></h3>
  337. <div class="section">
  338. <div class="thumb4">
  339. <ul class="slides">
  340. <li data-thumb="asset/img/example/cache.png">
  341. <a href="example/radar1.html"><img src="asset/img/example/cache.png">
  342. <span><strong>标准雷达图</strong><br/>极坐标设置</span></a>
  343. </li><!--/li-->
  344. <li data-thumb="asset/img/example/cache.png">
  345. <a href="example/radar2.html"><img src="asset/img/example/cache.png">
  346. <span><strong>标准填充雷达图</strong><br/>极坐标设置,填充样式</span></a>
  347. </li><!--/li-->
  348. <li data-thumb="asset/img/example/cache.png">
  349. <a href="example/radar3.html"><img src="asset/img/example/cache.png">
  350. <span><strong>多雷达图</strong><br/>多个极坐标</span></a>
  351. </li><!--/li-->
  352. <li data-thumb="asset/img/example/cache.png">
  353. <a href="example/wormhole.html"><img src="asset/img/example/cache.png">
  354. <span><strong>虫洞</strong><br/>多层嵌套雷达图</span></a>
  355. </li><!--/li-->
  356. <li data-thumb="asset/img/example/cache.png">
  357. <a href="example/radar.html"><img src="asset/img/example/cache.png">
  358. <span><strong>雷达图</strong><br/>多级控制,个性化线条,拐点,填充样式</span></a>
  359. </li><!--/li-->
  360. </ul>
  361. </div>
  362. </div>
  363. </div>
  364. <div>
  365. <h3>和弦图<a name="chord"> </a></h3>
  366. <div class="section">
  367. <div class="thumb3">
  368. <ul class="slides">
  369. <li data-thumb="asset/img/example/cache.png">
  370. <a href="example/chord1.html"><img src="asset/img/example/cache.png">
  371. <span><strong>标准和弦图</strong><br/>数据格式,排序</span></a>
  372. </li><!--/li-->
  373. <li data-thumb="asset/img/example/cache.png">
  374. <a href="example/chord2.html"><img src="asset/img/example/cache.png">
  375. <span><strong>多系列和弦图</strong><br/>多维图例选择</span></a>
  376. </li><!--/li-->
  377. <li data-thumb="asset/img/example/cache.png">
  378. <a href="example/chord3.html"><img src="asset/img/example/cache.png">
  379. <span><strong>标准和弦图</strong><br/>数据格式,排序</span></a>
  380. </li><!--/li-->
  381. <li data-thumb="asset/img/example/cache.png">
  382. <a href="example/chord4.html"><img src="asset/img/example/cache.png">
  383. <span><strong>非缎带和弦图</strong><br/>数据格式,排序</span></a>
  384. </li><!--/li-->
  385. <li data-thumb="asset/img/example/cache.png">
  386. <a href="example/webkit-dep2.html"><img src="asset/img/example/cache.png">
  387. <span><strong>复杂关系网络</strong><br/>Webkit内核依赖</span></a>
  388. </li><!--/li-->
  389. <li data-thumb="asset/img/example/cache.png">
  390. <a href="example/chord.html"><img src="asset/img/example/cache.png">
  391. <span><strong>和弦图</strong><br/>多级控制,个性化填充、标签文本、线条样式等</span></a>
  392. </li><!--/li-->
  393. </ul>
  394. </div>
  395. </div>
  396. </div>
  397. <div>
  398. <h3>力导向布局图<a name="force"> </a></h3>
  399. <div class="section">
  400. <div class="thumb3">
  401. <ul class="slides">
  402. <li data-thumb="asset/img/example/cache.png">
  403. <a href="example/force1.html"><img src="asset/img/example/cache.png">
  404. <span><strong>简单关系网络</strong><br/>数据格式</span></a>
  405. </li><!--/li-->
  406. <li data-thumb="asset/img/example/cache.png">
  407. <a href="example/force2.html"><img src="asset/img/example/cache.png">
  408. <span><strong>树状关系网络</strong><br/>数据格式</span></a>
  409. </li><!--/li-->
  410. <li data-thumb="asset/img/example/cache.png">
  411. <a href="example/force4.html"><img src="asset/img/example/cache.png">
  412. <span><strong>树状关系网络</strong><br/>数据格式</span></a>
  413. </li><!--/li-->
  414. <li data-thumb="asset/img/example/cache.png">
  415. <a href="example/webkit-dep.html"><img src="asset/img/example/cache.png">
  416. <span><strong>复杂关系网络</strong><br/>Webkit内核依赖</span></a>
  417. </li><!--/li-->
  418. <li data-thumb="asset/img/example/cache.png">
  419. <a href="example/force.html"><img src="asset/img/example/cache.png">
  420. <span><strong>力导向布局</strong><br/>个性化,节点样式,线条样式</span></a>
  421. </li><!--/li-->
  422. </ul>
  423. </div>
  424. </div>
  425. </div>
  426. <div>
  427. <h3>地图<a name="map"> </a></h3>
  428. <div class="section">
  429. <div class="thumb4">
  430. <ul class="slides">
  431. <li data-thumb="asset/img/example/cache.png">
  432. <a href="example/map1.html"><img src="asset/img/example/cache.png">
  433. <span><strong>标准地图</strong><br/>中国地图,多系列,值域漫游</span></a>
  434. </li><!--/li-->
  435. <li data-thumb="asset/img/example/cache.png">
  436. <a href="example/map2.html"><img src="asset/img/example/cache.png">
  437. <span><strong>标准地图</strong><br/>中国地图,地域选择器</span></a>
  438. </li><!--/li-->
  439. <li data-thumb="asset/img/example/cache.png">
  440. <a href="example/map3.html"><img src="asset/img/example/cache.png">
  441. <span><strong>标准地图</strong><br/>事件响应,切换,全国34个省市自治区</span></a>
  442. </li><!--/li-->
  443. <li data-thumb="asset/img/example/cache.png">
  444. <a href="example/map4.html"><img src="asset/img/example/cache.png">
  445. <span><strong>标准地图</strong><br/>世界地图,值域漫游</span></a>
  446. </li><!--/li-->
  447. <li data-thumb="asset/img/example/cache.png">
  448. <a href="example/map5.html"><img src="asset/img/example/cache.png">
  449. <span><strong>标准地图</strong><br/>世界地图,地域选择器</span></a>
  450. </li><!--/li-->
  451. <li data-thumb="asset/img/example/cache.png">
  452. <a href="example/mix5.html"><img src="asset/img/example/cache.png">
  453. <span><strong>多地图</strong><br/>数据驱动,省市级下钻</span></a>
  454. </li><!--/li-->
  455. <li data-thumb="asset/img/example/cache.png">
  456. <a href="example/map20.html"><img src="asset/img/example/cache.png">
  457. <span><strong>地图扩展</strong><br/>标准geoJson格式扩展地图-全国主要城市</span></a>
  458. </li><!--/li-->
  459. <li data-thumb="asset/img/example/cache.png">
  460. <a href="example/map6.html"><img src="asset/img/example/cache.png">
  461. <span><strong>地图扩展</strong><br/>标准geoJson格式扩展地图类型-香港</span></a>
  462. </li><!--/li-->
  463. <li data-thumb="asset/img/example/cache.png">
  464. <a href="example/map7.html"><img src="asset/img/example/cache.png">
  465. <span><strong>地图扩展</strong><br/>标准geoJson格式扩展地图类型-美国</span></a>
  466. </li><!--/li-->
  467. <li data-thumb="asset/img/example/cache.png">
  468. <a href="example/map13.html"><img src="asset/img/example/cache.png">
  469. <span><strong>地图扩展</strong><br/>标准geoJson格式扩展地图类型-大洲</span></a>
  470. </li><!--/li-->
  471. <li data-thumb="asset/img/example/bmap1.png">
  472. <a href="../extension/BMap/doc/BMap.html"><img src="asset/img/example/bmap1.png" >
  473. <span><strong>ECharts扩展</strong><br/>百度地图扩展BMap</span></a>
  474. </li><!--/li-->
  475. <li data-thumb="asset/img/example/bmap2.png">
  476. <a href="../extension/BMap/doc/example.html"><img src="asset/img/example/bmap2.png" >
  477. <span><strong>ECharts扩展</strong><br/>百度地图扩展BMap</span></a>
  478. </li><!--/li-->
  479. <li data-thumb="asset/img/example/cache.png">
  480. <a href="example/map10.html"><img src="asset/img/example/cache.png">
  481. <span><strong>地图标线</strong><br/>markLine<br/>多系列</span></a>
  482. </li><!--/li-->
  483. <li data-thumb="asset/img/example/cache.png">
  484. <a href="example/map9.html"><img src="asset/img/example/cache.png">
  485. <span><strong>地图标注</strong><br/>markPoint<br/>值域漫游</span></a>
  486. </li><!--/li-->
  487. <li data-thumb="asset/img/example/cache.png">
  488. <a href="example/map8.html"><img src="asset/img/example/cache.png">
  489. <span><strong>子区域模式</strong><br/>子区域模式使用,值域漫游</span></a>
  490. </li><!--/li-->
  491. <li data-thumb="asset/img/example/cache.png">
  492. <a href="example/map11.html"><img src="asset/img/example/cache.png">
  493. <span><strong>地图标线</strong><br/>markLine<br/>炫光特效,模拟百度迁徙</span></a>
  494. </li><!--/li-->
  495. <li data-thumb="asset/img/example/cache.png">
  496. <a href="example/map21.html"><img src="asset/img/example/cache.png">
  497. <span><strong>地图标线</strong><br/>markLine<br/>炫光特效,不等弧度</span></a>
  498. </li><!--/li-->
  499. <li data-thumb="asset/img/example/cache.png">
  500. <a href="example/map12.html"><img src="asset/img/example/cache.png">
  501. <span><strong>地图标线</strong><br/>markLine<br/>炫光特效,中国铁路干线</span></a>
  502. </li><!--/li-->
  503. <li data-thumb="asset/img/example/cache.png">
  504. <a href="example/map22.html"><img src="asset/img/example/cache.png">
  505. <span><strong>地图标线</strong><br/>markLine<br/>大规模标线 + 边捆绑</span></a>
  506. </li><!--/li-->
  507. <li data-thumb="asset/img/example/cache.png">
  508. <a href="example/map15.html"><img src="asset/img/example/cache.png">
  509. <span><strong>地图标注</strong><br/>大规模炫光特效,百度人气</span></a>
  510. </li><!--/li-->
  511. <li data-thumb="asset/img/example/cache.png">
  512. <a href="example/map16.html"><img src="asset/img/example/cache.png">
  513. <span><strong>地图扩展</strong><br/>SVG扩展-人体组成</span></a>
  514. </li><!--/li-->
  515. <li data-thumb="asset/img/example/cache.png">
  516. <a href="example/map17.html"><img src="asset/img/example/cache.png">
  517. <span><strong>地图扩展</strong><br/>SVG扩展-足球场</span></a>
  518. </li><!--/li-->
  519. <li data-thumb="asset/img/example/cache.png">
  520. <a href="example/map18.html"><img src="asset/img/example/cache.png">
  521. <span><strong>地图扩展</strong><br/>SVG扩展-室内空间数据分析</span></a>
  522. </li><!--/li-->
  523. <li data-thumb="asset/img/example/cache.png">
  524. <a href="example/map14.html"><img src="asset/img/example/cache.png">
  525. <span><strong>搭配时间轴</strong><br/>时空维度数据展现</span></a>
  526. </li><!--/li-->
  527. <li data-thumb="asset/img/example/cache.png">
  528. <a href="example/map19.html"><img src="asset/img/example/cache.png">
  529. <span><strong>搭配时间轴,地图扩展</strong><br/>2014世界杯进球还原</span></a>
  530. </li><!--/li-->
  531. <li data-thumb="asset/img/example/cache.png">
  532. <a href="example/map.html"><img src="asset/img/example/cache.png">
  533. <span><strong>地图</strong><br/>多级控制,个性化填充、标签文本、线条样式等</span></a>
  534. </li><!--/li-->
  535. </ul>
  536. </div>
  537. </div>
  538. </div>
  539. <div>
  540. <h3>仪表盘<a name="gauge"> </a></h3>
  541. <div class="section">
  542. <div class="thumb4">
  543. <ul class="slides">
  544. <li data-thumb="asset/img/example/gauge1.png">
  545. <a href="example/gauge1.html"><img src="asset/img/example/gauge1.png">
  546. <span><strong>标准仪表盘</strong><br/>个性化</span></a>
  547. </li><!--/li-->
  548. <li data-thumb="asset/img/example/cache.png">
  549. <a href="example/gauge2.html"><img src="asset/img/example/cache.png">
  550. <span><strong>标准仪表盘</strong><br/>个性化</span></a>
  551. </li><!--/li-->
  552. <li data-thumb="asset/img/example/cache.png">
  553. <a href="example/gauge3.html"><img src="asset/img/example/cache.png">
  554. <span><strong>标准仪表盘</strong><br/>个性化</span></a>
  555. </li><!--/li-->
  556. <li data-thumb="asset/img/example/cache.png">
  557. <a href="example/gauge4.html"><img src="asset/img/example/cache.png">
  558. <span><strong>多仪表盘</strong><br/>个性化</span></a>
  559. </li><!--/li-->
  560. <li data-thumb="asset/img/example/cache.png">
  561. <a href="example/gauge5.html"><img src="asset/img/example/cache.png">
  562. <span><strong>多仪表盘</strong><br/>个性化</span></a>
  563. </li><!--/li-->
  564. <li data-thumb="asset/img/example/cache.png">
  565. <a href="example/gauge.html"><img src="asset/img/example/cache.png">
  566. <span><strong>标准仪表盘</strong><br/>个性化</span></a>
  567. </li><!--/li-->
  568. </ul>
  569. </div>
  570. </div>
  571. </div>
  572. <div>
  573. <h3>漏斗图<a name="funnel"> </a></h3>
  574. <div class="section">
  575. <div class="thumb4">
  576. <ul class="slides">
  577. <li data-thumb="asset/img/example/funnel1.png">
  578. <a href="example/funnel1.html"><img src="asset/img/example/funnel1.png">
  579. <span><strong>标准漏斗图</strong><br/>个性化</span></a>
  580. </li><!--/li-->
  581. <li data-thumb="asset/img/example/cache.png">
  582. <a href="example/funnel2.html"><img src="asset/img/example/cache.png">
  583. <span><strong>多漏斗图</strong><br/>个性化</span></a>
  584. </li><!--/li-->
  585. <li data-thumb="asset/img/example/cache.png">
  586. <a href="example/funnel3.html"><img src="asset/img/example/cache.png">
  587. <span><strong>多漏斗图</strong><br/>个性化,排序</span></a>
  588. </li><!--/li-->
  589. <li data-thumb="asset/img/example/cache.png">
  590. <a href="example/funnel4.html"><img src="asset/img/example/cache.png">
  591. <span><strong>多漏斗图</strong><br/>个性化,水平对齐样式</span></a>
  592. </li><!--/li-->
  593. <li data-thumb="asset/img/example/cache.png">
  594. <a href="example/funnel.html"><img src="asset/img/example/cache.png">
  595. <span><strong>标准漏斗图</strong><br/>个性化</span></a>
  596. </li><!--/li-->
  597. </ul>
  598. </div>
  599. </div>
  600. </div>
  601. <div>
  602. <h3>事件河流图<a name="eventRiver"> </a></h3>
  603. <div class="section">
  604. <div class="thumb4">
  605. <ul class="slides">
  606. <li data-thumb="asset/img/example/eventRiver1.png">
  607. <a href="example/eventRiver1.html"><img src="asset/img/example/eventRiver1.png">
  608. <span><strong>事件河流图</strong><br/>个性化</span></a>
  609. </li><!--/li-->
  610. <li data-thumb="asset/img/example/cache.png">
  611. <a href="example/eventRiver2.html"><img src="asset/img/example/cache.png">
  612. <span><strong>事件河流图</strong><br/>个性化</span></a>
  613. </li><!--/li-->
  614. </ul>
  615. </div>
  616. </div>
  617. </div>
  618. <div>
  619. <h3>混搭<a name="mix"> </a></h3>
  620. <div class="section">
  621. <div class="thumb4">
  622. <ul class="slides">
  623. <li data-thumb="asset/img/example/cache.png">
  624. <a href="example/mix1.html"><img src="asset/img/example/cache.png">
  625. <span><strong>折柱混搭</strong><br/>双数值轴</span></a>
  626. </li><!--/li-->
  627. <li data-thumb="asset/img/example/cache.png">
  628. <a href="example/mix6.html"><img src="asset/img/example/cache.png">
  629. <span><strong>折柱混搭</strong><br/>数据驱动,模拟范围图</span></a>
  630. </li><!--/li-->
  631. <li data-thumb="asset/img/example/cache.png">
  632. <a href="example/mix2.html"><img src="asset/img/example/cache.png">
  633. <span><strong>柱状饼混搭</strong><br/>数据驱动,饼图中心定义</span></a>
  634. </li><!--/li-->
  635. <li data-thumb="asset/img/example/cache.png">
  636. <a href="example/mix4.html"><img src="asset/img/example/cache.png">
  637. <span><strong>折线散点混搭</strong><br/>数值轴与类目轴坐标同步</span></a>
  638. </li><!--/li-->
  639. <li data-thumb="asset/img/example/cache.png">
  640. <a href="example/mix7.html"><img src="asset/img/example/cache.png">
  641. <span><strong>散饼图</strong><br/>用饼图代替气泡图中的散点,多系列</span></a>
  642. </li><!--/li-->
  643. <li data-thumb="asset/img/example/cache.png">
  644. <a href="example/mix10.html"><img src="asset/img/example/cache.png">
  645. <span><strong>折线K线混搭</strong><br/>双数值轴,多系列</span></a>
  646. </li><!--/li-->
  647. <li data-thumb="asset/img/example/cache.png">
  648. <a href="example/mix12.html"><img src="asset/img/example/cache.png">
  649. <span><strong>折线饼图混搭</strong><br/>趋势,百分比高效混合模式</span></a>
  650. </li><!--/li-->
  651. <li data-thumb="asset/img/example/cache.png">
  652. <a href="example/mix3.html"><img src="asset/img/example/cache.png">
  653. <span><strong>地图饼图混搭</strong><br/>地图作为地域选择器</span></a>
  654. </li><!--/li-->
  655. <li data-thumb="asset/img/example/cache.png">
  656. <a href="example/mix9.html"><img src="asset/img/example/cache.png">
  657. <span><strong>多图联动</strong><br/>简单connect,图例,工具箱共享,多系列</span></a>
  658. </li><!--/li-->
  659. <li data-thumb="asset/img/example/cache.png">
  660. <a href="example/mix8.html"><img src="asset/img/example/cache.png">
  661. <span><strong>多图联动</strong><br/>直角系多图联动,多系列</span></a>
  662. </li><!--/li-->
  663. <li data-thumb="asset/img/example/cache.png">
  664. <a href="example/mix11.html"><img src="asset/img/example/cache.png">
  665. <span><strong>商业BI类图表</strong><br/>仪表盘、嵌套漏斗图</span></a>
  666. </li><!--/li-->
  667. </ul>
  668. </div>
  669. </div>
  670. </div>
  671. <div>
  672. <h3>组件<a name="component"> </a></h3>
  673. <div class="section">
  674. <div class="thumb3">
  675. <ul class="slides">
  676. <li data-thumb="asset/img/example/cache.png">
  677. <a href="example/axis.html"><img src="asset/img/example/cache.png">
  678. <span><strong>坐标系</strong><br/>多级控制,个性化标签文字、间隔线样式等</span></a>
  679. </li><!--/li-->
  680. <li data-thumb="asset/img/doc/legend.png">
  681. <a href="example/legend.html"><img src="asset/img/doc/legend.png">
  682. <span><strong>图例</strong><br/>个性化</span></a>
  683. </li><!--/li-->
  684. <li data-thumb="asset/img/example/cache.png">
  685. <a href="example/dataZoom1.html"><img src="asset/img/example/cache.png">
  686. <span><strong>数据区域缩放</strong><br/>基本使用</span></a>
  687. </li><!--/li-->
  688. <li data-thumb="asset/img/example/cache.png">
  689. <a href="example/dataZoom.html"><img src="asset/img/example/cache.png">
  690. <span><strong>数据区域控件</strong><br/>个性化布局,数据阴影、背景、拖拽手柄样式等</span></a>
  691. </li><!--/li-->
  692. <li data-thumb="asset/img/example/cache.png">
  693. <a href="example/tooltip.html"><img src="asset/img/example/cache.png">
  694. <span><strong>提示框</strong><br/>多级控制,个性化文字样式、边框、背景、格式器等</span></a>
  695. </li><!--/li-->
  696. <li data-thumb="asset/img/example/cache.png">
  697. <a href="example/dataRange.html"><img src="asset/img/example/cache.png">
  698. <span><strong>值域控件</strong><br/>个性化布局,背景、拖拽手柄样式等</span></a>
  699. </li><!--/li-->
  700. </ul>
  701. </div>
  702. </div>
  703. </div>
  704. <div>
  705. <h3>其他<a name="other"> </a></h3>
  706. <div class="section">
  707. <div class="thumb4">
  708. <ul class="slides">
  709. <li data-thumb="asset/img/example/cache.png">
  710. <a href="example/dynamicLineBar.html"><img src="asset/img/example/cache.png">
  711. <span><strong>动态数据</strong><br/>折线图、柱状图</span></a>
  712. </li><!--/li-->
  713. <li data-thumb="asset/img/example/cache.png">
  714. <a href="example/dynamicScatterK.html"><img src="asset/img/example/cache.png">
  715. <span><strong>动态数据</strong><br/>散点图、K线图</span></a>
  716. </li><!--/li-->
  717. <li data-thumb="asset/img/example/cache.png">
  718. <a href="example/dynamicPieRadar.html"><img src="asset/img/example/cache.png">
  719. <span><strong>动态数据</strong><br/>饼图、雷达图</span></a>
  720. </li><!--/li-->
  721. <li data-thumb="asset/img/example/cache.png">
  722. <a href="example/loading.html"><img src="asset/img/example/cache.png">
  723. <span><strong>过渡动画</strong><br/>加载中,Loading</span></a>
  724. </li><!--/li-->
  725. <li data-thumb="asset/img/example/import.png">
  726. <a href="example/www/index.html"><img src="asset/img/example/import.png">
  727. <span><strong>单文件引入</strong><br/>模块化单文件echarts.js</span></a>
  728. </li><!--/li-->
  729. <li data-thumb="asset/img/example/import.png">
  730. <a href="example/www2/index.html"><img src="asset/img/example/import.png">
  731. <span><strong>单文件引入</strong><br/>标签式(非模块化)单文件echarts-all.js</span></a>
  732. </li><!--/li-->
  733. <li data-thumb="asset/img/example/cache.png">
  734. <a href="example/event.html"><img src="asset/img/example/cache.png">
  735. <span><strong>事件交互</strong><br/>可捕获的用户交互和数据变化事件,实现图表与外界的联动</span></a>
  736. </li><!--/li-->
  737. </ul>
  738. </div>
  739. </div>
  740. </div>
  741. <div>
  742. <h3>主题<a name="theme"> </a></h3>
  743. <p>主题预览 <a href='example/theme.html' target="_blank">ECharts Theme »</a>,主题定制调试工具 <a href='example/themeDesigner.html' target="_blank">ECharts Theme Designer »</a></p>
  744. <p><small>ps:别太依赖代码编辑区,没做本地缓存,页面刷新就没了,建议使用一个本地编辑器编辑主题,只用代码区作为主题定制调试工具。主题写好试试顶部的SaveAsImage(IE8-不支持),会把所有图表合并到一张图中,这是默认样式,期待与我们联系,show出你的主题,让你的设计成为ECharts内置甚至默认主题随时有可能,我们将为您献上一份小礼品同时你的名字将被永留在贡献者名单中。</small></p>
  745. <a href="example/theme.html" target="_blank"><img src="asset/img/example/theme.png" style="max-width:100%"></a>
  746. <div>
  747. </div>
  748. <h3>专题<a name="topic"></a></h3>
  749. <p><small>专题页没做低版本IE兼容性处理,请用IE9+、chrome、safari、firefox或opear等现代浏览器。</small></p>
  750. <ul>
  751. <li><a href="example/topic/aqi-china/index.html" target="_blank">中国主要城市空气质量实况 </a> by <a href="http://weibo.com/wfsr" target="_blank">大佛</a>(百度) · <a href="http://weibo.com/kenerlinfeng" target="_blank">林峰</a>(百度)</li>
  752. <li><a href="example/topic/10-me-china/index.html" target="_blank">中国经济十年时空漫游(2002-2011)</a> by 于博(新华社) · 吴楚茵(南方都市报) · <a href="http://weibo.com/kenerlinfeng" target="_blank">林峰</a>(百度)</li>
  753. <li><a href="example/topic/24-population-china/index.html" target="_blank">中国人口流动大潮(1987-2011)</a> by 孟立昕(腾讯)· 王飞宇(证券时报) · 颜冬(视觉中国) · <a href="http://weibo.com/kenerlinfeng" target="_blank">林峰</a>(百度)</li>
  754. <li><a href="http://hijiangtao.github.io/variety-show-hot-spot-vis/" target="_blank">融合社交网络数据挖掘的综艺节目可视化评价系统 </a> by <a href="http://hijiangtao.github.io/variety-show-hot-spot-vis/about/" target="_blank">Data.BIT团队</a>(北京理工大学软件学院)</li>
  755. <li><a href="http://echarts.baidu.com/doc/example/topic/sino-japanese-war-1895/index.html" target="_blank">甲午之殇:纪念甲午战争120周年 </a> by <a href="http://weibo.com/u/3798120772" target="_blank">付建海</a>(CSDN开源夏令营)</li>
  756. <li><a href="http://www.thinkgis.cn/public/sina/" target="_blank">2014新浪微博签到数据信息图</a> by <a href="http://www.weibo.com/u/1707284737" target="_blank">ThinkingGIS </a></li>
  757. </ul>
  758. </div>
  759. </div>
  760. </div>
  761. </div> <!-- /container -->
  762. <footer id="footer"></footer>
  763. <!-- Le javascript
  764. ================================================== -->
  765. <!-- Placed at the end of the document so the pages load faster -->
  766. <script src="./asset/js/jquery.min.js"></script>
  767. <script type="text/javascript" src="./asset/js/echartsHome.js"></script>
  768. <script src="./asset/js/bootstrap.min.js"></script>
  769. <script type="text/javascript">
  770. $(window).load(function (){
  771. var section = $('[class=section]');
  772. function loadImage(i) {
  773. setTimeout(function (){
  774. var list = $('div>ul>li>a', section[i]);
  775. var nav = $('ol>li>img', section[i]);
  776. var href;
  777. var src;
  778. if (list.length > 0) {
  779. for (var j = 0, k = list.length; j < k; j++) {
  780. list[j].target = '_blank';
  781. href = list[j].href.slice(list[j].href.lastIndexOf('/') + 1, -5);
  782. src = list[j].firstChild.src.replace(
  783. 'cache', href
  784. );
  785. list[j].firstChild.alt = 'ECharts ' + href;
  786. list[j].firstChild.src = src;
  787. }
  788. }
  789. }, i * 100);
  790. }
  791. for (var i = 0, l = section.length; i < l; i++) {
  792. loadImage(i);
  793. }
  794. var chartsTypeNav = document.getElementById('chartsTypeNav');
  795. function _scroll() {
  796. var navHeight = chartsTypeNav.offsetHeight;
  797. var viewHeight = document.documentElement.clientHeight;
  798. var scrollHeight = document.documentElement.scrollTop
  799. || document.body.scrollTop;
  800. var offsetHeight = document.body.offsetHeight;
  801. var footHole = offsetHeight - scrollHeight - viewHeight;
  802. var maxHeight = viewHeight - (230 - footHole) - 80;
  803. if (footHole < 320 && maxHeight < navHeight) {
  804. // 见footer
  805. //chartsTypeNav.style.marginTop = footHole - 150 + 'px';
  806. chartsTypeNav.style.marginTop = maxHeight - navHeight + 'px';
  807. }
  808. else {
  809. // 未见footer
  810. chartsTypeNav.style.marginTop = 'auto';
  811. }
  812. var len = offsetList.length;
  813. if (scrollHeight > offsetList[len - 3].offsetTop) {
  814. navDom[len - 2].style.backgroundColor = '#3E98C5';
  815. $(navDom[len - 2]).children('a')[0].style.color = '#fff';
  816. }
  817. else {
  818. for (var i = 0; i < len - 1; i++) {
  819. if (Math.abs(scrollHeight - offsetList[i].offsetTop) < 280 && navDom[i]) {
  820. navDom[i].style.backgroundColor = '#3E98C5';
  821. $(navDom[i]).children('a')[0].style.color = '#fff';
  822. }
  823. else {
  824. navDom[i].style.backgroundColor = 'transparent';
  825. $(navDom[i]).children('a')[0].style.color = '#3E98C5';
  826. }
  827. }
  828. }
  829. }
  830. var offsetList = [];
  831. var navDom = $('#chartsTypeNav>ul>li');
  832. function _resize() {
  833. offsetList = [];
  834. $('h3').each(function(idx, dom){
  835. offsetList[idx] = {
  836. name : dom.childNodes[1].name,
  837. offsetTop : dom.childNodes[1].offsetTop
  838. };
  839. });
  840. offsetList.push({
  841. name : 'topic',
  842. offsetTop : 100000
  843. })
  844. setTimeout(_scroll, 500);
  845. }
  846. function scroll2Pos (idx) {
  847. return function() {
  848. $("body,html").animate(
  849. {scrollTop: offsetList[idx].offsetTop + 30},
  850. 500
  851. );
  852. return false;
  853. }
  854. }
  855. $('#chartsTypeNav>ul>li>a').each(function(idx, dom){
  856. $(dom).on('click', scroll2Pos(idx));
  857. })
  858. $(window).on('scroll', _scroll);
  859. $(window).on('resize', _resize);
  860. _resize();
  861. });
  862. </script>
  863. </body>
  864. </html>