HighCharts rest缩放在xy上失败

HighCharts rest缩放在xy上失败,highcharts,zooming,reset,Highcharts,Zooming,Reset,当我将HighCharts设置为在xy上缩放时,它有一个问题。它可以很好地缩放,但在其他情况下,轴会重置,但打印区域保持不变。有时需要2到3次才能打破,但一旦打破了,它就会保持破产状态。我的代码如下: $(function () { $('#container').highcharts({ chart: { plotBorderWidth: 1, spacingTop: 0,

当我将HighCharts设置为在xy上缩放时,它有一个问题。它可以很好地缩放,但在其他情况下,轴会重置,但打印区域保持不变。有时需要2到3次才能打破,但一旦打破了,它就会保持破产状态。我的代码如下:

    $(function () {


        $('#container').highcharts({
            chart: {
                plotBorderWidth: 1,
                spacingTop: 0,
                spacingBottom: 0,
                marginRight: 15,
                zoomType: 'xy'
            },
            credits: {
                enabled: false
            },
            title: "Test",
            xAxis: {
                title: {
                    text: "Year"
                },
                allowDecimals: false
            },
            yAxis: {
                title: {
                    text: ''
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }],
                labels: {
                    format: '${value:,.0f}',
                    minPadding: 1000
                }
            },
            tooltip: {
                useHTML: true,
                headerFormat: '<bold>{series.name}</bold><table>',
                pointFormat: '<tr><td style="color:#000000">Year {point.x} : ${point.y:,.0f}</td></tr>',
                footerFormat: '</table>'
            },

            series: [
                     { data: [[1, 805.593193551804], [2, 805.593193551804], [3, 805.593193551804], [4, 805.593193551804], [5, 805.593193551804], [6, 805.593193551804], [7, 805.593193551804], [8, 805.593193551804], [9, 805.593193551804], [10, 805.593193551804], [11, 805.593193551804], [12, 805.593193551804]], name: 'Before', color: '#EDF2DB', type: 'area' },
                     { data: [[1, 805.593193551804], [2, 805.593193551804], [3, 805.593193551804], [4, 805.593193551804], [5, 805.593193551804], [6, 805.593193551804], [7, 805.593193551804], [8, 805.593193551804], [9, 805.593193551804], [10, 805.593193551804], [11, 836.4400689934657], [12, 867.8232333655329]], name: 'After', color: '#FF6600', type: 'column' }
            ]
        });
    });

这是一个暂时的问题,但在最新的master分支中,它得到了修复

请参见示例:

<script src="http://github.highcharts.com/master/highcharts.js"></script>