MPAndroidChart set center vertical line

前端 未结 3 626
我在风中等你
我在风中等你 2021-01-17 14:31

I want to set a vertical line in center of LineChart like this:

When scrolling to each point, it can notify to change the date below (

3条回答
  •  情书的邮戳
    2021-01-17 14:43

    Have you tried using getEntryByTouchPoint on your chart supplying the x and y coordinates of the center of the chart?

    public Entry getEntryByTouchPoint(float x, float y)

    returns the Entry object displayed at the touched position of the chart

提交回复
热议问题