I want linechart as follows. I want to show only specified point (blue circled should be there) (red circled should not be there).
<a href="https://i.stack.imgur.com/qH2wM.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/qH2wM.png" data-original="https://i.stack.imgur.com/qH2wM.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>Answer1:
I think of 2 methods.
First: disable all points and values with
Then add another
LineDataSet to the
LineChart only containing that one point for the Maximum.
This solution causes an additional entry in the Legend.
The other solution would be a custom
MarkerView like described <a href="https://stackoverflow.com/questions/38100511/how-can-i-draw-a-circle-on-highlight-point-in-line-chart" rel="nofollow">here</a>
To do that first of all set your point colors to transparent as:
Then after that Highlight specific point as:
Highlight highlight = new Highlight(50f, 0); chart.highlightValue(highlight, false);
Insert your point instead of (50f,0). Never tried just think that we may do this in that way.Try this and do let me know if it works buddy :)