Page 1 of 1

How to change the border color of the candle?

Posted: Sun Apr 03, 2005 7:47 am
by Calio
Hi,

I am using JFreeCharts0.9.21 to develop a stock analysis application. In my candle stick chart, I have set the up paint and down paint in the following way.

candlestickRenderer.setCandleWidth(4.0);
candlestickRenderer.setUpPaint(Color.RED);
candlestickRenderer.setDownPaint(Color.BLUE);

In my candle stick chart, the body color displays the color as what I have set. However, it contains the orange border. How can I change it to the same color as its body?

Kindly help please.

Your's,
Calio

Posted: Wed Aug 03, 2005 4:10 pm
by AugustoRocha
jfreechart.getXYPlot().getRenderer().setSeriesPaint(0,Color.decode("#0066CC"));

Change Series Color
:P

Posted: Tue Aug 09, 2005 3:42 am
by Guest
Thanks a lot. Another question is:Can I draw the border as the same color as the candlestick's?