如何添加浮动x和在MPAndroidChart浮y值 [英] How add float x and float y values in MPAndroidChart

查看:201
本文介绍了如何添加浮动x和在MPAndroidChart浮y值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 MPAndroidChart 在我的应用程序,但我的数据集系列包含浮点值(x和y数据)和图书馆使用的ArrayList<进入> 这需要浮动和int值...

I am trying to use MPAndroidChart in my app but my dataset series contains float values (x and y data) and the library use ArrayList<Entry> that need float and int values...

推荐答案

目前,当你描述它,因为在x轴的位置只能是一个整数(X-指数)。

Currently that is not possible as you describe it, since the position on the x-axis can only be an integer (x-index).

不过,你当然可以规模,截至然后再present浮动。

However, you can of course scale that up and then represent float.

这篇关于如何添加浮动x和在MPAndroidChart浮y值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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