How to Apply Pattern to Bar Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
thomaskvillar
Posts: 1
Joined: Mon Oct 21, 2019 4:57 am
antibot: No, of course not.

How to Apply Pattern to Bar Chart

Post by thomaskvillar » Mon Oct 21, 2019 4:59 am

I'm attempting to apply patterns(slanted lines or stripes) to the data in my bar charts. Currently I've applied custom colors to the bars but I need to apply two other unique features in addition to that. I was thinking Patterns and Stroke. One idea I had was to overlay an image on top of each bar. The image would contain the pattern itself with no background so the bar colors would show through. Any help would be greatly appreciated on this.

Thanks!

John Matthews
Posts: 487
Joined: Wed Sep 12, 2007 3:18 pm

Re: How to Apply Pattern to Bar Chart

Post by John Matthews » Mon Nov 18, 2019 11:35 am

As suggested here, you might look at returning a TexturePaint from your DrawingSupplier.

Post Reply