怎样在柱状图当中显示多个markerview?
我需要对柱状图中的部分数据做一个标记显示出来,但是不知道怎样同事显示多个,貌似只能显示一个markerviwe?有人做过吗?怎么实现?
https://github.com/PhilJay/MPAndroidChart/wiki/How-not-to-contribute
How NOT to contribute:
- ...
- Using a language other than English (preferred) or German (if necessary)
- ...
Hi , if you want to draw a custom marker view , you could override draw method
public class CustomMarkerView extends MarkerView {
...
@Override
public void draw(Canvas canvas, float posx, float posy) {
/*your code*/
}
}
Also it's possible to plot multiple markers , you could use highlightValues method
public void highlightValues(Highlight[] highs)
For more details , see wiki
Maybe you don't want to draw highlight indicators , try this dataset.setDrawHighlightIndicators(false);
哥们,超屌,我们中国人要顶起来
多个markView可能要自定义了。对点击事件重写一下
@xiaolongonly 菜鸡不会~
菜鸡不会~菜鸡不会~菜鸡不会~菜鸡不会~菜鸡不会~
菜鸡不会菜鸡不会菜鸡不会菜鸡不会菜鸡不会~
MDZZ ┑( ̄Д  ̄)┍ @Saloed123 @yangyiRunning
。。。。。。
继承Chart,定义多个MarkView属性,重写Chart的drawMarkers()方法。