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

Separate formatting for crosshair and priceScale labels? #1604

Open
tropnikov opened this issue May 23, 2024 · 2 comments
Open

Separate formatting for crosshair and priceScale labels? #1604

tropnikov opened this issue May 23, 2024 · 2 comments

Comments

@tropnikov
Copy link

Is your feature request related to a problem? Please describe.

The number of decimal digits in both priceScale labels and crosshair labels is regulated with precision (or formatter) options. We have data that contains 6 decimal digits and we want to show that in full in crosshair label. So we set precision to 6 and minMove to 0.000001 (or formatter function with toFixed(6)). Setting that gives priceScale labels with a lot of zeros.

Describe the solution you'd like

Can we separate formatting for crosshair label and priceScale labels?
or
Can we trim zeros in priceScale labels? I found an issue and associated PR – #1088

Also, is there an option to set the number or priceScale labels or how frequent they are shown?

Additional context

SCR-20240523-nemy
@edew
Copy link
Contributor

edew commented May 23, 2024

Hi @tropnikov

The price scale would still need to be the full width of the crosshair so there would be blank space on the price scale.

Something like this:

image

Is that what you want?

@tropnikov
Copy link
Author

@edew Yes.

Btw, is there an option to choose the number of priceScale labels that are shown or its positions (like show only min / max price labels)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants