开发者

How do you change the height value when more items are added to highcharts dynamically?

I have the following problem - if i increase the amount of items in highcharts piechart the legend items get cut off as the height is a set amount - how can i change the heigh开发者_开发百科t if more items are added - here is the current example: http://jsfiddle.net/zidski/34fUV/10/


//amusing data array contains number of legends, I know it's nested inside something else

var height = //get containers original height

var new_height = height + (data.length * 10);

$("#highcharts-0").css("{height:"+new_height+"}");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜