-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Price axis width calculated based on displayed label. #1626
Comments
The price scale width is leaving extra space because it know how much space it would require to display a non-zero label. When the user scrolls, zooms, or new data is added then it is possible that the price scale range will change. In this case it would appear buggy if the width of the price scale was always changing. If you only need to display the zero line on the chart then you could use a custom formatter and have it output a shorter label based on the input numbers.
The option you need to adjust depends on your case. You would probably want to adjust the |
Working solution here? |
When the chart is small, the blank space on the left is too large. I didn't activate lastPrice, so theoretically, all I need is calculate the width based on the displayed label.
The text was updated successfully, but these errors were encountered: