����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.15.149.213 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/ideyshare.name.ng/app/assets/admin/vendors/echarts/test/ |
Upload File : |
<html> <head> <meta charset="utf-8"> <script src="esl.js"></script> <script src="config.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body> <style> html, body, #main { width: 100%; height: 100%; margin: 0; } #main { background: #fff; } </style> <div id="main"></div> <script> require([ 'echarts', 'echarts/chart/bar', 'echarts/chart/line', 'echarts/component/legend', 'echarts/component/grid', 'echarts/component/tooltip', 'echarts/component/title', 'echarts/component/toolbox' ], function (echarts) { var chart = echarts.init(document.getElementById('main')); var xAxisData = []; var data1 = []; var data2 = []; var data3 = []; var data4 = []; for (var i = 0; i < 100; i++) { xAxisData.push('类目' + i); data1.push((Math.random() * 5).toFixed(2)); data2.push(Math.random().toFixed(2)); data3.push((Math.random() + 0.5).toFixed(2)); data4.push((Math.random() + 0.3).toFixed(2)); } chart.setOption({ legend: { data: ['bar', 'bar2', 'bar3', 'bar4'], align: 'left' }, toolbox: { // y: 'bottom', feature: { magicType: { type: ['line', 'bar', 'stack', 'tiled'] }, dataView: {}, saveAsImage: { pixelRatio: 2 } } }, tooltip: {}, xAxis: { data: xAxisData, silent: false, splitLine: { show: false }, splitArea: { show: false } }, yAxis: { splitArea: { show: false } }, series: [{ name: 'bar', type: 'bar', stack: 'one', data: data1 }, { show: false, name: 'bar2', type: 'bar', stack: 'one', data: data2 }, { name: 'bar3', type: 'bar', stack: 'two', data: data3 }, { name: 'bar4', type: 'bar', stack: 'two', data: data4, silent: true }], animationDelay: function (idx) { return idx * 5; }, animationDelayUpdate: function (idx) { return idx * 5; } }); chart.on('click', function (params) { console.log(params); }); window.onresize = chart.resize; }); </script> </body> </html>