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

Adjustable precision for legend #331

Closed
Yan-vibeit opened this issue Apr 9, 2024 · 1 comment
Closed

Adjustable precision for legend #331

Yan-vibeit opened this issue Apr 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Yan-vibeit
Copy link

Description

Would it be possible to add an option to adjust the precision of custom values presented in chart legends. I have a subchart with a custom line and the legend precision is fixed with 2 decimal places. When working with ATR values, depending on the symbol they will show as 0.00. ohlcv could also benefit from this depending on symbol.

Suggestion,

legend(visible: bool, ohlc: bool, percent: bool, precision: int, lines: bool, color: COLOR, font_size: int, font_family: str, text: str, color_based_on_candle: bool)

Apologies if this is already implemented and i missed it in the docs.

Thanks and keep up the great work you are doing!

Code example

No response

Method of implementation

No response

@Yan-vibeit Yan-vibeit added the enhancement New feature or request label Apr 9, 2024
@louisnw01
Copy link
Owner

The chart.precision method will change the price scale precision as well as the legend's precision. Is this what you're after?

@louisnw01 louisnw01 closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants