123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
-
- var chart1;
- var options1;
- Highcharts.setOptions({
- global : {
- useUTC : false
- }
- });
- String.prototype.endWith=function(oString){
- var reg=new RegExp(oString+"$");
- return reg.test(this);
- }
- options1= {
- colors: [
- '#B20000'
-
- ],
- chart: {
- renderTo: 'container2',
- type: 'spline',
-
-
- zoomType: 'x',
- events: {
-
- }
- },
- title: {
- text: '功率曲线'
- },
-
- subtitle: {
- text: ''
- },
- xAxis: {
- labels: {
- align: 'center',
- formatter: function() {
- return Highcharts.dateFormat('%H<br/>%M', this.value);
- }
- },
- type: 'datetime'
- },
- yAxis: [{
- title: {
- text: '功率数值(MW)'
- }
- }],
- legend: {
- layout: 'vertical',
-
- align: 'right',
- verticalAlign: 'top',
- floating: true
-
-
-
-
-
- },
- tooltip: {
- crosshairs:{
- width:2
- },
- shared:true,
- xDateFormat:'%Y-%m-%d %H:%M'
-
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
-
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle'
- }
- }
- },
- series: [
- {
- type: 'spline',
- name: '实发功率(单位:MW)',
- yAxis:0
- }]
- };
|