From 270b06c2faed5f2aa564c4a3b1246a5891188bc7 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期二, 13 四月 2021 16:01:14 +0800 Subject: [PATCH] 废气图表点击显示 --- src/components/BaseNav/PublicBounced/GasComponents/EChartsDate.vue | 630 ++++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 514 insertions(+), 116 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsDate.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsDate.vue index 0844f9f..2c354b2 100644 --- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsDate.vue +++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsDate.vue @@ -15,13 +15,13 @@ <div class="pickerData"> <span> 寮�濮嬫椂闂�:</span> <span class="pickerTable"> - <el-date-picker type="datetime" v-model="value1"></el-date-picker> + <el-date-picker type="datetime" v-model="formInline.timeStart"></el-date-picker> </span> </div> <div class="pickerData"> <span >缁撴潫鏃堕棿:</span> <span class="pickerTable"> - <el-date-picker type="datetime" v-model="value2"></el-date-picker> + <el-date-picker type="datetime" v-model="formInline.timeEnd"></el-date-picker> </span> </div> </div> @@ -58,7 +58,6 @@ <script> import PublicDetailedList from '@components/BaseNav/PublicBounced/GasComponents/PublicDetailedList' -// import dayjs from 'dayjs' export default { name: 'ECharts', @@ -67,81 +66,275 @@ }, data () { return { - value1: '', - value2: '', watchData: [], dialogVisible: false, myChar: null, value: '', formInline: { - user: '', - region: '' + region: '', + timeStart: '', + timeEnd: '' }, - info: this.series + info: this.series, + JsonDayCharts: { + id: 'mychartsDay', + title: '鍔犵儹鐐夌儫姘�', + legend: [ + { + icon: 'image://../assets/imgs/legend/NOX.png', + itemHeight: 5, + itemWidth: 20, + textStyle: { + color: '#CCC' + }, + name: '姘哀鍖栫墿' + }, + { + icon: 'image://../assets/imgs/legend/SO2.png', + itemHeight: 5, + itemWidth: 20, + name: '浜屾哀鍖栫~', + textStyle: { + color: '#CCC' + } + }, + { + icon: 'image://../assets/imgs/legend/YanChen.png', + itemHeight: 5, + itemWidth: 20, + name: '鐑熷皹', + textStyle: { color: '#ccc' } + }, + { + icon: 'image://../assets/imgs/legend/WenDu.png', + itemHeight: 5, + itemWidth: 20, + name: '娓╁害', + textStyle: { color: '#ccc' } + }, + { + icon: 'image://../assets/imgs/legend/VOCs.png', + itemHeight: 5, + itemWidth: 20, + name: '搴熸皵娴侀噺', + textStyle: { color: '#ccc' } + } + ], + xdata: ['1鏃�', '2鏃�', '3鏃�', '4鏃�', '5鏃�', '6鏃�', '7鏃�', '8鏃�', '9鏃�', '10鏃�', '11鏃�', '12鏃�', '13鏃�', '14鏃�', '15鏃�', '16鏃�', '17鏃�', '18鏃�', '19鏃�', '20鏃�', '21鏃�', '22鏃�', '23鏃�', '24鏃�', '25鏃�', '26鏃�', '27鏃�', '28鏃�', '29鏃�', '30鏃�', '31鏃�'], + ydatas: [ + { name: '姘哀鍖栫墿', data: ['40.01', '44.38', '44.71', '40.43', '42.79', '46.00', '52.66', '48.75', '45.75', '49.24', '54.22', '52.25', '53.34', '65.72', '60.01', '54.20', '48.37', '45.56', '42.58', '40.96', '45.14', '49.31', '54.21', '57.89', '51.18', '60.21', '57.76', '60.33', '48.34', '45.66', '53.38'], zdcbcolor: 'red', zxcolor: '#00B0F0', bzz: 100 }, + { name: '浜屾哀鍖栫~', data: ['9.22', '8.07', '8.69', '9.16', '6.25', '5.78', '15.91', '3232992.75', '11.34', '13.63', '14.13', '11.47', '8.48', '9.46', '7.85', '5.91', '4.64', '4.77', '6.99', '5.82', '5.59', '5.30', '6.62', '9.00', '13.35', '2.68', '1.89', '0.70', '3.68', '6.25', '5.14'], zdcbcolor: 'red', zxcolor: '#fff21c', bzz: 50 }, + { + name: '搴熸皵娴侀噺', + data: ['2827518.25', '2763525.75', '2776435.50', '2742003.50', '2856001.75', '2890287.00', '2832898.25', '2803715.50', '2513925.75', '2753303.50', '2749836.00', '2786188.50', '2738838.00', '2733660.25', '2815521.25', '2830217.25', '2798918.00', '2803543.50', '2770175.25', '2823321.25', '2856329.25', '2801588.00', '2798103.50', '2766343.00', '2750489.50', '2697786.25', '2796775.50', '2808028.50', '2813561.75', '2757129.25', '2720755.50'], + zdcbcolor: 'red', + zxcolor: '#9ACD32', + bzz: null + }, + { name: '鐑熷皹', data: ['3.88', '3.48', '3.85', '3.99', '3.99', '4.48', '3.96', '3.36', '2.79', '4.65', '4.70', '5.08', '4.55', '4.90', '4.43', '3.10', '2.64', '2.84', '2.63', '2.69', '2.56', '2.32', '2.51', '3.29', '3.40', '3.06', '2.94', '2.90', '2.80', '3.07', '4.55'], zdcbcolor: 'red', zxcolor: '#f48183', bzz: 30 } + ], + yname: ' 娴撳害(mg/m鲁)', + // id:'mychartDay', + datatype: 1 + } } + }, + mounted () { + this.onSubmit() + // this.CreateChart(this.JsonDayCharts.id, this.JsonDayCharts.title, this.JsonDayCharts.legend, this.JsonDayCharts.xdata, this.JsonDayCharts.ydatas, this.JsonDayCharts.yname, this.JsonDayCharts.id, this.JsonDayCharts.datatype) }, methods: { onSubmit () { console.log('submit!') + this.CreateChart(this.JsonDayCharts.id, this.JsonDayCharts.title, this.JsonDayCharts.legend, this.JsonDayCharts.xdata, this.JsonDayCharts.ydatas, this.JsonDayCharts.yname, this.JsonDayCharts.id, this.JsonDayCharts.datatype) }, - drawChart: function () { - window.onresize = function () { - var h1 = document.documentElement.clientHeight// 鑾峰彇灞忓箷鐨勯珮搴� - if (h1 > 700) { - this.myChart.getDom().style.height = 3 + 'rem' - this.myChart.getDom().style.width = 6 + 'rem' - } else { - this.myChart.getDom().style.height = 3 + 'rem' - this.myChart.getDom().style.width = 6 + 'rem' - } - this.myChart.resize() + + CreateChart: function (id, title, legend, xdata, ydatas, yname, jcdID, datatype) { + this.mychartDay = this.$echarts.init(this.$refs.main) + this.mychartDay.clear() + var dataUnit = '' + if (datatype === 1) { + dataUnit = '姘旈噺(m鲁/d)' + } else { + dataUnit = '姘旈噺(m鲁/h)' } - }, - initOptions: function (dateDate, series) { - var options = { - title: { - // text: '鎶樼嚎鍥惧爢鍙�' - }, - color: ['#446cdc', '#c4c916', '#c1187e'], - tooltip: { + + var serLists = [] + for (var j = 0; j < ydatas.length; j++) { + var len = ydatas[j].data.length + for (var k = 0; k < len; k++) { + var it = ydatas[j].data[k] + var it2 = parseFloat(it).toFixed(2) + ydatas[j].data[k] = it2 + } + } + + for (var i = 0; i < ydatas.length; i++) { + // var zdcbcolor = ydatas[i].zdcbcolor + var bzz = ydatas[i].bzz + var obj + if (bzz == null) { + obj = { + name: ydatas[i].name, + symbol: 'circle', // 鎶樼偣褰㈢姸 + symbolSize: 10, // 澶у皬 + smooth: false, // 鐩寸嚎 锛宼rue 涓烘洸绾� + yAxisIndex: 1, + itemStyle: { + normal: { + color: function (c) { // 鏍规嵁value 鏄剧ず涓嶅悓鐨勬姌鐐归鑹� + // var biaozhuiz + // for (var i = 0; i < exhbzzList.length; i++) { + // if (exhbzzList[i].name == c.seriesName) { + // biaozhuiz = exhbzzList[i].bzhui + // } + // } + // if (c.value > 999999999999) { + // return zdcbcolor + // } else { + // return '#33c95f' + // } + }, + lineStyle: { // 鎶樼嚎鐨勯鑹� + color: ydatas[i].zxcolor, + width: 5 + }, + borderColor: ydatas[i].zxcolor, // 鎶樼偣杈规鐨勯鑹� + label: { // 鏄剧ず鍊� + show: false + } + } + }, + type: 'line', + data: ydatas[i].data + } + } else { + obj = { + name: ydatas[i].name, + symbol: 'circle', // 鎶樼偣褰㈢姸 + symbolSize: 10, // 澶у皬 + smooth: false, // 鐩寸嚎 锛宼rue 涓烘洸绾� + itemStyle: { + normal: { + color: function (c) { // 鏍规嵁value 鏄剧ず涓嶅悓鐨勬姌鐐归鑹� + // var biaozhuiz + // for (var i = 0; i < exhbzzList.length; i++) { + // if (exhbzzList[i].name == c.seriesName) { + // biaozhuiz = exhbzzList[i].bzhui + // } + // } + // if (c.value > biaozhuiz) { + // return zdcbcolor + // } else if (c.value > biaozhuiz * 0.9) { + // return '#FFA500' + // } else { + // return '#33c95f' + // } + }, + lineStyle: { // 鎶樼嚎鐨勯鑹� + color: ydatas[i].zxcolor, + width: 5 + }, + borderColor: ydatas[i].zxcolor, // 鎶樼偣杈规鐨勯鑹� + label: { // 鏄剧ず鍊� + show: false + } + } + }, + type: 'line', + data: ydatas[i].data, + markLine: { // 骞冲潎鍊� 锛� 鍜� 鎸囨爣涓婇檺 + symbol: 'none', + data: [ + /* { + type: 'average', + name: '鏃ュ钩鍧囧��', + label: { + normal: { + position: 'end', //鏄剧ず浣嶇疆 + formatter: ydatas[i].name+'\n鏃ュ钩鍧囧��'+'{c}' //鏄剧ず鏍峰紡 + } + }, + lineStyle:{ // 棰滆壊 + color: 'yellow', + type:'solid' + } + }, */ { + label: { + normal: { + position: 'end', + formatter: '' // ydatas[i].name+'鏍囧噯鍊�'//+'{c}' + } + }, + name: '鏍囧噯鍊�', + yAxis: bzz, + lineStyle: { + color: ydatas[i].zxcolor, + type: 'dashed', + width: 2 + } + } + ] + } + } + } + serLists.push(obj) + } + + var option = { + tooltip: { // 鎻愮ず妗� trigger: 'axis', axisPointer: { type: 'cross', label: { color: '#1a4245' } + }, + formatter: function (params) { + var s = params[0].name + '<br/>' + for (var i = 0; i < params.length; i++) { + // const name = params[i].name + // 鍥捐〃title鍚嶇О + var seriesName = params[i].seriesName + // 鍊� + var value = params[i].value + var valueFliter + if (value === 'NaN') { + valueFliter = '' + } else { + // valueFliter = formatter(value) + } + var maker = params[i].marker + if (seriesName === '浜屾哀鍖栫~') { + maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#fff21c;"></span>' + } else if (seriesName === '姘哀鍖栫墿') { + maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#00B0F0;"></span>' + } else if (seriesName === '鐑熷皹') { + maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#f48183;"></span>' + } else if (seriesName === '娓╁害') { + maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#F206FF;"></span>' + } else { + maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#4ec99c;"></span>' + } + s += maker + seriesName + ':' + valueFliter + '<br />' + } + return s } }, - legend: { - x: '200px', - y: '30px', - data: [{ - name: 'COD', - textStyle: { - color: '#00d0f9' - } - }, - { - name: '姘ㄦ爱', - textStyle: { - color: '#00d0f9' - } - }, - { - name: '搴熸按娴侀噺', - textStyle: { - color: '#00d0f9' - } - }] + toolbox: { // 鎵撳嵃绛夊伐鍏� + show: false, + feature: { + saveAsImage: {} + } }, - grid: { - left: '3%', - right: '3%', - bottom: '3%', - containLabel: true + grid: { // 缃戞牸 + top: '20%', + left: '5%' + // containLabel: true }, - toolbox: {}, - // 鍥炬爣缂╂斁璁剧疆 + legend: { // 鍥句緥 + data: legend + }, dataZoom: [{ type: 'inside', start: 0, @@ -150,6 +343,7 @@ start: 0, end: 100, show: false, + handleIcon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z', handleSize: '80%', handleStyle: { color: '#fff', @@ -159,20 +353,17 @@ shadowOffsetY: 2 } }], - // x杞寸殑璁剧疆 - xAxis: { + xAxis: { // x 杞磋缃� type: 'category', boundaryGap: false, - data: dateDate, axisLabel: { // x杞村叏閮ㄦ樉绀� rotate: 20, interval: 0, textStyle: { - color: '#fff', - fontSize: 10 + color: '#fff' } }, - splitLine: { // 缃戞牸鍨傜洿绾夸负铏氱嚎 + splitLine: { // 缃戞牸鍨傜洿绾夸负 铏氱嚎 show: true, lineStyle: { type: 'dashed' @@ -184,95 +375,302 @@ axisLine: { lineStyle: { color: '#FFFFFF', - width: 1 // 杩欓噷鏄负浜嗙獊鍑烘樉绀哄姞涓婄殑 + width: 1// 杩欓噷鏄负浜嗙獊鍑烘樉绀哄姞涓婄殑 } - } + }, + data: xdata }, - // Y 杞寸殑璁剧疆 yAxis: [{ type: 'value', - position: 'left', // 澶� Y 杞翠娇鐢� - name: '娴撳害(mg/m鲁)', + name: yname, + // max: function (value) { + // var max_val_list = [] // 鎵�鏈夋樉绀烘姌绾跨殑鏍囧噯鍊� + // if (exhbzzList && exhbzzList.length > 0) { + // if (value.max != '-Infinity') { // 鑾峰彇鎵�鏈夌洃娴嬫寚鏍囩殑max鍊� 2020/12/31 + // valMax = parseInt(value.max + 5) + // } + // $.each(exhbzzList, function (index, item) { + // if (item.bzhui != null) { + // max_val_list.push(item.bzhui) + // } + // }) + // } + // max_val_list = max_val_list.sort(function (a, b) { return a - b }) // 鎺掑簭 + // var ma = value.max > max_val_list[max_val_list.length - 1] ? value.max + 5 : max_val_list[max_val_list.length - 1] + // return parseInt(ma) + // }, axisLabel: { formatter: '{value}', textStyle: { - color: '#fff' // 鍧愭爣鐨勫瓧浣撻鑹� + color: '#fff' } }, axisPointer: { - snap: true // 鑷姩鍚搁檮鏈�杩戠殑鐐� + snap: true }, splitLine: { - show: false // y杞� 缃戞牸绾夸笉鏄剧ず - }, + show: false + }, // y杞� 缃戞牸绾夸笉鏄剧ず, axisLine: { lineStyle: { - color: '#ffffff', // 鍧愭爣杞寸殑棰滆壊 - width: 1 + color: '#FFFFFF', + width: 1// 杩欓噷鏄负浜嗙獊鍑烘樉绀哄姞涓婄殑 } } - }, - { + }, { type: 'value', - position: 'right', // 澶� Y 杞翠娇鐢� - name: '娴侀噺(m鲁/h鲁)', + name: dataUnit, + max: function (value) { + var ma = value.max > 120 ? value.max : 120 + return parseInt(ma) + }, axisLabel: { formatter: '{value}', textStyle: { - color: '#fff' // 鍧愭爣鐨勫瓧浣撻鑹� + color: '#fff' } }, axisPointer: { - snap: true // 鑷姩鍚搁檮鏈�杩戠殑鐐� + snap: true }, splitLine: { - show: false // y杞� 缃戞牸绾夸笉鏄剧ず - }, + show: false + }, // y杞� 缃戞牸绾夸笉鏄剧ず, axisLine: { lineStyle: { - color: '#ffffff', // 鍧愭爣杞寸殑棰滆壊 - width: 1 + color: '#FFFFFF', + width: 1// 杩欓噷鏄负浜嗙獊鍑烘樉绀哄姞涓婄殑 } } }], - series: series + series: serLists } - return options - } - }, - mounted () { - this.$nextTick(() => { - this.drawChart() - const dataWatch = JSON.parse(JSON.stringify(this.$attrs.getQueryOnlineMonDateData)).reverse() - console.log(dataWatch) - var dateDate = [] - // {COD:[3,4,5]} - var data = {} - for (var n = 0; n < dataWatch.length; n++) { - var d = dataWatch[n].MonTimeStr.substring(5, 9) - if (dateDate.indexOf(d) < 0) { - dateDate.push(d) - } - if (data[dataWatch[n].PoltmtrlName]) { - data[dataWatch[n].PoltmtrlName].push(dataWatch[n].MonQty) + this.mychartDay.setOption(option) + + // this.mychartDay.on('legendselectchanged', function (params) { + // var StdVal = null + // var op = { yAxis: {} } + // var max_val_list = [] // 鎵�鏈夋樉绀烘姌绾跨殑鏍囧噯鍊� + // if (exhbzzList && exhbzzList.length > 0) { + // max_val_list.push(valMax) // 灏嗙洃娴嬫寚鏍囩殑max鍊间篃鏀惧叆鏁扮粍 2020/12/31 + // $.each(exhbzzList, function (index, item) { + // params.selected[item.name] ? max_val_list.push(item.bzhui) : '' + // if (item.name == params.name) { + // item.name == 'VOCs' ? StdVal = 20 : StdVal = item.bzhui + // } + // }) + // } + // max_val_list = max_val_list.sort(function (a, b) { return a - b }) // 鎺掑簭 + // op.yAxis.max = function (value) { + // var ma = value.max < StdVal ? StdVal : Math.ceil(value.max) + // max_val_list ? ma = max_val_list[max_val_list.length - 1] : ''// 閫夋嫨鏈�澶у�� + // return ma + // } + // this.mychartDay.setOption(op) + // }) + + /** + * 瑙e喅mychartDay.on('click',function(){...})浜嬩欢閲嶅瑙﹀彂鐨勯棶棰� + * Date: 20200720 + */ + this.mychartDay.off('click') + + /** + * 鍥炬爣鐐瑰嚮浜嬩欢 + * 20190426 add + * */ + // this.mychartDay.on('click', function (params) { + // // 鑾峰彇褰撳墠鏃堕棿锛屽皬鏃� + // var nowHours = new Date().Format('hh') + // // 鐐瑰嚮鎶樼嚎鍥炬姌鐐瑰搴旂殑鏃堕棿 + // // 闇�瑕佷紶鐨勬椂闂翠负 + // var _date = null + // if (params.name.indexOf('鏃�') !== -1) { + // var hours = params.name.substring(0, params.name.indexOf('鏃�')) + // if (parseInt(hours) < parseInt(nowHours)) { + // _date = new Date().Format('yyyy-MM-dd') + ' ' + hours + ':00:00' + // } else { + // var currentDate = new Date() + // // 24灏忔椂涔嬪墠鏃堕棿 + // var stringDate = new Date(currentDate.getTime() - 24 * 60 * 60 * 1000).Format('yyyy-MM-dd') + // _date = stringDate + ' ' + hours + ':00:00' + // } + // } else if (params.name.indexOf('鏃�') !== -1) { + // var day = params.name.substring(0, params.name.indexOf('鏃�') - 1) + // _date = new Date().Format('yyyy-MM') + '-' + day.trim() + // } + + // todo 璋冩帴鍙� 鏌ュ嚟璇� + // if (params.color != 'red') { + // var poltMtrlId + // var monItemId = 28 + // for (var i = 0; i < wrwIDS.length; i++) { + // if (params.seriesName == wrwIDS[i].name) { + // poltMtrlId = wrwIDS[i].id + // } + // } + // getCBMX(jcdID, poltMtrlId, monItemId, _date, function (res) { + // createDivByMouse(res, params.event) + // }) + // } + // createDivByMouse("s",params.event); + // }) + }, + drawChart: function () { + window.onresize = function () { + var h1 = document.documentElement.clientHeight// 鑾峰彇灞忓箷鐨勯珮搴� + if (h1 > 700) { + this.mychartDay.getDom().style.height = 3 + 'rem' + this.mychartDay.getDom().style.width = 6 + 'rem' } else { - data[dataWatch[n].PoltmtrlName] = [dataWatch[n].MonQty] + this.mychartDay.getDom().style.height = 3 + 'rem' + this.mychartDay.getDom().style.width = 6 + 'rem' } + this.mychartDay.resize() } - var series = [] - for (var k in data) { - series.push({ - name: k, - type: 'line', - yAxisIndex: k === '搴熸按娴侀噺' ? 1 : 0, - data: data[k] - }) - } - console.log(series) - const opitons = this.initOptions(dateDate, series) - this.myChart = this.$echarts.init(this.$refs.main) - this.myChart.setOption(opitons) - }) + } + // initOptions: function (dateDate, series) { + // var options = { + // title: { + // // text: '鎶樼嚎鍥惧爢鍙�' + // }, + // color: ['#446cdc', '#c4c916', '#c1187e'], + // tooltip: { + // trigger: 'axis', + // axisPointer: { + // type: 'cross', + // label: { + // color: '#1a4245' + // } + // } + // }, + // legend: { + // x: '200px', + // y: '30px', + // data: [{ + // name: 'COD', + // textStyle: { + // color: '#00d0f9' + // } + // }, + // { + // name: '姘ㄦ爱', + // textStyle: { + // color: '#00d0f9' + // } + // }, + // { + // name: '搴熸按娴侀噺', + // textStyle: { + // color: '#00d0f9' + // } + // }] + // }, + // grid: { + // left: '3%', + // right: '3%', + // bottom: '3%', + // containLabel: true + // }, + // toolbox: {}, + // // 鍥炬爣缂╂斁璁剧疆 + // dataZoom: [{ + // type: 'inside', + // start: 0, + // end: 100 + // }, { + // start: 0, + // end: 100, + // show: false, + // handleSize: '80%', + // handleStyle: { + // color: '#fff', + // shadowBlur: 3, + // shadowColor: 'rgba(0, 0, 0, 0.6)', + // shadowOffsetX: 2, + // shadowOffsetY: 2 + // } + // }], + // // x杞寸殑璁剧疆 + // xAxis: { + // type: 'category', + // boundaryGap: false, + // data: dateDate, + // axisLabel: { // x杞村叏閮ㄦ樉绀� + // rotate: 20, + // interval: 0, + // textStyle: { + // color: '#fff', + // fontSize: 10 + // } + // }, + // splitLine: { // 缃戞牸鍨傜洿绾夸负铏氱嚎 + // show: true, + // lineStyle: { + // type: 'dashed' + // } + // }, + // axisTick: { // x 杞村埢搴︽樉绀� + // show: false + // }, + // axisLine: { + // lineStyle: { + // color: '#FFFFFF', + // width: 1 // 杩欓噷鏄负浜嗙獊鍑烘樉绀哄姞涓婄殑 + // } + // } + // }, + // // Y 杞寸殑璁剧疆 + // yAxis: [{ + // type: 'value', + // position: 'left', // 澶� Y 杞翠娇鐢� + // name: '娴撳害(mg/m鲁)', + // axisLabel: { + // formatter: '{value}', + // textStyle: { + // color: '#fff' // 鍧愭爣鐨勫瓧浣撻鑹� + // } + // }, + // axisPointer: { + // snap: true // 鑷姩鍚搁檮鏈�杩戠殑鐐� + // }, + // splitLine: { + // show: false // y杞� 缃戞牸绾夸笉鏄剧ず + // }, + // axisLine: { + // lineStyle: { + // color: '#ffffff', // 鍧愭爣杞寸殑棰滆壊 + // width: 1 + // } + // } + // }, + // { + // type: 'value', + // position: 'right', // 澶� Y 杞翠娇鐢� + // name: '娴侀噺(m鲁/h鲁)', + // axisLabel: { + // formatter: '{value}', + // textStyle: { + // color: '#fff' // 鍧愭爣鐨勫瓧浣撻鑹� + // } + // }, + // axisPointer: { + // snap: true // 鑷姩鍚搁檮鏈�杩戠殑鐐� + // }, + // splitLine: { + // show: false // y杞� 缃戞牸绾夸笉鏄剧ず + // }, + // axisLine: { + // lineStyle: { + // color: '#ffffff', // 鍧愭爣杞寸殑棰滆壊 + // width: 1 + // } + // } + // }], + // series: series + // } + // return options + // } } } </script> -- Gitblit v1.8.0