在android中的图形上创建一个线条滑块 [英] Creating a line slider on a graph in android

查看:217
本文介绍了在android中的图形上创建一个线条滑块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含一系列数据的图表。现在我正在试图向下面的图表添加一个滑块/线条标记。



我使用此处提供的MPAndroidChart库创建图形/图表



然而,它尚未作为发行版发布,因此您无法通过gradle或maven获取它,只能通过克隆存储库。



它将在下一个版本v2.1.0中发布,并将在下周内发布。


I have created a graph with a series of data. Now I'm trying to add a slider / line marker to the chart like the one below.

I created the graph/charts using the MPAndroidChart library provided here https://github.com/PhilJay/MPAndroidChart.

The graph seems to be working fine and good but i need a line slider like below so that when i touch on the graph the line slides and provides the values of the line intersecting the graph. Could anyone help me figure out this problem or do i have to use a different library to achieve this.

解决方案

This feature just became available: https://github.com/PhilJay/MPAndroidChart/commits/master

However, it is not available as a release yet, so you cannot get it via gradle or maven, only via cloning the repository.

It will be in the next release v2.1.0 which will be available within the next week.

这篇关于在android中的图形上创建一个线条滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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