2014-07-14 156 views
0

我在圖表上有一個高圖矩形。是否有可能只設置右邊的邊界以便左邊有半徑和尖角?Highchart矩形邊框半徑

http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/members/renderer-rect/

我已經嘗試設置.CSS的borderRadius(複姓)爲好,但沒有工作過。

renderer.rect(100, 100, 100, 100, 0) 
     .attr({ 
      'stroke-width': 2, 
      stroke: 'red', 
      fill: 'yellow', 
      zIndex: 3 
     }) 
     .css({ 
     borderRadius:'10px' 
     }) 
     .add(); 

謝謝!

+0

Highcharts正在使用SVG元素。它不直接支持,請參閱[那個問題](http://stackoverflow.com/questions/8976791/how-to-set-a-stroke-width1-on-only-certain-sides-of-svg-shapes)。 –

回答

1

看起來這不太可能(容易),因爲高圖將使其不能作爲SVG元素優先更改。感謝Pawel Fus。