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

查看:34
本文介绍了在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天全站免登陆