Skip to content

Display highlighted entry values on the axes - #5249

Closed
yaugenka wants to merge 1 commit into
PhilJay:masterfrom
yaugenka:patch-4
Closed

yaugenka wants to merge 1 commit into
PhilJay:masterfrom
yaugenka:patch-4

Conversation

@yaugenka

@yaugenka yaugenka commented Jan 19, 2022

Copy link
Copy Markdown

Resolves #222, Resolves #3879, Resolves #3872, Resolves #3669, Resolves #3550, Resolves #3352, Resolves #3269.

If y-axis uses the default value formater then the highlighted label value will be of the same precision as the normal labels.
Highlighted labels width is not taken into account when the longest label is calculated. That means if an y-axis highlighted label is longer than the normal labels it will get out of the axis bounds.

XAxis offsets computation has been moved from Utils.drawXAxisValue into a separate function to make it accessable to XAxisRender.drawHighlightLabels.

Inspired by PR #4477.

@Paget96

Paget96 commented Dec 11, 2022

Copy link
Copy Markdown

I really like this library and using it in my apps, I would like to call people to continue with this awesome thing. I have forked the repo and started working on it! So I am ready as well to accept pull requests, I'll notify other people from here as well!
Would be more than happy if we continue with this awesome project.

Code is full kotlin now!

Make your pull requests here:
https://github.com/Paget96/MPAndroidChart

@PhilJay

PhilJay commented Sep 20, 2026

Copy link
Copy Markdown
Owner

The most requested of the feature PRs, but it changes AxisRenderer.renderAxisLabels to take the highlights, which breaks every custom renderer, and the guides document subclassing renderers. Worth doing with a different API. Thank you for taking the time. Closing.

https://github.com/PhilJay/MPAndroidChart/releases/tag/v4.0.0-beta01

@PhilJay PhilJay closed this Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants