【问题标题】:Exporting Highchart To PDF Results in 2 Pages将 Highchart 导出为 PDF 结果为 2 页
【发布时间】:2014-06-11 18:33:19
【问题描述】:

当我们以 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 jquery highcharts


    【解决方案1】:

    【讨论】:

    • 好的。上一次更改是一年前。
    • 如果一年前修复并关闭,现在如何修复?
    • 嗯,4.0.1版本应该已经修复了,能不能把你的demo复制成live,那我再重新开张票
    • 问题中的实时演示链接:jsfiddle.net/wergeld/nFY9B 似乎 jsFiddle 当前已关闭,但这是我们正在使用的代码。
    • 您能否重现该问题?
    猜你喜欢
    • 2017-05-27
    • 2016-04-14
    • 1970-01-01
    • 1970-01-01
    • 2012-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多