Skip to content

Conversation

hannesa2
Copy link
Collaborator

@hannesa2 hannesa2 commented Jul 27, 2025

@hannesa2
Copy link
Collaborator Author

@Jean-BaptisteC feel free to continue here.
Unfortunately it comes with a build error

@hannesa2 hannesa2 force-pushed the markers-list branch 3 times, most recently from 10613bc to cf63457 Compare July 27, 2025 11:14
@hannesa2 hannesa2 merged commit 3894a17 into master Jul 27, 2025
2 checks passed
@hannesa2 hannesa2 deleted the markers-list branch July 27, 2025 12:36
@Jean-BaptisteC
Copy link

Thanks a lot for your fix

@hannesa2
Copy link
Collaborator Author

Here you go https://github.com/AppDevNext/AndroidChart/releases/tag/3.1.0.29

@@ -789,10 +791,12 @@ protected void drawMarkers(Canvas canvas) {
}

// callbacks to update the content
mMarker.refreshContent(e, highlight);
int markerIndex = i % mMarkers.size();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannesa2 This crashes the chart if mMarkers.size() is 0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, that's an issue

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the fix #389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants