我们希望下载或打印时图表底部的文字显示在图表上。我们正在使用Highcharts提供的下载可能性。 我们希望图形在此图像中看起来像这样(底部显示的黑色文字显示欧洲纸浆和纸张......):
问题在于,当我们将图形下载为jpg,png,pdf或甚至只是打印时,文本不会出现。有没有办法包含这个文本? TIA
答案 0 :(得分:0)
您可以通过exporting.chartOptions为导出的图表设置其他选项。其他文字可以设置为副标题 - 请参阅API Docs中的可用选项。
exporting: {
chartOptions: {
chart: {
spacingBottom: 90
},
subtitle: {
verticalAlign: 'bottom',
text: `Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.`
}
}
}