var chart1; var chart2; var chart3; var chart4; var chart5; var chart6; var chart7; var chart8; var chart9; var chart10; var chart11; var options1; var options2; var options3; var options4; var options5; var options6; var options7; var options8; var options9; var options10; var options11; Highcharts.setOptions({ global : { useUTC : false } }); String.prototype.endWith=function(oString){ var reg=new RegExp(oString+"$"); return reg.test(this); } var bl1; var bl2; function stateimg(obj,type) { switch (type) { case 0: $(obj).attr("src", "/resource/images/hbsj/standBy_Station.fw.png"); break; case 1: $(obj).attr("src", "/resource/images/hbsj/run_Station.fw.png"); break; case 2: $(obj).attr("src", "/resource/images/hbsj/stop_Station.fw.png"); break; case 3: $(obj).attr("src", "/resource/images/hbsj/interrupt_Station.fw.png"); break; case 4: $(obj).attr("src", "/resource/images/hbsj/repair_Station.fw.png"); break; case 5: $(obj).attr("src", "/resource/images/hbsj/limit_Station.fw.png"); break; case 6: $(obj).attr("src", "/resource/images/hbsj/limit_Station.fw.png"); break; } } function statebtnimg(obj,type) { switch (type) { case 0: $(obj).html(""); break; case 1: $(obj).html(""); break; case 2: $(obj).html(""); break; case 3: $(obj).html(""); break; case 4: $(obj).html(""); break; case 5: $(obj).html(""); break; case 6: $(obj).html(""); break; } } function wpInfoAjax() { var wpId = $("#wpId").val(); $.ajax({ url : "wpInfoAjax.action?wpId=" + wpId, type : "post", cache : false, dataType : "json", data : {}, ifModified : false, success : function(res) { $("#zjrl").html(res["zjrl"]); $("#aqts").html(res["aqts"]); $("#ydxkyxs").html(res["ydxkyxs"]); $("#ysbklyl").html(res["ysbklyl"]); $("#ylyxs").html(res["ylyxs"]); $("#nlyxs").html(res["nlyxs"]); $("#rfdl").html(res["rfdl"]); $("#yfdl").html(res["yfdl"]); $("#nfdl").html(res["nfdl"]); $("#rswdl").html(res["rswdl"]); $("#yswdl").html(res["yswdl"]); $("#nswdl").html(res["nswdl"]); $("#jpeyht").html(res["jpeyht"]); $("#jpeyhl").html(res["jpeyhl"]); $("#jybm").html(res["jybm"]); $("#jys").html(res["jys"]); $("#whss").html(res["whss"]); $("#whssy").html(res["whssy"]); $("#whssn").html(res["whssn"]); $("#gzss").html(res["gzss"]); $("#gzssy").html(res["gzssy"]); $("#gzssn").html(res["gzssn"]); $("#xdss").html(res["xdss"]); $("#xdssy").html(res["xdssy"]); $("#xdssn").html(res["xdssn"]); $("#slss").html(res["slss"]); $("#slssy").html(res["slssy"]); $("#slssn").html(res["slssn"]); $("#xnss").html(res["xnss"]); $("#xnssy").html(res["xnssy"]); $("#xnssn").html(res["xnssn"]); $("#yxts").html(res["yxts"]); $("#djts").html(res["djts"]); $("#whts").html(res["whts"]); $("#gzts").html(res["gzts"]); $("#xdts").html(res["xdts"]); $("#lxts").html(res["lxts"]); $("#jrts").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]); /**********************************************************************************************/ statebtnimg("#fs_fczt", res["FS_FDC_FCZT"]); statebtnimg("#bz_fczt", res["BZ_FDC_FCZT"]); statebtnimg("#dbs_fczt", res["DBS_FDC_FCZT"]); statebtnimg("#xbq_fczt", res["XBQ_FDC_FCZT"]); statebtnimg("#tzs_fczt", res["TZS_FDC_FCZT"]); statebtnimg("#xc_fczt", res["XC_FDC_FCZT"]); statebtnimg("#lh_fczt", res["LH_FDC_FCZT"]); statebtnimg("#jq_fczt", 3); statebtnimg("#bs_fczt", 3); statebtnimg("#ql_fczt", res["QL_FDC_FCZT"]); statebtnimg("#wf_fczt", 3); statebtnimg("#ym_fczt", 3); statebtnimg("#ty_fczt", 3); statebtnimg("#al_fczt", 3); //statebtnimg("#jq_fczt", res["JQ_FDC_FCZT"]); //statebtnimg("#bs_fczt", res["BS_FDC_FCZT"]); //statebtnimg("#ql_fczt", res["QL_FDC_FCZT"]); //statebtnimg("#wf_fczt", res["WF_FDC_FCZT"]); //statebtnimg("#ym_fczt", res["YM_FDC_FCZT"]); //statebtnimg("#ty_fczt", res["TY_FDC_FCZT"]); //statebtnimg("#al_fczt", res["AL_FDC_FCZT"]); /**********************************************************************************************/ $("#FS_FDC_ZJRL").html(res["FS_FDC_ZJRL"]); $("#BZ_FDC_ZJRL").html(res["BZ_FDC_ZJRL"]); $("#DBS_FDC_ZJRL").html(res["DBS_FDC_ZJRL"]); $("#TZS_FDC_ZJRL").html(res["TZS_FDC_ZJRL"]); $("#XBQ_FDC_ZJRL").html(res["XBQ_FDC_ZJRL"]); $("#XC_FDC_ZJRL").html(res["XC_FDC_ZJRL"]); $("#LH_FDC_ZJRL").html(res["LH_FDC_ZJRL"]); $("#JQ_FDC_ZJRL").html(res["JQ_FDC_ZJRL"]); $("#BS_FDC_ZJRL").html(res["BS_FDC_ZJRL"]); $("#QL_FDC_ZJRL").html(res["QL_FDC_ZJRL"]); $("#WF_FDC_ZJRL").html(res["WF_FDC_ZJRL"]); $("#YM_FDC_ZJRL").html(res["YM_FDC_ZJRL"]); $("#TY_FDC_ZJRL").html(res["TY_FDC_ZJRL"]); $("#AL_FDC_ZJRL").html(res["AL_FDC_ZJRL"]); /**********************************************************************************************/ $("#FS_FDC_ZJTS").html(res["FS_FDC_ZJTS"]); $("#BZ_FDC_ZJTS").html(res["BZ_FDC_ZJTS"]); $("#DBS_FDC_ZJTS").html(res["DBS_FDC_ZJTS"]); $("#TZS_FDC_ZJTS").html(res["TZS_FDC_ZJTS"]); $("#XBQ_FDC_ZJTS").html(res["XBQ_FDC_ZJTS"]); $("#XC_FDC_ZJTS").html(res["XC_FDC_ZJTS"]); $("#LH_FDC_ZJTS").html(res["LH_FDC_ZJTS"]); $("#JQ_FDC_ZJTS").html(res["JQ_FDC_ZJTS"]); $("#BS_FDC_ZJTS").html(res["BS_FDC_ZJTS"]); $("#QL_FDC_ZJTS").html(res["QL_FDC_ZJTS"]); $("#WF_FDC_ZJTS").html(res["WF_FDC_ZJTS"]); $("#YM_FDC_ZJTS").html(res["YM_FDC_ZJTS"]); $("#TY_FDC_ZJTS").html(res["TY_FDC_ZJTS"]); $("#AL_FDC_ZJTS").html(res["AL_FDC_ZJTS"]); /**********************************************************************************************/ $("#FS_FDC_FS").html(res["FS_FDC_FS"]); $("#BZ_FDC_FS").html(res["BZ_FDC_FS"]); $("#DBS_FDC_FS").html(res["DBS_FDC_FS"]); $("#TZS_FDC_FS").html(res["TZS_FDC_FS"]); $("#XBQ_FDC_FS").html(res["XBQ_FDC_FS"]); $("#XC_FDC_FS").html(res["XC_FDC_FS"]); $("#LH_FDC_FS").html(res["LH_FDC_FS"]); $("#JQ_FDC_FS").html(res["JQ_FDC_FS"]); $("#BS_FDC_FS").html(res["BS_FDC_FS"]); $("#QL_FDC_FS").html(res["QL_FDC_FS"]); $("#WF_FDC_FS").html(res["WF_FDC_FS"]); $("#YM_FDC_FS").html(res["YM_FDC_FS"]); $("#TY_FDC_FS").html(res["TY_FDC_FS"]); $("#AL_FDC_FS").html(res["AL_FDC_FS"]); /**********************************************************************************************/ $("#FS_FDC_GL").html(res["FS_FDC_GL"]); $("#BZ_FDC_GL").html(res["BZ_FDC_GL"]); $("#DBS_FDC_GL").html(res["DBS_FDC_GL"]); $("#TZS_FDC_GL").html(res["TZS_FDC_GL"]); $("#XBQ_FDC_GL").html(res["XBQ_FDC_GL"]); $("#XC_FDC_GL").html(res["XC_FDC_GL"]); $("#LH_FDC_GL").html(res["LH_FDC_GL"]); $("#JQ_FDC_GL").html(res["JQ_FDC_GL"]); $("#BS_FDC_GL").html(res["BS_FDC_GL"]); $("#QL_FDC_GL").html(res["QL_FDC_GL"]); $("#WF_FDC_GL").html(res["WF_FDC_GL"]); $("#YM_FDC_GL").html(res["YM_FDC_GL"]); $("#TY_FDC_GL").html(res["TY_FDC_GL"]); $("#AL_FDC_GL").html(res["AL_FDC_GL"]); /**********************************************************************************************/ $("#FS_FDC_RFDL").html(res["FS_FDC_RFDL"]); $("#BZ_FDC_RFDL").html(res["BZ_FDC_RFDL"]); $("#DBS_FDC_RFDL").html(res["DBS_FDC_RFDL"]); $("#TZS_FDC_RFDL").html(res["TZS_FDC_RFDL"]); $("#XBQ_FDC_RFDL").html(res["XBQ_FDC_RFDL"]); $("#XC_FDC_RFDL").html(res["XC_FDC_RFDL"]); $("#LH_FDC_RFDL").html(res["LH_FDC_RFDL"]); $("#JQ_FDC_RFDL").html(res["JQ_FDC_RFDL"]); $("#BS_FDC_RFDL").html(res["BS_FDC_RFDL"]); $("#QL_FDC_RFDL").html(res["QL_FDC_RFDL"]); $("#WF_FDC_RFDL").html(res["WF_FDC_RFDL"]); $("#YM_FDC_RFDL").html(res["YM_FDC_RFDL"]); $("#TY_FDC_RFDL").html(res["TY_FDC_RFDL"]); $("#AL_FDC_RFDL").html(res["AL_FDC_RFDL"]); /**********************************************************************************************/ $("#LN_ZJRL").html(res["LN_ZJRL"]); $("#HLJ_ZJRL").html(res["HLJ_ZJRL"]); $("#JL_ZJRL").html(res["JL_ZJRL"]); $("#MD_ZJRL").html(res["MD_ZJRL"]); /**********************************************************************************************/ $("#LN_ZJTS").html(res["LN_ZJTS"]); $("#HLJ_ZJTS").html(res["HLJ_ZJTS"]); $("#JL_ZJTS").html(res["JL_ZJTS"]); $("#MD_ZJTS").html(res["MD_ZJTS"]); /**********************************************************************************************/ $("#LN_FS").html(res["LN_FS"]); $("#HLJ_FS").html(res["HLJ_FS"]); $("#JL_FS").html(res["JL_FS"]); $("#MD_FS").html(res["MD_FS"]); /**********************************************************************************************/ $("#LN_GL").html(res["LN_GL"]); $("#HLJ_GL").html(res["HLJ_GL"]); $("#JL_GL").html(res["JL_GL"]); $("#MD_GL").html(res["MD_GL"]); /**********************************************************************************************/ $("#LN_RFDL").html(res["LN_RFDL"]); $("#HLJ_RFDL").html(res["HLJ_RFDL"]); $("#JL_RFDL").html(res["JL_RFDL"]); $("#MD_RFDL").html(res["MD_RFDL"]); /**********************************************************************************************/ if(chart3.series[0]) { var point = chart3.series[0].points[0]; point.update(res["fs"]); } if(chart4.series[0]) { point = chart4.series[0].points[0]; point.update(res["llgl"]); } if(chart5.series[0]) { point = chart5.series[0].points[0]; if(res["sjgl"]<0) { point.update(res["yfgl"]); }else { point.update(res["sjgl"]); } } if(chart7.series[0]) { point = chart7.series[0].points[0]; point.update(res["yfgl"]); } /****************************************/ var jh=[]; var sj=[]; var bl=[]; jh.push(res["yfdljh"]); jh.push(res["nfdljh"]); sj.push(res["yfdl"]); sj.push(res["nfdl"]); bl.push("月计划完成率"+res["ywcl"]+"%"); bl.push("年计划完成率"+res["nwcl"]+"%"); options6.series[0].data = jh; options6.series[1].data = sj; //options6.series[2].data = bl; if(bl1!=res["ywcl"]) { bl1=res["ywcl"]; bl2=res["nwcl"]; options6.xAxis.categories=bl chart6 = new Highcharts.Chart(options6); }else if(bl2!=res["nwcl"]) { bl1=res["ywcl"]; bl2=res["nwcl"]; options6.xAxis.categories=bl chart6 = new Highcharts.Chart(options6); } } }); } function powerAjax() { var wpId = $("#wpId").val(); var url = "powerAjax.action?wpId=" + wpId; $.ajax({ url : url, type : "post", cache : false, dataType : "json", async : false, data : {}, ifModified : false, success : function(result) { var yfdl = []; var swdl = []; var gwdl = []; var lldl = []; var xtime = []; $.each(result, function(m, obj) { //if(m == result.length -1){ if (obj.value1 != null) { yfdl.push( parseFloat(obj.value1) ); } if (obj.value2 != null) { swdl.push( parseFloat(obj.value2) ); } if (obj.value3 != null) { gwdl.push( parseFloat(obj.value3) ); //ycgl.push([ obj.time, parseFloat(obj.wggl) ]); } if (obj.value4 != null) { lldl.push( parseFloat(obj.value4) ); //ycgl.push([ obj.time, parseFloat(obj.wggl) ]); } if(obj.timestr!="") { xtime.push(obj.timestr); }else { xtime.push(""); } }); //alert(xtime.length); options2.series[0].data = yfdl; options2.series[1].data = lldl; options2.series[2].data = swdl; options2.series[3].data = gwdl; options2.xAxis.categories = xtime; chart2 = new Highcharts.Chart(options2); } }); } function realPowerAjax() { var wpId = $("#wpId").val(); var url = "realPowerAjax.action?wpId=" + wpId; $.ajax({ url : url, type : "post", cache : false, dataType : "json", data : {}, ifModified : false, success : function(result) { var yfgl = []; var sjgl = []; var lvgl = []; var ycgl = []; var bzgl = []; var pjfs = []; var zygl = []; var xtime=[]; var index=0; var count=0; $.each(result, function(m, obj) { //if(m == result.length -1){ if(index%M', this.value); } }, type: 'datetime' }, yAxis: [{ title: { text: '功率数值(MW)' } },{ title:{ text :'风速' }, labels:{ formatter: function(){ return this.value; } }, lineWidth : 1, opposite:true }], legend: { layout: 'vertical', // backgroundColor: '#FFFFFF', align: 'right', verticalAlign: 'top', x:-60, floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, tooltip: { crosshairs:{//控制十字线 width:2 }, shared:true, xDateFormat:'%Y-%m-%d %H:%M' /*formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x); }*/ }, credits: { enabled: false }, plotOptions: { spline: { dataLabels : { enabled :false }, // pointPadding: 0.2, borderWidth: 0 }, series: { cursor: 'pointer', marker: { radius: 0, symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle" } } }, series: [{ type: 'spline', name: '应发功率(单位:MW)', yAxis:0 }, { type: 'spline', name: '实发功率(单位:MW)', yAxis:0 }, { type: 'spline', name: '理论功率(单位:MW)', yAxis:0 }, { type: 'spline', name: '预测功率(单位:MW)', yAxis:0 }, { type: 'spline', name: '保证功率(单位:MW)', yAxis:0 }, { type: 'spline', name: '最优功率(单位:MW)', yAxis:0 },{ type: 'spline', name: '平均风速', yAxis:1 }] }; options2 = { chart: { renderTo: 'container2', type: 'column', //backgroundColor:'#BFDFFF', //plotBackgroundColor:'#BFDFFF', zoomType: 'x', events: { click: function (event) { var num=parseInt(Math.abs(event.xAxis[0].value).toFixed(0)); var temp=event.xAxis[0].axis.options.categories[num]; var day=temp.substring(0,temp.length-1); powerDetailAjax(day,temp); } } },title:null , xAxis: { type: 'category' }, yAxis: [{ title: { text: '电量(万kWh)' } }], legend: { layout: 'vertical', // backgroundColor: '#FFFFFF', align: 'right', verticalAlign: 'top', x:-60, floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, tooltip: { shared:true, xDateFormat:'%Y-%m-%d' /*formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x); }*/ }, credits: { enabled: false }, plotOptions: { spline: { dataLabels : { enabled :false }, // pointPadding: 0.2, borderWidth: 0 }, column: { pointPadding: 0.2, borderWidth: 0 }, series: { cursor: 'pointer', marker: { radius: 0, symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle" } } }, series: [{ name: '日发电量(单位:万kWh)', yAxis:0 }, { name: '日理论发电量(单位:万kWh)', yAxis:0 }, { name: '上网电量(单位:万kWh)', yAxis:0 },{ name: '购网电量(单位:万kWh)', yAxis:0 }] }; options3 = { chart: { renderTo: 'container3', type: 'solidgauge', events: { click: function (event) { findPJFSDetail(); } } }, title: null, pane: { center: ['50%', '100%'], size: '200%', startAngle: -90, endAngle: 90, background: { backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE', innerRadius: '60%', outerRadius: '100%', shape: 'arc' } }, tooltip: { enabled: false }, // the value axis yAxis: { stops: [ [0.1, '#55BF3B'], // green [0.3, '#33FFFF'], // 蓝 [0.7, '#DDDF0D'], // yellow [0.9, '#DF5353'] // red ], lineWidth: 0, minorTickInterval: null, tickPixelInterval: 400, tickWidth: 0, title: { y: -10 }, labels: { y: 0 }, min: 0, max: 50, title: { text: null } }, plotOptions: { solidgauge: { dataLabels: { y: 15, borderWidth: 0, useHTML: true } } }, credits: { enabled: false }, series: [{ name: '风速(m/s)', data: [12], dataLabels: { format: '
{y}
' + '风速(m/s)
' }, tooltip: { valueSuffix: '' } }] }; options4 = { chart: { renderTo: 'container4', type: 'solidgauge', events: { click: function (event) { findBZGLDetail(); } } }, title: null, pane: { center: ['50%', '100%'], size: '200%', startAngle: -90, endAngle: 90, background: { backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE', innerRadius: '60%', outerRadius: '100%', shape: 'arc' } }, tooltip: { enabled: false }, // the value axis yAxis: { stops: [ [0.1, '#55BF3B'], // green [0.3, '#33FFFF'], // 蓝 [0.7, '#DDDF0D'], // yellow [0.9, '#DF5353'] // red ], lineWidth: 0, minorTickInterval: null, tickPixelInterval: 400, tickWidth: 0, title: { y: -10 }, labels: { y: 0 }, min: 0, max: 800, title: { text: null } }, plotOptions: { solidgauge: { dataLabels: { y: 15, borderWidth: 0, useHTML: true } } }, credits: { enabled: false }, series: [{ name: '保证功率(MW)', data: [12], dataLabels: { format: '
{y}
' + '保证功率(MW)
' }, tooltip: { valueSuffix: ' ' } }] }; options5 = { chart: { renderTo: 'container5', type: 'solidgauge', events: { click: function (event) { findSJGLDetail(); } } }, title: null, pane: { center: ['50%', '100%'], size: '200%', startAngle: -90, endAngle: 90, background: { backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE', innerRadius: '60%', outerRadius: '100%', shape: 'arc' } }, tooltip: { enabled: false }, // the value axis yAxis: { stops: [ [0.1, '#55BF3B'], // green [0.3, '#33FFFF'], // 蓝 [0.7, '#DDDF0D'], // yellow [0.9, '#DF5353'] // red ], lineWidth: 0, minorTickInterval: null, tickPixelInterval: 400, tickWidth: 0, title: { y: -10 }, labels: { y: 0 }, min: 0, max: 800, title: { text: null } }, plotOptions: { solidgauge: { dataLabels: { y: 15, borderWidth: 0, useHTML: true } } }, credits: { enabled: false }, series: [{ name: '实发功率(MW)', data: [12], dataLabels: { format: '
{y}
' + '实发功率(MW)
' }, tooltip: { valueSuffix: ' ' } }] }; options6 = { chart: { renderTo: 'container6', type: 'bar', events: { click: function (event) { getProjectInfo(event.srcElement); } } }, title: { text: '' }, xAxis: { categories: ['月发电量情况', '年发电量情况'], title: { text: null } }, yAxis: { min: 0, title: { text: ' ', align: 'middle' } }, plotOptions: { bar: { dataLabels: { enabled: true } } }, legend: '', credits: { enabled: false }, series: [{ name: '计划发电量(万KW)', data: [107, 133] }, { name: '实际发电量(万KW)', data: [133, 156] }] };; options7 = { chart: { renderTo: 'container7', type: 'solidgauge', events: { click: function (event) { findYFGLDetail(); } } }, title: null, pane: { center: ['50%', '100%'], size: '200%', startAngle: -90, endAngle: 90, background: { backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE', innerRadius: '60%', outerRadius: '100%', shape: 'arc' } }, tooltip: { enabled: false }, // the value axis yAxis: { stops: [ [0.1, '#55BF3B'], // green [0.3, '#33FFFF'], // 蓝 [0.7, '#DDDF0D'], // yellow [0.9, '#DF5353'] // red ], lineWidth: 0, minorTickInterval: null, tickPixelInterval: 400, tickWidth: 0, title: { y: -10 }, labels: { y: 0 }, min: 0, max: 800, title: { text: null } }, plotOptions: { solidgauge: { dataLabels: { y: 15, borderWidth: 0, useHTML: true } } }, credits: { enabled: false }, series: [{ name: '应发功率(MW)', data: [12], dataLabels: { format: '
{y}
' + '应发功率(MW)
' }, tooltip: { valueSuffix: ' ' } }] }; options8 = { chart: { renderTo: 'container8', type: 'column', //backgroundColor:'#BFDFFF', //plotBackgroundColor:'#BFDFFF', zoomType: 'x', events: { } },title:null , xAxis: { type: 'category' }, yAxis: [{ title: { text: '发电量情况(万kWh)' } }], legend: { layout: 'vertical', // backgroundColor: '#FFFFFF', align: 'right', verticalAlign: 'top', floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, tooltip: { shared:true /* , xDateFormat:'%Y-%m-%d' formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x); }*/ }, credits: { enabled: false }, plotOptions: { spline: { dataLabels : { enabled :false }, // pointPadding: 0.2, borderWidth: 0 }, column: { pointPadding: 0.2, borderWidth: 0 }, series: { cursor: 'pointer', marker: { radius: 0, symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle" } } }, series: [{ name: '月发电量(单位:万kWh)', yAxis:0 }, { name: '月计划发电量(单位:万kWh)', yAxis:0 }, { name: '年发电量(单位:万kWh)', yAxis:0 }, { name: '年计划发电量(单位:万kWh)', yAxis:0 }] }; options9 = { chart: { type: 'spline', //backgroundColor:'#BFDFFF', //plotBackgroundColor:'#BFDFFF', zoomType: 'x', events: { } },title:null , subtitle: { text: '' }, xAxis: { labels: { align: 'center', formatter: function() { return Highcharts.dateFormat('%H
%M', this.value); } }, type: 'datetime' }, yAxis: [{ title: { text: '功率数值(MW)' } }], legend: { layout: 'vertical', // backgroundColor: '#FFFFFF', align: 'right', verticalAlign: 'top', floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, tooltip: { crosshairs:{//控制十字线 width:2 }, shared:true, xDateFormat:'%Y-%m-%d %H:%M' /*formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x); }*/ }, credits: { enabled: false }, plotOptions: { spline: { dataLabels : { enabled :false }, // pointPadding: 0.2, borderWidth: 0 }, series: { cursor: 'pointer', marker: { radius: 0, symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle" } } }, series: [ ] }; options10 = { chart: { type: 'spline', //backgroundColor:'#BFDFFF', //plotBackgroundColor:'#BFDFFF', zoomType: 'x', events: { } },title:null , subtitle: { text: '' }, xAxis: { labels: { align: 'center', formatter: function() { return Highcharts.dateFormat('%H
%M', this.value); } }, type: 'datetime' }, yAxis: [{ title: { text: '平均风速(m/s)' } }], legend: { layout: 'vertical', // backgroundColor: '#FFFFFF', align: 'right', verticalAlign: 'top', floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, tooltip: { crosshairs:{//控制十字线 width:2 }, shared:true, xDateFormat:'%Y-%m-%d %H:%M' /*formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x); }*/ }, credits: { enabled: false }, plotOptions: { spline: { dataLabels : { enabled :false }, // pointPadding: 0.2, borderWidth: 0 }, series: { cursor: 'pointer', marker: { radius: 0, symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle" } } }, series: [ ] }; options11 = { chart: { renderTo: 'container11', type: 'column', //backgroundColor:'#BFDFFF', //plotBackgroundColor:'#BFDFFF', zoomType: 'x', events: { } },title:null , xAxis: { type: 'category' }, yAxis: [{ title: { text: '发电量(万kWh)' } }], legend: { layout: 'vertical', // backgroundColor: '#FFFFFF', align: 'right', verticalAlign: 'top', floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, tooltip: { shared:true, xDateFormat:'%Y-%m-%d' /*formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x); }*/ }, credits: { enabled: false }, plotOptions: { spline: { dataLabels : { enabled :false }, // pointPadding: 0.2, borderWidth: 0 }, column: { pointPadding: 0.2, borderWidth: 0 }, series: { cursor: 'pointer', marker: { radius: 0, symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle" } } }, series: [{ name: '日发电量(单位:万kWh)', yAxis:0 }, { name: '日理论发电量(单位:万kWh)', yAxis:0 } , { name: '上网电量(单位:万kWh)', yAxis:0 },{ name: '购网电量(单位:万kWh)', yAxis:0 }] }; chart1 = new Highcharts.Chart(options1); chart2 = new Highcharts.Chart(options2); chart3 = new Highcharts.Chart(options3); chart4 = new Highcharts.Chart(options4); chart5 = new Highcharts.Chart(options5); chart7= new Highcharts.Chart(options7); wpInfoAjax(); window.setInterval(wpInfoAjax, 30000); powerAjax(); setInterval(powerAjax, 24*60*60000); realPowerAjax(); setInterval(realPowerAjax, 30*60000); }); function goObjView(obj,type) { $("#wpId").val(obj); if((type!=null && type!="" && type!=undefined) || type==0 ) { setTab(1,type); switch (type) { case 0: $("#hbgsdt").css("display",""); $("#cldt").css("display","none"); $("#kbdt").css("display","none"); $("#dxdt").css("display","none"); break; case 1: $("#hbgsdt").css("display","none"); $("#cldt").css("display",""); $("#kbdt").css("display","none"); $("#dxdt").css("display","none"); break; case 2: $("#hbgsdt").css("display","none"); $("#cldt").css("display","none"); $("#kbdt").css("display",""); $("#dxdt").css("display","none"); break; case 3: $("#hbgsdt").css("display","none"); $("#cldt").css("display","none"); $("#kbdt").css("display","none"); $("#dxdt").css("display",""); break; case 4: break; case 5: break; } }else{ if(obj=="0"){ $("#hbgs_bt").css("display",""); $("#cl_bt").css("display","none"); $("#kb_bt").css("display","none"); $("#dx_bt").css("display","none"); }else if(obj=="1"){ $("#hbgs_bt").css("display","none"); $("#cl_bt").css("display",""); $("#kb_bt").css("display","none"); $("#dx_bt").css("display","none"); }else if(obj=="2") { $("#hbgs_bt").css("display","none"); $("#cl_bt").css("display","none"); $("#kb_bt").css("display",""); $("#dx_bt").css("display","none"); }else if(obj=="3") { $("#hbgs_bt").css("display","none"); $("#cl_bt").css("display","none"); $("#kb_bt").css("display","none"); $("#dx_bt").css("display",""); }else if(obj=="4") { } } wpInfoAjax(); powerAjax(); realPowerAjax(); }