echarts利用phantomJS后台截屏后只有图没有文字,在本地MAC机上可以截到完整的图,但是上服务器后就只有图没有文字了。。。。求助啊!!!!
series_1 = [];
for (var key in data_1) {
json = {};
json['name'] = key;
json['type'] = 'bar';
json['data'] = data_1[key];
json['stack'] = '天气';
json['label'] = {'normal' : {'show' : true, 'position' : 'inside'}};
series_1.push(json);
}
var option = {
animation : false,
title: {text: '每日天气', left : 'center', textStyle : {fontSize : 16}},
legend : {data : priority, orient : 'horizontal', top : 35},
xAxis: {type: 'category', data: x_data, axisLabel : {interval : 0, rotate : '20'}},
yAxis: {type: 'value'},
series: series_1
};