lightweight-charts
lightweight-charts copied to clipboard
Add a possibility to hide all fractional zeros on a price axis marks
Is your feature request related to a problem? Please describe.
Add a possibility to hide all fractional zeros on a price axis marks if all numbers after decimal point are zeros
Describe the solution you'd like
Add an option like tryCutFractionalZeros: boolean
that is disabled by default. If this option is enabled the library should try to cut non-valuable fractional parts if possible.
Additional context
https://tradingview.github.io/lightweight-charts/docs/api/interfaces/PriceFormatCustom#formatter
I know about custom formatter, but that's not what we need. We want to hide fractional part in price marks if all marks have zero fractional part, otherwise we want to show it
@kirchet should we close this issue?
Yes, we can close this issue