Skip to content

How to change price's precision/decimal places? #697

Answered by timocov
timocov asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it's possible. To change format of your series' data you need to override price format for your series by changing/applying options.

For example, if you'd like to show 6 digits after a comma you can use the following options:

series.applyOptions({
    priceFormat: {
        type: 'price',
        precision: 6,
        minMove: 0.000001,
    },
});

Also, you can look at this test case for more complete example.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@rusinov-artem
Comment options

@timocov
Comment options

Answer selected by timocov
Comment options

You must be logged in to vote
1 reply
@groehm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants