How to set Bar outline?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
skkuchipudi
Posts: 23
Joined: Mon Sep 18, 2006 10:08 am
Location: Mumbai, India
Contact:

How to set Bar outline?

Post by skkuchipudi » Thu Oct 05, 2006 8:00 am

HI,

Can Anyone plese give me the suggestion to set the Bar Out line with thick black color.

I have the Bar with two different colors, but that bar is displaying only colors, but i need outline also


regards,
Sumant

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Oct 05, 2006 2:19 pm

The BarRenderer class has a method setDrawBarOutline(boolean). Make sure you have this flag set to true (which is the default, but maybe you've changed it).

Then you can control the stroke and paint used to draw the outline by calling:

- setSeriesOutlinePaint(int, Paint);
- setSeriesOutlineStroke(int, Stroke);
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked