I go through the wiki when you linked, and even more than that, I tried the code below, different from the previous one,
Highlight h = new Highlight((int) valIndex, 0); linechart2.highlightValue(h); mv2.refreshContent2(valueYAxis.get((int) valIndex), h); linechart2.getMarkerView(); linechart2.setDrawMarkerViews(true); linechart2.getData().setHighlightEnabled(true);
the result is still unsuccessful, the marker never appears. I am doing research in a single step according to your example code code. It shows after touching the event, the program immediately goes to refreshContent and goes to the offset function x and y after that, and the marker just pops up. But my script, which I mentioned earlier, will not touch the touch event, but presses a button where my graph will be displayed and indicate, indicating the location point relative to the time that the end user is looking for. So I manually added refreshContent2 (the same as the refreshContent function in the MarkerView class) to emulate the process, but after that I found that it never goes and gets the offset function x, y, which is different from your example. Viewing a marker never appears, because of this, am I suspicious?
Han whiteking
source share