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

Individual candle color #307

Open
lukaIvanic opened this issue Feb 27, 2024 · 0 comments
Open

Individual candle color #307

lukaIvanic opened this issue Feb 27, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@lukaIvanic
Copy link

lukaIvanic commented Feb 27, 2024

Question

I don't know if this is mentioned anywhere in the documentation, I myself couldn't find how to change color to individual candles, but it's really simple, taken from https://tradingview.github.io/lightweight-charts/tutorials/customization/data-points

Along with the date, open, high.. just add a column 'color', I think hex works and RGB, but names work as well like 'orange'.

I know this is not a question, but a tip just in case anyone else was wondering how to do it.

I haven't figured out how to not have a color tho, if I leave the color option empty, for example:

0,2019-01-05 00:14:59,151.98,152.88,151.97,152.4,5529.60916,
1,2019-01-05 00:29:59,152.39,152.43,151.32,151.59,9467.52694,orange
2,2019-01-05 00:44:59,151.59,152.88,150.8,152.2,7495.3826,
3,2019-01-05 00:59:59,152.2,152.6,151.91,151.97,5290.10071,orange

It just takes the color of the last available bar color, in this case, everything would be orange

Code example

No response

@louisnw01 louisnw01 added the documentation Improvements or additions to documentation label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants