作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我们以 PDF 格式导出图表时,我们得到的 PDF 文件看起来有 2 页。现场演示 here 。我们不确定是什么原因造成的。
当我们导出时,我们会像这样改变图表属性:
chartMainLoc.exportChart(
{
type: 'application/pdf',
sourceHeight: this.chartHeight,
sourceWidth: this.chartWidth,
scale: 1
},
{
title: {
text: '<span style="font-weight:bold">Labor Force, Employment and Unemployment for Pinellas County in June, 2013</span><br /><br /><span style="font-weight:bold;font-size:9pt">Labor Force Graph</span><br /><br /><span style="font-size:10px; font-weight:normal">The graph below shows the monthly not seasonally adjusted Labor Force, Employment and Unemployment data for Pinellas County in June, 2013.</span>'
},
subtitle: {
text: 'Source: Labor Market Statistics, Local Area Unemployment Statistics Program and Online Advertised Job Data<br />Downloaded: 06/10/2014 4:20 PM'
},
legend: {
y: -50
},
chart: {
spacingLeft: 0,
spacingBottom: 10,
shadow: false,
height: chartMainLoc.chartHeight + 20
}
}
)
最佳答案
关于javascript - 将 Highchart 导出为 PDF 结果仅需 2 页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24150287/
我是一名优秀的程序员,十分优秀!