简体   繁体   English

在Android中使用“ Google 3D饼图API”为图表的各个部分着色

[英]Color the portions of chart using “Google 3D Pie chart API” in Android

I am using the link given below to show pie chart in my android application successfully, but now I want to color the each portion as my desire of the chart. 我正在使用下面给出的链接在我的android应用程序中成功显示饼图,但是现在我想为每个部分着色,作为我对图表的期望。

What do I have to do? 我需要做什么? I have to pass any extra parameter with this URL. 我必须使用此URL传递任何其他参数。

在此处输入图片说明

I have got the solution ... 我有解决方案...

Visit the following Link : https://developers.google.com/chart/image/docs/gallery/pie_charts 访问以下链接: https : //developers.google.com/chart/image/docs/gallery/pie_charts

And add this part of code in your URL "&chco=FFFF10,FF0000,FF00FF" this will work like charm for you. 并将这部分代码添加到您的网址“&chco = FFFF10,FF0000,FF00FF”中,这对您来说就像是魅​​力。

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

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