2017-02-28 69 views
0

我怎樣才能停止數據標籤動畫,因爲它從1000減少它調整動畫的位置,但我不想動畫。這是數據標籤的代碼。Highcharts標尺停止datalabels動畫只

plotOptions: { 
series: { 
    dataLabels: { 
      enabled: true, 
    color: '#fff', 
    borderWidth: 0, 
    y: 10 
    } 
}, 

這裏是一個鏈接Fiddle

回答

0

您需要的動畫虛假添加到

chart: { 
    ..., 
    animation:false 
} 

,並

plotOptions: { 
    ... 
    gauge { 
     ..., 
     animation: false 
    } 

在這裏看到完整的工作小提琴 http://jsfiddle.net/c14dns2h/3/

只停止標籤添加動畫對齊文本和調整x軸

plotOptions: { 
    series: { 
    dataLabels: { 
     ... 
     x: -15, 
     align: 'left' 
    } 
    }, 

這裏充分http://jsfiddle.net/c14dns2h/4/

+0

小提琴,但它也停止針的動畫。 – Etuts

+0

我添加了另一個小提琴,它只是停止標籤動畫 –

+0

非常感謝。 – Etuts