AChartEngine不显示的最大图表值 - 柱状图 [英] AChartEngine does not display the maximum chart value - Bar Chart

查看:427
本文介绍了AChartEngine不显示的最大图表值 - 柱状图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作Achart引擎和我面临的2个问题

I am working on Achart Engine and i am facing 2 issues

问题
1)在公布的屏幕截图在这里<一个我面对完全一样的问题href=\"http://stackoverflow.com/questions/14048709/achartengine-does-not-display-the-maximum-chart-value\">displaying最大图表值Y轴

2)中的3条假设,如果我在酒吧中的一个是0说中间一则栏将不会被绘制并显示了两个栏之间的空白,但我不希望显示一些空间。

2) suppose in the 3 bars if i one among the bar is 0 say middle one then the bar will not be drawn and shows blank between the two bars, but i dont want to show some space.

在什么样的问题,我想acheive:

On Issues what i want to acheive:

第1期)我YMAX值是50,我可以在Y最大值为60,这样的最大值显示,不会cut.But会发生什么,现在它在显示10,20,30,40,50 Y轴,但如果我让60则显示20,40,60,但我希望它显示10,20,30,40,50,60。

Issue 1) My Ymax value is 50 ,i can make the Y max value to 60 so that the max value is displayed and will not cut.But what happens is now its display 10,20,30,40,50 in Y axis but if i make it 60 it displays 20,40,60 but i want it to display 10,20,30,40,50,60.

第2期)如果中间栏值为0或任何其他的酒吧值,它是平局是0,那么我不想显示的空间还是存在不绘制条都没有。

Issue 2) If the middle bar value is 0 or any other bar value which is draw is 0 then i dont want to show a space there or dont draw the bar at all.

请帮我达致这。

编辑:

截屏:

我不能在这里,所以我在这里张贴发布的屏幕截图缺乏信誉的,请看到它

I cannot post a screen shot here lack of reputation so i am posting it here please see to it

图片

推荐答案

就在Y轴最大值设置的东西,比最大的价值越高。

Just set the Y axis maximum value to something that is higher than the biggest value.

与零值条形图。如果没有比被添加任何价值只使用 MathHelper.NULL_VALUE

Bar charts with value of zero must be displayed. If there isn't any value to be added than just use MathHelper.NULL_VALUE.

这篇关于AChartEngine不显示的最大图表值 - 柱状图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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