Pattern instead of colors for area charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
hank
Posts: 31
Joined: Mon May 12, 2003 10:02 am
Location: Lake of Constance, Germany

Pattern instead of colors for area charts

Post by hank » Thu Jun 17, 2004 5:27 pm

Hi

how difficult would it be to change the usage of colors by pattern?

I guess this would be done in some renderers, but where exactly, any hints?

Thanks

Heinrich

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 Jun 17, 2004 9:27 pm

Patterns are quite hard to do. You could try Java's TexturePaint class, but when I last experimented with it the results weren't great. The alternative is to write your own code that can fill arbitrary shapes with patterns...which is harder than it sounds.
David Gilbert
JFreeChart Project Leader

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

Locked