将Highchart导出为2页的PDF结果

时间:2014-06-10 20:28:39

标签: javascript jquery highcharts

当我们以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
    }
    }
)

1 个答案:

答案 0 :(得分:1)

与已知错误有关,请在此处报告:https://github.com/highslide-software/highcharts.com/issues/1957