谷歌饼图不显示所有数据行 [英] Google Pie Chart not Showing All Data Rows

查看:248
本文介绍了谷歌饼图不显示所有数据行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图绘制人口与国家名称,我发现Google可视化库仅渲染前几个(实际上数字看似随机取决于我使用的数据),并且有时添加其他条目,但它实际上并没有其他条目的价值。



示例1:使用所有国家/地区的数据



示例2:在某些国家/地区过滤出



是否有实际限制行数?为什么它不一致?有没有办法绕过它。我知道很难判断我是否将所有国家的人口都绘制在饼图上,但我至少应该能够做到。



我的问题是我可以' t抓住源代码,所以我不能真正看到发生了什么。任何人有任何想法?最糟糕的情况是,我将不得不对所有数据进行排序,并显示出人口数量最多的数据,但我真的希望避免这样做。 解决方案 div>

sliceVisibilityThreshold有一个选项,可能会解决您的问题。它默认设置为1/720,即0.5%。



我试图打开它达到1/10000,并没有解决我的问题。它将小片放在图例上,但仍未使用它们来计算百分比。这是一个真正的问题,因为%也在数据表中(我正在显示)它的正确位置。



-


I'm trying to plot population vs. country name and I found that the Google Visualization library is rendering only the first few (actually number is seemingly random depending on the data I use) and sometime add "Other" entry, but it doesn't actually have the value of the rest of the entries.

Example 1: With all countries data

Example 2: With some countries filtered out

Is there an actual limit on number of rows? Why is it inconsistent? Is there a way to get around it. I know it's difficult to view if I plot population of all countries on a pie chart, but I should at least be able to do it.

My issue that I can't get a hold of the source code so I can't really see what is going on. Anyone has any idea? Worst case, I will have to sort all data and show the ones with highest number of population first, but i really want to avoid doing that.

解决方案

There's an option for sliceVisibilityThreshold, which would probably solve your problem. It's set to 1/720 by default, which is .5%

I tried opening it up to 1/10000 and it did not solve my problem. It puts the tiny slices on the legend, but it's still not using them to calculate the percentage. That's a real problem because the % is also in the data table (that I'm displaying) where it is correct.

-Nicole

这篇关于谷歌饼图不显示所有数据行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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