tooltip-axisPointer.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <script src="lib/esl.js"></script>
  5. <script src="lib/config.js"></script>
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <link rel="stylesheet" href="lib/reset.css" />
  8. <script src="lib/testHelper.js"></script>
  9. <script src="tooltipTestHelper.js"></script>
  10. </head>
  11. <body>
  12. <style>
  13. h1 {
  14. line-height: 60px;
  15. height: 60px;
  16. background: #a60;
  17. text-align: center;
  18. font-weight: bold;
  19. color: #eee;
  20. font-size: 14px;
  21. }
  22. .chart {
  23. height: 350px;
  24. }
  25. </style>
  26. <h1>time axis default | data zoom | animation auto: zoom in has animation, zoom out no animation</h1>
  27. <div class="chart" id="time-animation"></div>
  28. <h1>category axis default | data zoom | animation auto: zoom in has animation, zoom out no animation</h1>
  29. <div class="chart" id="category-animation"></div>
  30. <h1>time axis cross | x snap | label show | tooltip show</h1>
  31. <div class="chart" id="time-cross"></div>
  32. <h1>axis label too long | x axis label rotate | label should not overflow ec container</h1>
  33. <div class="chart" id="label-rotate"></div>
  34. <h1>two value axes | snap | grid.tooltip setting | snap has animation </h1>
  35. <div class="chart" id="two-value-axes"></div>
  36. <h1>label style and formatter</h1>
  37. <div class="chart" id="label-style"></div>
  38. <h1>dual yAxes | label color auto : the same as axisline</h1>
  39. <div class="chart" id="dual-yAxes"></div>
  40. <h1>dual xAxes | label color auto : the same as axisline</h1>
  41. <div class="chart" id="dual-xAxes"></div>
  42. <h1>y is category</h1>
  43. <div class="chart" id="y-is-category"></div>
  44. <h1>value axis as base | y axis should not trigger tooltip | tooltip.trigger: 'none' so item tooltip will not be triggered</h1>
  45. <div class="chart" id="value-axis-as-base"></div>
  46. <h1>polar category</h1>
  47. <div class="chart" id="polar-category"></div>
  48. <h1>multiple points with the same axis value | when not snap tooltip should be correct</h1>
  49. <div class="chart" id="same-value"></div>
  50. <h1>no tooltip</h1>
  51. <div class="chart" id="no-tooltip"></div>
  52. <h1>axisPointer.type: 'none', but label.show: true</h1>
  53. <div class="chart" id="none"></div>
  54. <script>
  55. require([
  56. 'echarts'
  57. // 'echarts/chart/scatter',
  58. // 'echarts/chart/line',
  59. // 'echarts/component/legend',
  60. // 'echarts/component/grid',
  61. // 'echarts/component/tooltip',
  62. // 'echarts/component/dataZoom',
  63. // 'zrender/vml/vml'
  64. ], function (echarts) {
  65. var option = {
  66. tooltip: {
  67. trigger: 'axis'
  68. },
  69. dataZoom: [{
  70. type: 'inside'
  71. }, {
  72. type: 'slider'
  73. }]
  74. };
  75. var baseTop = 90;
  76. var height = 250;
  77. var gap = 30;
  78. makeTimeGrid(option, {
  79. grid: {left: 100, top: baseTop, height: height}
  80. });
  81. baseTop += height + gap;
  82. createChart('time-animation', echarts, option, baseTop + 40);
  83. })
  84. </script>
  85. <script>
  86. require([
  87. 'echarts'
  88. // 'echarts/chart/scatter',
  89. // 'echarts/chart/line',
  90. // 'echarts/chart/bar',
  91. // 'echarts/component/legend',
  92. // 'echarts/component/grid',
  93. // 'echarts/component/tooltip',
  94. // 'echarts/component/dataZoom',
  95. // 'zrender/vml/vml'
  96. ], function (echarts) {
  97. var option = {
  98. tooltip: {
  99. trigger: 'axis',
  100. axisPointer: {
  101. type: 'shadow'
  102. }
  103. },
  104. dataZoom: [{
  105. type: 'inside',
  106. start: 40,
  107. end: 60
  108. }, {
  109. type: 'slider',
  110. start: 40,
  111. end: 60
  112. }]
  113. };
  114. var baseTop = 90;
  115. var height = 250;
  116. var gap = 30;
  117. makeCategoryGrid(option, {
  118. grid: {left: 100, top: baseTop, height: height},
  119. xAxis: {boundaryGap: true}
  120. }, false, 100, 'bar');
  121. baseTop += height + gap;
  122. createChart('category-animation', echarts, option, baseTop + 40);
  123. })
  124. </script>
  125. <script>
  126. require([
  127. 'echarts'
  128. // 'echarts/chart/scatter',
  129. // 'echarts/chart/line',
  130. // 'echarts/component/legend',
  131. // 'echarts/component/grid',
  132. // 'echarts/component/tooltip',
  133. // 'zrender/vml/vml'
  134. ], function (echarts) {
  135. var option = {
  136. tooltip: {
  137. trigger: 'axis',
  138. axisPointer: {type: 'cross'}
  139. }
  140. };
  141. var baseTop = 90;
  142. var height = 250;
  143. var gap = 50;
  144. makeTimeGrid(option, {
  145. grid: {left: 100, top: baseTop, height: height},
  146. yAxis: {
  147. axisTick: {
  148. inside: true
  149. },
  150. axisLabel: {
  151. inside: true
  152. }
  153. }
  154. });
  155. baseTop += height + gap;
  156. createChart('time-cross', echarts, option, baseTop + 100);
  157. })
  158. </script>
  159. <script>
  160. require([
  161. 'echarts'
  162. // 'echarts/chart/scatter',
  163. // 'echarts/chart/line',
  164. // 'echarts/component/legend',
  165. // 'echarts/component/grid',
  166. // 'echarts/component/tooltip',
  167. // 'zrender/vml/vml'
  168. ], function (echarts) {
  169. var option = {
  170. tooltip: {
  171. trigger: 'axis',
  172. axisPointer: {type: 'cross'}
  173. }
  174. };
  175. var baseTop = 90;
  176. makeCategoryGrid(option, {
  177. grid: {
  178. containLabel: true, left: 5, right: 10, top: baseTop, height: 140
  179. },
  180. xAxis: {
  181. axisLabel: {
  182. rotate: 30,
  183. formatter: function (value) {
  184. return echarts.format.truncateText(value, 50);
  185. }
  186. }
  187. }
  188. }, null, null, null, 'toolonglonglonglonglonglonglong');
  189. createChart('label-rotate', echarts, option, baseTop + 200);
  190. })
  191. </script>
  192. <script>
  193. require([
  194. 'echarts'
  195. // 'echarts/chart/scatter',
  196. // 'echarts/component/legend',
  197. // 'echarts/component/grid',
  198. // 'echarts/component/tooltip',
  199. // 'zrender/vml/vml'
  200. ], function (echarts) {
  201. var option = {
  202. tooltip: {
  203. trigger: 'none'
  204. }
  205. };
  206. var baseTop = 90;
  207. var height = 250;
  208. var gap = 50;
  209. makeValueGrid(option, {
  210. grid: {
  211. top: baseTop, height: height,
  212. tooltip: {
  213. trigger: 'axis',
  214. axisPointer: {
  215. type: 'cross'
  216. }
  217. }
  218. },
  219. yAxis: {name: 'tooltip.trigger: "axis"\nso base axis snap and animate by default'}
  220. }, true);
  221. baseTop += height + gap;
  222. makeValueGrid(option, {
  223. grid: {
  224. top: baseTop, height: height
  225. },
  226. xAxis: {
  227. axisPointer: {
  228. show: true,
  229. snap: true,
  230. triggerTooltip: true
  231. }
  232. },
  233. yAxis: {
  234. name: 'both axes snap\nand so animate by default',
  235. axisPointer: {
  236. show: true,
  237. snap: true,
  238. triggerTooltip: true
  239. }
  240. }
  241. }, true);
  242. baseTop += height + gap;
  243. var dom = document.getElementById('two-value-axes');
  244. if (dom) {
  245. dom.style.height = baseTop + 'px';
  246. var chart = echarts.init(dom);
  247. chart.setOption(option);
  248. }
  249. })
  250. </script>
  251. <script>
  252. require([
  253. 'echarts'
  254. // 'echarts/chart/line',
  255. // 'echarts/component/legend',
  256. // 'echarts/component/grid',
  257. // 'echarts/component/tooltip',
  258. // 'zrender/vml/vml'
  259. ], function (echarts) {
  260. var option = {
  261. axisPointer: {
  262. label: {
  263. backgroundColor: 'blue',
  264. borderColor: 'green',
  265. borderRadius: 5,
  266. borderWidth: 2,
  267. shadowBlur: 6,
  268. shadowOffsetX: 3,
  269. shadowOffsetY: 3,
  270. shadowColor: '#000'
  271. }
  272. }
  273. };
  274. var baseTop = 90;
  275. var height = 150;
  276. var gap = 50;
  277. makeCategoryGrid(option, {
  278. grid: {top: baseTop, height: height},
  279. xAxis: {
  280. axisPointer: {show: true}
  281. },
  282. yAxis: {name: 'global style: \nbg: "blue", border: "green", shadow, borderRadius'}
  283. });
  284. baseTop += height + gap;
  285. makeCategoryGrid(option, {
  286. grid: {top: baseTop, height: height},
  287. xAxis: {
  288. axisPointer: {
  289. show: true,
  290. label: {
  291. backgroundColor: 'red',
  292. borderWidth: 0
  293. }
  294. }
  295. },
  296. yAxis: {name: 'xAxis style: \nbg: "red", borderWidth: 0'}
  297. });
  298. baseTop += height + gap;
  299. makeCategoryGrid(option, {
  300. grid: {
  301. top: baseTop,
  302. height: height
  303. },
  304. xAxis: {
  305. position: 'top',
  306. axisPointer: {
  307. show: true,
  308. label: {
  309. show: true,
  310. formatter: '类别 {value} %'
  311. }
  312. }
  313. },
  314. yAxis: {name: 'axisLabel formatter string'}
  315. });
  316. baseTop += height + gap;
  317. makeCategoryGrid(option, {
  318. grid: {
  319. top: baseTop,
  320. height: height
  321. },
  322. xAxis: {
  323. axisPointer: {
  324. show: true,
  325. label: {
  326. show: true,
  327. formatter: function(params) {
  328. return 'x: ' + params.value + '\n'
  329. + echarts.util.map(params.seriesData, function (item) {
  330. return item.name + ': ' + item.value;
  331. }).join('\n')
  332. }
  333. }
  334. }
  335. },
  336. yAxis: {name: 'axisLabel formatter function'}
  337. });
  338. baseTop += height + gap + 20;
  339. var dom = document.getElementById('label-style');
  340. if (dom) {
  341. dom.style.height = baseTop + 'px';
  342. var chart = echarts.init(dom);
  343. chart.setOption(option);
  344. }
  345. })
  346. </script>
  347. <script>
  348. require([
  349. 'echarts'
  350. // 'echarts/chart/line',
  351. // 'echarts/component/legend',
  352. // 'echarts/component/grid',
  353. // 'echarts/component/tooltip',
  354. // 'zrender/vml/vml'
  355. ], function (echarts) {
  356. var option = {
  357. tooltip: {
  358. trigger: 'axis',
  359. axisPointer: {
  360. type: 'cross'
  361. }
  362. }
  363. };
  364. makeCategoryCartesian(option, {
  365. }, 0, 0);
  366. makeCategoryCartesian(option, {
  367. }, 0, 1, 17);
  368. makeCategoryCartesian(option, {
  369. yAxis: {
  370. offset: 50
  371. }
  372. }, 0, 2, 117);
  373. makeCategoryCartesian(option, {
  374. yAxis: {
  375. position: 'left',
  376. offset: 50
  377. }
  378. }, 0, 3, 1117);
  379. var dom = document.getElementById('dual-yAxes');
  380. if (dom) {
  381. var chart = echarts.init(dom);
  382. chart.setOption(option);
  383. }
  384. })
  385. </script>
  386. <script>
  387. require([
  388. 'echarts'
  389. // 'echarts/chart/line',
  390. // 'echarts/component/legend',
  391. // 'echarts/component/grid',
  392. // 'echarts/component/tooltip',
  393. // 'zrender/vml/vml'
  394. ], function (echarts) {
  395. var option = {
  396. tooltip: {
  397. trigger: 'axis',
  398. axisPointer: {
  399. type: 'cross'
  400. }
  401. }
  402. };
  403. makeCategoryCartesian(option, {
  404. xAxis: {
  405. axisPointer: {
  406. type: 'shadow'
  407. }
  408. }
  409. }, 0, 0);
  410. makeCategoryCartesian(option, {
  411. xAxis: {
  412. axisPointer: {
  413. type: 'shadow'
  414. }
  415. }
  416. }, 1, 0, 17, 'last');
  417. var dom = document.getElementById('dual-xAxes');
  418. if (dom) {
  419. var chart = echarts.init(dom);
  420. chart.setOption(option);
  421. }
  422. })
  423. </script>
  424. <script>
  425. require([
  426. 'echarts'
  427. // 'echarts/chart/line',
  428. // 'echarts/component/legend',
  429. // 'echarts/component/grid',
  430. // 'echarts/component/tooltip',
  431. // 'zrender/vml/vml'
  432. ], function (echarts) {
  433. var option = {
  434. tooltip: {
  435. trigger: 'axis'
  436. }
  437. };
  438. var baseTop = 90;
  439. var height = 150;
  440. var gap = 50;
  441. makeCategoryGrid(option, {
  442. grid: {top: baseTop, height: height},
  443. xAxis: {
  444. axisPointer: {
  445. show: true,
  446. triggerTooltip: false
  447. }
  448. }
  449. }, true);
  450. baseTop += height + gap;
  451. var dom = document.getElementById('y-is-category');
  452. if (dom) {
  453. var chart = echarts.init(dom);
  454. chart.setOption(option);
  455. }
  456. })
  457. </script>
  458. <script>
  459. require([
  460. 'echarts'
  461. // 'echarts/chart/line',
  462. // 'echarts/component/legend',
  463. // 'echarts/component/grid',
  464. // 'echarts/component/tooltip',
  465. // 'zrender/vml/vml'
  466. ], function (echarts) {
  467. var option = {
  468. tooltip: {
  469. trigger: 'none'
  470. }
  471. };
  472. var baseTop = 90;
  473. var height = 150;
  474. var gap = 50;
  475. makeCategoryGrid(option, {
  476. grid: {top: baseTop, height: height},
  477. xAxis: {
  478. axisPointer: {
  479. show: true
  480. }
  481. },
  482. yAxis: {
  483. axisPointer: {
  484. show: true,
  485. triggerTooltip: false,
  486. animation: true
  487. }
  488. }
  489. }, true);
  490. baseTop += height + gap;
  491. var dom = document.getElementById('value-axis-as-base');
  492. if (dom) {
  493. var chart = echarts.init(dom);
  494. chart.setOption(option);
  495. }
  496. })
  497. </script>
  498. <script>
  499. require([
  500. 'echarts'
  501. // 'echarts/chart/line',
  502. // 'echarts/component/legend',
  503. // 'echarts/component/polar',
  504. // 'echarts/component/tooltip',
  505. // 'zrender/vml/vml'
  506. ], function (echarts) {
  507. var option = {
  508. tooltip: {
  509. trigger: 'axis',
  510. axisPointer: {type: 'cross'}
  511. }
  512. };
  513. var baseTop = 90;
  514. var height = 250;
  515. var gap = 50;
  516. makeCategoryPolar(option, {
  517. polar: {
  518. center: ['25%', baseTop + height / 2],
  519. radius: 120
  520. }
  521. }, true);
  522. makeCategoryPolar(option, {
  523. polar: {
  524. center: ['75%', baseTop + height / 2],
  525. radius: 120
  526. },
  527. angleAxis: {
  528. axisPointer: {
  529. type: 'shadow'
  530. }
  531. }
  532. }, true);
  533. baseTop += height + gap;
  534. makeCategoryPolar(option, {
  535. polar: {
  536. center: ['25%', baseTop + height / 2],
  537. radius: 120
  538. }
  539. });
  540. makeCategoryPolar(option, {
  541. polar: {
  542. center: ['75%', baseTop + height / 2],
  543. radius: 120
  544. },
  545. radiusAxis: {
  546. axisPointer: {
  547. type: 'shadow'
  548. }
  549. }
  550. });
  551. baseTop += height + gap;
  552. createChart('polar-category', echarts, option, baseTop);
  553. })
  554. </script>
  555. <script>
  556. require([
  557. 'echarts'
  558. // 'echarts/chart/line',
  559. // 'echarts/component/legend',
  560. // 'echarts/component/grid',
  561. // 'echarts/component/tooltip',
  562. // 'zrender/vml/vml'
  563. ], function (echarts) {
  564. var option = {
  565. tooltip: {
  566. trigger: 'axis',
  567. axisPointer: {
  568. type: 'cross'
  569. }
  570. },
  571. xAxis: [{
  572. nameLocation: 'middle',
  573. nameGap: 30,
  574. name: 'snap: show display both value'
  575. }, {
  576. gridIndex: 1,
  577. nameLocation: 'middle',
  578. nameGap: 30,
  579. name: 'not snap: put axis on the middle of the two points, should display only one value.'
  580. }, {
  581. gridIndex: 2,
  582. nameLocation: 'middle',
  583. nameGap: 30,
  584. name: 'step line not snap: should tooltip correct.',
  585. axisPointer: {
  586. snap: false
  587. }
  588. }],
  589. yAxis: [{}, {gridIndex: 1}, {gridIndex: 2}],
  590. grid: [{
  591. top: 10,
  592. height: 100
  593. }, {
  594. top: 200,
  595. height: 100
  596. }, {
  597. top: 400,
  598. height: 200
  599. }],
  600. series: [{
  601. type: 'line',
  602. data: [[10, 10], [10, 20], [20, 20]]
  603. }, {
  604. type: 'line',
  605. xAxisIndex: 1,
  606. yAxisIndex: 1,
  607. data: [[10, 10], [30, 10]]
  608. }, {
  609. xAxisIndex: 2,
  610. yAxisIndex: 2,
  611. name:'Step Start',
  612. type:'line',
  613. step: 'start',
  614. data: echarts.util.map([120, 132, 101, 134, 90, 230, 210], function (value, index) {
  615. return [index * 100, value];
  616. })
  617. }, {
  618. xAxisIndex: 2,
  619. yAxisIndex: 2,
  620. name:'Step Middle',
  621. type:'line',
  622. step: 'middle',
  623. data: echarts.util.map([220, 282, 201, 234, 290, 430, 410], function (value, index) {
  624. return [index * 100, value];
  625. })
  626. }, {
  627. xAxisIndex: 2,
  628. yAxisIndex: 2,
  629. name:'Step End',
  630. type:'line',
  631. step: 'end',
  632. data: echarts.util.map([450, 432, 401, 454, 590, 530, 510], function (value, index) {
  633. return [index * 100, value];
  634. })
  635. }]
  636. };
  637. createChart('same-value', echarts, option, 700);
  638. })
  639. </script>
  640. <script>
  641. require([
  642. 'echarts'
  643. // 'echarts/chart/line',
  644. // 'echarts/component/legend',
  645. // 'echarts/component/grid',
  646. // 'echarts/component/tooltip',
  647. // 'zrender/vml/vml'
  648. ], function (echarts) {
  649. var option = {
  650. };
  651. var baseTop = 90;
  652. var height = 150;
  653. var gap = 50;
  654. makeCategoryGrid(option, {
  655. grid: {top: baseTop, height: height},
  656. yAxis: {name: 'axisPointer: not show by default'}
  657. });
  658. baseTop += height + gap;
  659. makeCategoryGrid(option, {
  660. grid: {top: baseTop, height: height},
  661. xAxis: {axisPointer: {show: true}},
  662. yAxis: {name: 'axisPointer: show if specified'}
  663. });
  664. baseTop += height + gap;
  665. var dom = document.getElementById('no-tooltip');
  666. if (dom) {
  667. dom.style.height = baseTop + 'px';
  668. var chart = echarts.init(dom);
  669. chart.setOption(option);
  670. }
  671. })
  672. </script>
  673. <script>
  674. require([
  675. 'echarts'
  676. // 'echarts/chart/line',
  677. // 'echarts/chart/themeRiver',
  678. // 'echarts/component/legend',
  679. // 'echarts/component/polar',
  680. // 'echarts/component/tooltip',
  681. // 'echarts/component/singleAxis',
  682. // 'zrender/vml/vml'
  683. ], function (echarts) {
  684. var option = {
  685. tooltip: {
  686. trigger: 'axis',
  687. axisPointer: {type: 'none', label: {show: true}}
  688. }
  689. };
  690. var baseTop = 90;
  691. var height = 250;
  692. var gap = 50;
  693. makeCategoryPolar(option, {
  694. polar: {
  695. center: ['25%', baseTop + height / 2],
  696. radius: 120
  697. }
  698. }, true);
  699. makeCategoryGrid(option, {
  700. grid: {left: '50%', top: baseTop, height: height},
  701. xAxis: {boundaryGap: true}
  702. }, false, 100, 'bar');
  703. baseTop += height + gap;
  704. option.singleAxis = {
  705. axisTick: {},
  706. axisLabel: {},
  707. top: baseTop,
  708. height: height,
  709. bottom: 10,
  710. type: 'time'
  711. };
  712. option.series.push({
  713. type: 'themeRiver',
  714. itemStyle: {
  715. emphasis: {
  716. shadowBlur: 20,
  717. shadowColor: 'rgba(0, 0, 0, 0.8)'
  718. }
  719. },
  720. data: [['2015/11/08',10,'DQ'],['2015/11/09',15,'DQ'],['2015/11/10',35,'DQ'],
  721. // ['2015/11/11',38,'DQ'],['2015/11/12',22,'DQ'],['2015/11/13',16,'DQ'],
  722. ['2015/11/14',7,'DQ'],['2015/11/15',2,'DQ'],['2015/11/16',17,'DQ'],
  723. ['2015/11/17',33,'DQ'],['2015/11/18',40,'DQ'],['2015/11/19',32,'DQ'],
  724. ['2015/11/20',26,'DQ'],['2015/11/21',35,'DQ'],['2015/11/22',40,'DQ'],
  725. ['2015/11/23',32,'DQ'],['2015/11/24',26,'DQ'],['2015/11/25',22,'DQ'],
  726. // ['2015/11/26',16,'DQ'],['2015/11/27',22,'DQ'],['2015/11/28',10,'DQ'],
  727. ['2015/11/08',35,'TY'],['2015/11/09',36,'TY'],['2015/11/10',37,'TY'],
  728. ['2015/11/11',22,'TY'],['2015/11/12',24,'TY'],['2015/11/13',26,'TY'],
  729. ['2015/11/14',34,'TY'],['2015/11/15',21,'TY'],['2015/11/16',18,'TY'],
  730. ['2015/11/17',45,'TY'],['2015/11/18',32,'TY'],['2015/11/19',35,'TY'],
  731. ['2015/11/20',30,'TY'],['2015/11/21',28,'TY'],['2015/11/22',27,'TY'],
  732. ['2015/11/23',26,'TY'],['2015/11/24',15,'TY'],['2015/11/25',30,'TY'],
  733. ['2015/11/26',35,'TY'],['2015/11/27',42,'TY'],['2015/11/28',42,'TY'],
  734. ['2015/11/08',21,'SS'],['2015/11/09',25,'SS'],['2015/11/10',27,'SS'],
  735. ['2015/11/11',23,'SS'],['2015/11/12',24,'SS'],['2015/11/13',21,'SS'],
  736. ['2015/11/14',35,'SS'],['2015/11/15',39,'SS'],['2015/11/16',40,'SS'],
  737. ['2015/11/17',36,'SS'],['2015/11/18',33,'SS'],['2015/11/19',43,'SS'],
  738. ['2015/11/20',40,'SS'],['2015/11/21',34,'SS'],['2015/11/22',28,'SS'],
  739. // ['2015/11/23',26,'SS'],['2015/11/24',37,'SS'],['2015/11/25',41,'SS'],
  740. // ['2015/11/26',46,'SS'],['2015/11/27',47,'SS'],['2015/11/28',41,'SS'],
  741. // ['2015/11/08',10,'QG'],['2015/11/09',15,'QG'],['2015/11/10',35,'QG'],
  742. // ['2015/11/11',38,'QG'],['2015/11/12',22,'QG'],['2015/11/13',16,'QG'],
  743. ['2015/11/14',7,'QG'],['2015/11/15',2,'QG'],['2015/11/16',17,'QG'],
  744. ['2015/11/17',33,'QG'],['2015/11/18',40,'QG'],['2015/11/19',32,'QG'],
  745. ['2015/11/20',26,'QG'],['2015/11/21',35,'QG'],['2015/11/22',40,'QG'],
  746. ['2015/11/23',32,'QG'],['2015/11/24',26,'QG'],['2015/11/25',22,'QG'],
  747. ['2015/11/26',16,'QG'],['2015/11/27',22,'QG'],['2015/11/28',10,'QG'],
  748. ['2015/11/08',10,'SY'],['2015/11/09',15,'SY'],['2015/11/10',35,'SY'],
  749. ['2015/11/11',38,'SY'],['2015/11/12',22,'SY'],['2015/11/13',16,'SY'],
  750. ['2015/11/14',7,'SY'],['2015/11/15',2,'SY'],['2015/11/16',17,'SY'],
  751. ['2015/11/17',33,'SY'],['2015/11/18',40,'SY'],['2015/11/19',32,'SY'],
  752. ['2015/11/20',26,'SY'],['2015/11/21',35,'SY'],['2015/11/22',4,'SY'],
  753. ['2015/11/23',32,'SY'],['2015/11/24',26,'SY'],['2015/11/25',22,'SY'],
  754. ['2015/11/26',16,'SY'],['2015/11/27',22,'SY'],['2015/11/28',10,'SY'],
  755. ['2015/11/08',10,'DD'],['2015/11/09',15,'DD'],['2015/11/10',35,'DD'],
  756. ['2015/11/11',38,'DD'],['2015/11/12',22,'DD'],['2015/11/13',16,'DD'],
  757. ['2015/11/14',7,'DD'],['2015/11/15',2,'DD'],['2015/11/16',17,'DD'],
  758. ['2015/11/17',33,'DD'],['2015/11/18',4,'DD'],['2015/11/19',32,'DD'],
  759. ['2015/11/20',26,'DD'],['2015/11/21',35,'DD'],['2015/11/22',40,'DD'],
  760. ['2015/11/23',32,'DD'],['2015/11/24',26,'DD'],['2015/11/25',22,'DD'],
  761. ['2015/11/26',16,'DD'],['2015/11/27',22,'DD'],['2015/11/28',10,'DD']]
  762. });
  763. baseTop += height + gap;
  764. createChart('none', echarts, option, baseTop);
  765. })
  766. </script>
  767. </body>
  768. </html>