谷歌饼图传奇式标记显示比例 [英] Google Pie Chart Legend type Labeled Showing Percentage

查看:176
本文介绍了谷歌饼图传奇式标记显示比例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何显示的值,而不是百分比传说类型标记谷歌饼图,我想展示下完成百分比,而不是100%的显示1

How to Show The value instead of percentage Legend Type Labeled google pie chart i want show percentage in below completed instead of 100% have to show 1

 legend: {
 position: 'labeled',
 pieSliceText:"value"                                    
 },

推荐答案

传说选项没有财产 pieSliceText pieSliceText 是整个饼图的选项。似乎没有选择传说中关闭%,但你可以彻底关闭Legend采用:

legend option has no property pieSliceText. pieSliceText is option of whole pie chart. It seems that there is no option to turn off % in legend but you can turn off legend completely using:

      legend: {
          position: 'none'
      }

和建立你自己的。如何在<一个答案描述完成href=\"http://stackoverflow.com/questions/20089794/how-to-add-percentage-and-total-on-the-legend-of-google-pie-charts\">How添加在谷歌饼图传说百分比和总。您可以显示与其他信息和造型你自己的文字。

and build your own. How it is done is described in answer of How to add Percentage and Total on the Legend of Google Pie Charts. You can show your own text with additional information and styling.

这篇关于谷歌饼图传奇式标记显示比例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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