开发者

google chart problem

I am using google gwt visualizations chart in gwt application.

I want to show only 2d chart.

but the following problems come.

.

In colums chart

it show scale like 0.0 , 10.4 ,40.5 ....

how to customize the Change scale of the graph. scale should uniform . f开发者_如何学运维or example if highest number is more than 400 then it should be 0 , 100, 200 ,300 and if it is 90 then it should be 0 ,20,40,60,80

in piechart

it shows percentage on the slice want to show the actual value.

Thanks In advance


Concerning the column chart, I've never seen that behavior. Maybe it comes from the way you build your data ?

In contrast, about your piechart's question, if you have the last version of gwt visualization (1.1.1), in the PieChart.PieOptions class, there is a method named setPieSliceText(String text).

This method takes 4 possible parameters :

  • percentage : to display the percentage value
  • value : to display the quantitive value of the slice
  • label : to display the name of the slice
  • none : I think it's obvious ;)

If you don't have the last version and if you can't make the upgrade, just extend the static class PieOptions and implement the native method by yourself.

I hope it helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜