Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make labelPosition support segmentIndex callback function #257

Open
mledwards opened this issue Dec 19, 2022 · 1 comment
Open

Make labelPosition support segmentIndex callback function #257

mledwards opened this issue Dec 19, 2022 · 1 comment

Comments

@mledwards
Copy link

mledwards commented Dec 19, 2022

I'd like for one of my labels to be nearer the end of the segment, but it doesn't look like labelPosition allows a callback function like the labelStyle does. I could create a PR for this?

Does anyone know a workaround?

@toomuchdesign
Copy link
Owner

Hi @mledwards, thanks for writing! Yes, I assume we could give it a try.
Would you like to open a PR to make labelPosition accept both a value and a callback function? Callback functions should be implemented with existing the functionProp utility.

Last but not least, docs and tests should be updated, too ✌️

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

No branches or pull requests

2 participants