0

我有一个使用 highcharts v2.3.2 的应用程序。当我尝试将图表导出为 pdf 时,图例显示为模糊。我试图在 jsfiddle 上重现它,它似乎也可以在 highcharts 演示页面上的任何示例中重现。

http://jsfiddle.net/9PyUp/

$('#container').highcharts({
    chart: {
        type: 'spline'
    },
    title: {
        text: 'Snow depth in the Vikjafjellet mountain, Norway'
    },
    subtitle: {
        text: 'An example of irregular time data in Highcharts JS'
    },
    xAxis: {
        type: 'datetime',
        dateTimeLabelFormats: { // don't display the dummy year
            month: '%e. %b',
            year: '%b'
        }
    },
    yAxis: {
        title: {
            text: 'Snow depth (m)'
        },
        min: 0
    },
    tooltip: {
        formatter: function() {
                return '<b>'+ this.series.name +'</b><br/>'+
                Highcharts.dateFormat('%e. %b', this.x) +': '+ this.y +' m';
        }
    },

    series: [{
        name: 'Winter 2007-2008',
        // Define the data points. All series have a dummy year
        // of 1970/71 in order to be compared on the same x axis. Note
        // that in JavaScript, months start at 0 for January, 1 for February etc.
        data: [
            [Date.UTC(1970,  9, 27), 0   ],
            [Date.UTC(1970, 10, 10), 0.6 ],
            [Date.UTC(1970, 10, 18), 0.7 ],
            [Date.UTC(1970, 11,  2), 0.8 ],
            [Date.UTC(1970, 11,  9), 0.6 ],
            [Date.UTC(1970, 11, 16), 0.6 ],
            [Date.UTC(1970, 11, 28), 0.67],
            [Date.UTC(1971,  0,  1), 0.81],
            [Date.UTC(1971,  0,  8), 0.78],
            [Date.UTC(1971,  0, 12), 0.98],
            [Date.UTC(1971,  0, 27), 1.84],
            [Date.UTC(1971,  1, 10), 1.80],
            [Date.UTC(1971,  1, 18), 1.80],
            [Date.UTC(1971,  1, 24), 1.92],
            [Date.UTC(1971,  2,  4), 2.49],
            [Date.UTC(1971,  2, 11), 2.79],
            [Date.UTC(1971,  2, 15), 2.73],
            [Date.UTC(1971,  2, 25), 2.61],
            [Date.UTC(1971,  3,  2), 2.76],
            [Date.UTC(1971,  3,  6), 2.82],
            [Date.UTC(1971,  3, 13), 2.8 ],
            [Date.UTC(1971,  4,  3), 2.1 ],
            [Date.UTC(1971,  4, 26), 1.1 ],
            [Date.UTC(1971,  5,  9), 0.25],
            [Date.UTC(1971,  5, 12), 0   ]
        ]
    }]
});
4

1 回答 1

1

您可以在此处找到示例的更新链接。

我添加 var highchartsOptions = Highcharts.setOptions(Highcharts.theme);了它。从 Highcharts.theme 中删除不需要的东西

于 2013-04-29T09:53:08.310 回答