It is currently Mon Sep 01, 2014 3:36 pm Advanced search

how to set color of individual ohlc or candle

Technical support for the Highcharts Stock package

how to set color of individual ohlc or candle

Postby anuraag » Sat Jul 14, 2012 10:56 am

hi
how can we set color of individual ohlc or candle point based on any condition set by me
anuraag
 
Posts: 13
Joined: Fri Jul 15, 2011 1:13 pm

Re: how to set color of individual ohlc or candle

Postby anuraag » Mon Jul 16, 2012 6:33 am

anyone has a solution to this ?.. it is very critical to show red / green ohlc bars or full colored candle wick ( not just black border, but red/green borders), so it is easy to view for large set of data
anuraag
 
Posts: 13
Joined: Fri Jul 15, 2011 1:13 pm

Re: how to set color of individual ohlc or candle

Postby hfrntt » Tue Jul 17, 2012 3:41 pm

You can pass a point data as a "configuration object". Learn more in the doc: http://www.highcharts.com/stock/ref/#series--data

Here you can find the simplest demo: http://jsfiddle.net/9KbTy/1/
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: how to set color of individual ohlc or candle

Postby anuraag » Mon Jul 23, 2012 12:31 pm

but i am pushing the data dynamically, something like :

data.push({ x: 1122595200000, open: 43.56, high: 44.38, low: 42.26, close: 42.65, color: 'red'});

but that does not display any chart at all then, some error on my part or something?
and just like in candle the upcolor / downcolor is there for uptick/downtick, can't the same option be there for OHLC also ?

also i want to color the whole candle wick border also red / green acccordingly instead of the 'black' candle border, how could that be done
anuraag
 
Posts: 13
Joined: Fri Jul 15, 2011 1:13 pm

Re: how to set color of individual ohlc or candle

Postby Fusher » Mon Jul 23, 2012 2:55 pm

All not supported ideas can be added here: http://highcharts.uservoice.com/forums/55896-general
If your chart doesn't display at all - set higher turboThreshold: http://www.highcharts.com/stock/ref/#pl ... oThreshold
Paweł Fus
Highcharts support team
Fusher
 
Posts: 6943
Joined: Mon Jan 30, 2012 12:16 pm


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 6 guests