2012-08-27 44 views

回答

0

改變這樣的最後一個函數,你將有充分的撥號

// Add some life 
    function(chart) { 
     setInterval(function() { 
      var point = chart.series[0].points[0], 
       newVal, inc = 100; 

      newVal = inc; 
      if (newVal < 0 || newVal > 100) { 
       newVal = 50; 
      } 

      point.update(newVal); 

     }, 3000); 

    }); 
+0

我不認爲這是他所要求的。這只是將針頭移動到「100」點。儀表仍然是一個「完整的圓」,實際圖表區域爲半圓,底部爲黑色空間。 – wergeld

+0

是Wergeld。你是對的。我需要一個半圓形的量表。 – Parth

+1

檢查此plotBands:[{ 從:0, 到:100, innerRadius:'40% ' outerRadius:'65%', 顏色:{的LinearGradient:{X1:0,Y1:0,X2: 1,Y2:1}, 停:[ [0, '#FFF'], [1, '#FFF'] ]} //綠色 },{ 從:0, 到:100, innerRadius:'45%', outerRadius:'60%', color:'#000'//紅色 }] 一個更改爲'100:'。這是你想要的嗎? –

0

您可以將背景形狀設置爲例如圓弧

pane:{ 
     background:{ 
     ... 
     shape:'arc' 
     ... 
     } 
    } 

然後用這個CSS刪除半圓

.chatcontainer > div { 
    margin-bottom: -35% !important 
} 
.chatcontainer > div.highcharts-container > svg { 
    margin-bottom: -35%; max-height: 65% !important; 
} 
0
pane: { 
     startAngle: -90, 
     endAngle: 90, 
     background:[] 
    }, 

應該這樣做下面的空間。