Skip to content

Commit f360887

Browse files
authored
Merge pull request #328 from StainlessStlRat/master
Disable drawing a marker on data that has been set to not visible
2 parents 6484d8e + b3d33e3 commit f360887

File tree

1 file changed

+3
-0
lines changed
  • MPChartLib/src/main/java/com/github/mikephil/charting/charts

1 file changed

+3
-0
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/charts/Chart.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,9 @@ protected void drawMarkers(Canvas canvas) {
762762
for (Highlight highlight : mIndicesToHighlight) {
763763

764764
IDataSet set = mData.getDataSetByIndex(highlight.getDataSetIndex());
765+
if (!set.isVisible()) {
766+
continue;
767+
}
765768

766769
Entry e = mData.getEntryForHighlight(highlight);
767770

0 commit comments

Comments
 (0)