Highcharts:如何更改图表导出中的图例位置? [英] Highcharts: How do I change the legend location in the export of a chart?

查看:262
本文介绍了Highcharts:如何更改图表导出中的图例位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将图表导出为各种格式。虽然图表在浏览器呈现时看起来不错,但在PDF / PNG / JPEG导出中,图例似乎重叠。我应该改变/添加什么样的设置来改变图例的位置?



http://api.highcharts.com/highcharts#exporting.chartOptions)



示例: http://jsfiddle.net/ w8z1uq9s /

 出口:{
chartOptions:{
legend:{
y:100,
x:-50
}
}
},


I'm trying to export a chart to various formats. Although the chart looks okay when rendered by the browser, in the PDF/PNG/JPEG export the legend seems to be overlapping. What setting should I change/add to change the position of the legend?

解决方案

Exporting options can be set in chart's configuration: exporting.chartOptions.legend (API: http://api.highcharts.com/highcharts#exporting.chartOptions)

Example: http://jsfiddle.net/w8z1uq9s/

exporting: {
            chartOptions: {
                legend: {
                    y: 100,
                    x: -50
                }
            }
        },

这篇关于Highcharts:如何更改图表导出中的图例位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆