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

Automatic price prescision based on price #1782

Open
vishnuc opened this issue Jan 25, 2025 · 1 comment
Open

Automatic price prescision based on price #1782

vishnuc opened this issue Jan 25, 2025 · 1 comment

Comments

@vishnuc
Copy link

vishnuc commented Jan 25, 2025

Hi , I have charts with various price coming and its changed randomly.. is there any way to display full price in pricescale , right now its showing only 2 decimal

Image

and If I change precission its like this

	series.applyOptions({
		priceFormat: {
			type: 'price',
			precision: 6,
			minMove: 0.000001
		}
	});
Image
@illetid
Copy link
Contributor

illetid commented Jan 28, 2025

Hi @vishnuc, you use https://tradingview.github.io/lightweight-charts/tutorials/customization/price-format#setting-the-price-formatter custom price formatter, and add some logic to check the price value and have different precision for different cases

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