Edit D:\xinhaisoft\crisis_new\lb\chart\scl90.js
// SCL-90 (function () { // ???url var js = 'scl90' var scripts = document.querySelectorAll('script[src*="/lb/chart/' + js + '.js"]') var script = scripts[scripts.length - 1] var src = script.src // ?????? var w = src.match(/[?&]w=([^&]+)/) var h = src.match(/[?&]h=([^&]+)/) var v = src.match(/[?&]v=([^&]+)/) // ?????? if (w === null || w.length < 1) { w = '100%' } else { w = w[1] + 'px' } if (h === null || h.length < 1) { h = 400 } else { h = h[1] } if (v === null || v.length < 1) { v = '' } else { v = v[1] } // ????????????10?? var json = v.replace(/\|/g, ',').split(',').slice(0, 10) // ???????? var option = { grid: { left: 'left', containLabel: true, right: 30, bottom: 0 }, title: { text: '?????????(SCL-90)?????' }, tooltip: { trigger: 'axis' }, toolbox: { feature: { dataView: {}, magicType: { type: ['bar'] }, restore: {}, saveAsImage: {} } }, xAxis: { axisLabel: { interval: 0, rotate: 30 }, data: ['?????', '??????', '??????', '???', '???', '???', '????', '???', '???????', '???'] }, yAxis: { max: 5 }, series: { name: '???', type: 'line', smooth: false, markPoint: { data: [{ name: '??????', type: 'max', itemStyle: { color: '#b6a2de', opacity: 0.8 } }] }, markLine: { silent: true, data: [{ yAxis: 2.5, lineStyle: { color: '#b6a2de', opacity: 0.5 } }] }, data: json } } // ?????? var rnd = Math.random().toString().substring(2, 8) var div = '<div id="chart-' + rnd + '" class="chart" style="width:' + w + ';height:' + h + 'px;overflow-x:auto;overflow-y:hidden;margin:0 auto;"></div>' script.insertAdjacentHTML('afterend', div) script.parentNode.removeChild(script) // ?????? var body = document.getElementsByTagName('body')[0] if (body.getAttribute('data-echarts-theme-macarons')) { drawChart() } else { // ??????????????????jquery $.ajax('/Scripts/echarts/theme/macarons.js', { dataType: 'script', cache: true, complete: function () { body.setAttribute('data-echarts-theme-macarons', true) drawChart() } }) } // ?????? function drawChart() { var dom = document.getElementById('chart-' + rnd) dom.setAttribute('data-option', JSON.stringify(option)) dom.setAttribute('data-theme', 'macarons') echarts.init(dom, 'macarons').setOption(option) } })()
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de