androidmpandroidchart

remove dotted line when we click on data in lineChart of MPAndroidChart


When i click on the data in map then it's automatically draw a line vertically and horizontally. I have tried everything with all properties but still not able to remove that. How can i remove that line??

please find the attached screenshot

I want to remove those linke where we have label of 42 there we have horizontal and vertical line


Solution

  • Try:

    mChart.getData().setHighlightEnabled(false);
    

    Here is the javadoc for that method:

    void setHighlightEnabled(boolean enabled)

    Enables / disables highlighting values for all DataSets this data object contains.