Highcharts:导出图表中的重叠列
Highcharts: overlapped columns in exported chart
实时图表看起来不错,但是,当导出为 PNG、JPEG 或 PDF 时,列重叠。
代码:http://jsfiddle.net/strawberry/1s27pjed/
exporting:{
chartOptions:{
legend:{
enabled:true,
style: {fontFamily: "Arial"}
},
}
},
此外,是否有一个选项可以更改导出的图例文本的字体和大小?我可以更改标题和轴字体,但不能更改图例。
legend.style
选项在新版本中 已弃用 ,也许这就是它不起作用的原因。您可以使用 legend.itemStyle
代替:
legend: {
enabled:true,
itemStyle: {fontFamily: "Arial", fontSize: '8px'}
}
这是DEMO。
实时图表看起来不错,但是,当导出为 PNG、JPEG 或 PDF 时,列重叠。
代码:http://jsfiddle.net/strawberry/1s27pjed/
exporting:{
chartOptions:{
legend:{
enabled:true,
style: {fontFamily: "Arial"}
},
}
},
此外,是否有一个选项可以更改导出的图例文本的字体和大小?我可以更改标题和轴字体,但不能更改图例。
legend.style
选项在新版本中 已弃用 ,也许这就是它不起作用的原因。您可以使用 legend.itemStyle
代替:
legend: {
enabled:true,
itemStyle: {fontFamily: "Arial", fontSize: '8px'}
}
这是DEMO。