2015-04-03 85 views
0

我得到了highchart日誌泡沫圖的有線問題。在這個圖表中,我已經在xaxis上設置了動態最小值,但是當渲染圖時,它在x軸上逸出了一些氣泡請看this fiddle泡沫/圈在x軸上在Highchart氣泡圖中被越獄

$(function() { 

    $('#container').highcharts({ 
     chart: { 
      type: 'bubble', 
      plotBorderWidth: 1 
     }, 

     title: { 
      text: 'Highcharts Bubbles' 
     }, 

     subtitle: { 
      text: 'The <em>zMin</em> and <em>zMax</em> options are set to 0 and 100, bubbles should not become near the <em>maxSize</em>' 
     }, 

     xAxis: { 
      gridLineWidth: 1, 
      min: -50, 
      max: 150 
     }, 

     yAxis: { 
      min: 0, 
      max: 18000 
     }, 

     series: [{ 
      data: [ 
       [8, 6, 6], 
       [10, 6, 6], 
       [20, 10, 10], 
       [30, 20, 20], 
       [137, 17277, 17277] 
      ] 
     }] 

    }); 
}); 

前四個氣泡顯示半圓而不是全圓。

回答

0

根據數據值將氣泡打印在中心點附近。在這種情況下,您需要通過tickPositioner/tickPositions或min/max來適應yAxis上的縮放比例。

+0

http://jsfiddle.net/42yvnrf9/9/ – 2015-04-03 10:23:56