datas.js 496 B

123456789101112131415161718
  1. let option = {
  2. xAxis: [...Array(100).keys()].map(e => +new Date('2019/05/01') + (e * 3600000 * 24 * 10)),
  3. yAxis: {
  4. // subsection: 5
  5. },
  6. data: [{
  7. title: '呵呵呵',
  8. isBg: true,
  9. data:[...Array(100).keys()].map(e =>
  10. e > 50
  11. ? parseInt( Math.random() * 1000 + 1)
  12. : -parseInt( Math.random() * 1000 + 1))
  13. },
  14. { title: '哈哈哈',data:[...Array(100).keys()].map(e => parseInt( Math.random() * 1000 + 1))},
  15. ],
  16. dataLineXColor: ['#E70012', '#49A6E9']
  17. };
  18. export default option