MPAndroidChart set center vertical line
问题 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 (the orange date field). And it can move left or right programmatically by click on arrow button. Currently, I can set viewport and allow moving to center with this code: LineData data = new LineData(xVals, dataSets); mChart.setScaleMinima((float) data.getXValCount() / 7f, 1f); mChart.moveViewTo(0, 7, YAxis.AxisDependency.LEFT); And get the result: How can I