0

I have a Highcharts 3.0 chart that shows both a column chart and a pie (donut) chart. This combo chart was rendering fine with the previous version of Highcharts.

Since upgrading the donut chart only renders to the highest y axis line and does not render above that line. The pie (donut) chart used to render completely with the top half of the pie (donut) chart being to the right of the chart title.

Any ideas?

Highcharts donut chart

I have added a jsfiddle with a small modification to the Highcharts provided combination chart (http://www.highcharts.com/demo/combo) to show the issue.

The only line I changed is where to center the pie chart.

center: [300, 1],

http://jsfiddle.net/Sh7wY/

4

3 回答 3

0

highslide-software 修复了默认情况下将饼图裁剪到绘图区域的回归。他们还提供了一种可行的解决方法。

请参阅https://github.com/highslide-software/highcharts.com/issues/1647

于 2013-04-02T16:51:13.253 回答
0

The pie chart is cutted, because is our of plotArea, where chart can be created. So you can modify pie size http://api.highcharts.com/highcharts#plotOptions.pie.size to make chart smaller or modify center parameter.

于 2013-03-27T13:18:23.757 回答
0

您必须更改此行:

center: [300, 1],

通过这个

center: [300, 100],

第二个参数相当于图表的样式“顶部”

于 2013-03-27T13:29:28.063 回答