Two colors vertical bar chart for a single time series

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Sorin Comanescu

Two colors vertical bar chart for a single time series

Post by Sorin Comanescu » Tue Nov 19, 2002 11:14 am

Hello,

I have to plot one graphic for daily account balances as a vertical bar chart which must be shown as red bars for negative values and blue bars for positive values. Does anybody know how could I do this ?

Thank you.

Dave Gilbert

Re: Two colors vertical bar chart for a single time series

Post by Dave Gilbert » Wed Nov 20, 2002 6:30 pm

You would need to write a custom renderer. It wouldn't be that difficult, just base it on the code in VerticalBarRenderer.java. I'll look at incorporating this as a feature before 1.0.0.

Regards,

DG

Locked