Edit D:\xinhaisoft\crisis_new\lb\chart\fad.js
// ????????????(FAD) (function () { 'use strict' // ???url var js = 'fad' var $script = $('script[src*="/lb/chart/' + js + '.js"]').last() var src = $script.attr('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] } // ?????? 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.after(div).remove() // ?????? var json = v.replace(/\|/g, ',').split(',') // ??? var option = { title: { text: '????????????(FAD)' }, tooltip: {}, toolbox: { feature: { dataView: {}, restore: {}, saveAsImage: {} } }, legend: { orient: 'vertical', left: 'right', top: 'middle', data: ['??????', '???????', '??????', '??????', '??????'] }, series: { type: 'pie', radius: [20, '75%'], roseType: 'area', data: [ { name: '??????', value: json[0] }, { name: '???????', value: json[1] }, { name: '??????', value: json[2] }, { name: '??????', value: json[3] }, { name: '??????', value: json[4] } ] } } // ?????? $.ajax('/Scripts/echarts/theme/macarons.js', { dataType: 'script', cache: true, complete: function () { // console.log(JSON.stringify(option,null,2)); $('#chart-' + rnd).data({ option: option, theme: 'macarons' }) echarts.init(document.getElementById('chart-' + rnd), 'macarons').setOption(option) } }) })()
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de