I'm working on candlesticks (highStock). Is there any function through which I can change color of individual candlesticks based on Open/close values ? by default it gives blue and white color, i.e. if opening values are greater then closing values then color will be blues , and if closing value is greater then opening values then color will be white. but i want to apply green and red color instead on blue and white. also i want to apply white color if the closing price is same as opening. any help will be highly appreciated. Thanks in Advance ;)
Asked
Active
Viewed 8,944 times
1 Answers
37
You can find your answer from the below link:
Highstock Docs for candlestick chart
Code:
plotOptions: {
candlestick: {
color: 'red',
upColor: 'green'
}
},

Benny Code
- 51,456
- 28
- 233
- 198

Dhaval Bharadva
- 3,053
- 2
- 24
- 35
-
3Thanks for this. I think you want color: 'red', upColor: 'green' of course. – Stephen Oct 24 '19 at 15:06