redraw饼图在highchart [英] redraw pie chart in highchart

查看:229
本文介绍了redraw饼图在highchart的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有4个切片具有20%,30%,30%和20%。如果我让第4个切片(20%)无效,其他切片应该自己调整,占据100%。如何做到这一点在highcharts?谢谢。

解决方案

我认为不可能改变这种行为。相反,你需要删除所有的点,其他切片加起来为100.这是一个例子,显示了legend-toggle和点删除之间的区别: jsfiddle


suppose I have 4 slices having 20%, 30%, 30% and 20%. If I make 4th slice(20%) inactive, the other slices should adjust themselves and occupy 100 %. how to do this in highcharts? Thank you.

解决方案

I don't think it's possible to alter this behavior. Instead you need to remove the point all together for the other slices to add up to 100. Here is an example that shows the difference between legend-toggle and point remove: jsfiddle

这篇关于redraw饼图在highchart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆