Custom view of Limit Line in MPAndroidChart

前端 未结 2 1475
北恋
北恋 2020-12-06 06:31

Is it possible to replace LimitLine with custom layout? So it looks something like this:

I see few solutions for that:

  1. Perhaps t
2条回答
  •  时光说笑
    2020-12-06 06:58

    
    
        
    
        
    
            
            
    
        
    
    
    

    Use ViewPortHandler to get offset of chart

        float offsetTop = mChart.getViewPortHandler().offsetTop();
        float offsetLeft = mChart.getViewPortHandler().offsetLeft();
        float offsetRight = mChart.getViewPortHandler().offsetRight();
        float chartHeight = mChart.getViewPortHandler().contentHeight();
    

提交回复
热议问题