简体   繁体   English

带有线条的Google API饼图

[英]Google API pie chart with lines

Does anyone know or it's possible to get the labels outside the Google API pie chart and not IN it? 有谁知道,或者有可能将标签放在Google API饼图之外而不是标签中? I know it's possible with the image version: https://chart.googleapis.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello|World 我知道使用图片版本是可能的: https : //chart.googleapis.com/chart?chs=250x100&chd=t : 60,40&cht=p3&chl=Hello|World

But I like to get it work with this version (with the lines like the previous link, would be nice): https://google-developers.appspot.com/chart/interactive/docs/gallery/piechart 但是我想让它与此版本一起使用(像上一个链接那样,很不错): https : //google-developers.appspot.com/chart/interactive/docs/gallery/piechart

I found it: 'labeled' - Draws lines connecting slices to their data values. 我找到了:'labeled'-绘制将切片连接到其数据值的线。 See legend.position at https://google-developers.appspot.com/chart/interactive/docs/gallery/piechart#Configuration_Options 请参阅https://google-developers.appspot.com/chart/interactive/docs/gallery/piechart#Configuration_Options上的 legend.position

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM