How can I create custom MarkerView like bellow?

you can create custom marker. refer to this link https://github.com/PhilJay/MPAndroidChart/wiki/MarkerView

the stack colum - you can use BarDataSet‘s method to setStackLabels

the marker - you can add extraData when you set charData then use Entry.getData to get that extradata


感谢老哥, 我看demo里面没有,我还以为 markerView 很垃圾呢,没想到是这么用的,学到了 @Sum41forever
Most helpful comment
the stack colum - you can use BarDataSet‘s method to setStackLabels



the marker - you can add extraData when you set charData then use Entry.getData to get that extradata