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

Realign marker text if cut by fixed edge #1670

Open
edew opened this issue Aug 6, 2024 · 0 comments
Open

Realign marker text if cut by fixed edge #1670

edew opened this issue Aug 6, 2024 · 0 comments

Comments

@edew
Copy link
Contributor

edew commented Aug 6, 2024

Is your feature request related to a problem? Please describe.

As asked in #1577 there is no way to currently align labels so that they are not cut when near a fixed edge.

In the case that the edges are not fixed this is OK since the chart can be scrolled to view the full text. With fixed edges this is not possible.

See the images below for examples:

image

image

Describe the solution you'd like

When rendering marker text, if the "half-width" of the text is greater than the number of pixels between the marker's data point and the edge of the chart then the marker should be shifted to the left/right so that all the text is visble.

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

No branches or pull requests

1 participant