如何使用achartengine设定条宽。我的最后一棒被挤出 [英] How to set bar width using achartengine. My last bar is Squeezed out

查看:230
本文介绍了如何使用achartengine设定条宽。我的最后一棒被挤出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3所示酒吧柱状图。不同宽度的显示三道杠。如何相等宽度设置为所有的酒吧?

I have a barchart with 3 bars shown. Three bars displayed with different widths. How to set equal width to all bars?

这是我的条形图的快照

请任何一个建议!

任何帮助将鸭preciated !!

Any Help will be Appreciated!!

推荐答案

看起来你有2个系列的数据。 One系列中有2项和绿色的只有一个项目。当你在该系列只有一个项目,它可能是有意义的使用设置线条的宽度:

It looks like you have 2 series of data. One series has 2 items in it and the green one has only one item. When you have only one item in the series, it may make sense to set the bar width using:

renderer.setBarWidth(width);

另一个解决方案是在至少两个项目添加到你的串联

Another solution is to add at least two items to your series.

这篇关于如何使用achartengine设定条宽。我的最后一棒被挤出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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