无法通过highcharts通过node-export-server呈现“项目符号”图表

时间:2018-08-02 16:32:20

标签: highcharts

我无法通过node-export-server渲染图表图片时遇到了问题。 作为回应,我获得了带有错误#17的图片。 当我尝试将图表数据放入export.highlights.com

时,会发生相同的错误
{
    chart: {
        marginTop: 40,
        inverted: true,
        marginLeft: 135,
        type: 'bullet',
    },
    legend: {
        enabled: false
    },
    title: {
        text: '2017 YTD'
    },
    xAxis: {
        categories: ['<span class="hc-cat-title">Revenue</span><br/>U.S. $ (1,000s)']
    },
    yAxis: {
      gridLineWidth: 0,
        plotBands: [{
            from: 0,
            to: 150,
            color: '#666'
        }, {
            from: 150,
            to: 225,
            color: '#999'
        }, {
            from: 225,
            to: 9e9,
            color: '#bbb'
        }],
        title: null
    },
    series: [{
        data: [{
            y: 275,
            target: 250
        }]
    }],
    tooltip: {
        pointFormat: '<b>{point.y}</b> (with target at {point.target})'
    },
    plotOptions: {
        series: {
            pointPadding: 0.25,
            borderWidth: 0,
            color: '#000',
            targetOptions: {
                width: '200%'
            },
        },
    },
    credits: {
        enabled: false
    },
    exporting: {
        enabled: false
    }
}

请问我在哪里失踪了... 谢谢。

1 个答案:

答案 0 :(得分:0)

不幸的是,node-export-server根本无法导出“项目符号”图表类型。这是报告的问题:https://github.com/highcharts/node-export-server/issues/157

我会告诉您何时修复。