I'm a new user of Open Flash Chart, an happy one!!
I've got a question about candle chart but I don't kwon if it is an "Help me" or a "New Feature" question.
I want to draw financial graph, so for this reason your candle chart is very userful.
What' is the problem?
Usually in stock graph positive bars are colored in green and negative bar are colored in red.
This now is not possible (I think) with OpenFlashChart becauseyou can set only one color for the chart type.
I try to define a trick, setting two candle object, one colored in green and one colored in red using this sintax:
if($open >= $close){
$dataRed[] = new candle_value(
number_format($high, 2),
number_format($open, 2),
number_format($close, 2),
number_format($low, 2)
);
$data[] = null;
}else if($open < $close){
$data[] = new candle_value(
number_format($high, 2),
number_format($open, 2),
number_format($close, 2),
number_format($low, 2)
);
$dataRed[] = null;
}
The problem is that once the graphic in show the "null" candle "use" space but rightly nothing is shown.
Is there any way to make them invisible?
I upload two images to make more clear my problem: one with the chart with only a candle data with all candles colored in black and a second one with two candle oblect defined (red and greed). As you can see there is too much space between candle.
