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

Series title obfuscates the chart line #1675

Open
frontier159 opened this issue Aug 14, 2024 · 2 comments
Open

Series title obfuscates the chart line #1675

frontier159 opened this issue Aug 14, 2024 · 2 comments

Comments

@frontier159
Copy link

Lightweight Charts™ Version: 4.1.6

Steps/code to reproduce:

Set the title of a right series, with fixRightEdge: true

Actual behavior:

The title for the right series is on top of the line at the default scale

Expected behavior:

The title shouldn't overlap the actual line. Alternatively an option to have the title always be on the left hand side even for a right series

Screenshots:

image
@SlicedSilver
Copy link
Contributor

You could try increasing the rightOffset value on the time scale options so that the chart will leave more space on the right edge.

This value is specified in 'number of bars' (data points) and not a normal length like pixels. So the amount of space that you need to leave is dependent on the zoom level (barSpacing). More details in this answer: #1622 (comment)

@frontier159
Copy link
Author

frontier159 commented Aug 15, 2024

Thanks @SlicedSilver - I think I found the issue. If fixRightEdge: true, then the rightOffset isn't obeyed.

Could this please be confirmed and if so added to the backlog to fix?

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

2 participants