Edit D:\xinhaisoft\crisis_new\lb\chart\16pf.js
// 16PF (function () { 'use strict' // ???url var js = '16pf' 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(',').slice(0, 16) $.each(json, function (i, v) { if (v.indexOf('.') === 0) { v = '0' + v } if (v.indexOf('-.') === 0) { v = '-0' + v.substring(1) } }) var low = '??????|???????????????????????????????|??????|????????????????????¤????|??????????????????????????????????????????????????????????????????????????????'.split('|') var high = '??????|?????????????????|??????|??????|??????|??????|????????????????????????????????????????????????????????????????????????????????????????????????'.split('|') var lowJson = '' var highJson = '' $.each(low, function (i, v) { if (i > 0) { lowJson += ',' } lowJson += '{"type":"text","style":{"text":"' + v + '","x":175,"y":' + ((h - 60 - 10) / 16 * i + 80) + ',"textAlign":"right"}}' }) var width = $('#chart-' + rnd).width() - 110 $.each(high, function (i, v) { if (i > 0) { highJson += ',' } highJson += '{"type":"text","style":{"text":"' + v + '","x":' + width + ',"y":' + ((h - 60 - 10) / 16 * i + 80) + '}}' }) // ??? var option = { grid: { left: 180, right: 115, bottom: 10 }, title: { show: false }, tooltip: { trigger: 'axis' }, toolbox: { feature: { dataView: {}, magicType: { type: ['bar'] }, restore: {}, saveAsImage: {} } }, xAxis: { type: 'value', position: 'top', min: 1, max: 10, splitNumber: 10 }, yAxis: { type: 'category', offset: 120, splitLine: { show: true }, inverse: true, data: ['???(A)', '???(B)', '???(C)', '???(E)', '???(F)', '???(G)', '???(H)', '???(I)', '????(L)', '???(M)', '???(N)', '???(O)', '???(Q1)', '???(Q2)', '???(Q3)', '???(Q4)'] }, series: { name: '?????', type: 'line', step: 'middle', smooth: false, markLine: { silent: true, label: { show: true, position: 'start', formatter: '{b}' }, data: [{ name: '??', xAxis: 5.5, lineStyle: { color: '#b6a2de', opacity: 0.7 } }] }, label: { show: true, position: 'right' }, data: json }, graphic: JSON.parse('[' + lowJson + ',' + highJson + ']') } // ?????? $.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