Bar Chart Negative Values Orientation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
serhat.agirbas
Posts: 2
Joined: Thu Oct 19, 2017 11:14 am
antibot: No, of course not.

Bar Chart Negative Values Orientation

Post by serhat.agirbas » Thu Oct 19, 2017 11:26 am

Hello Everyone,

I am using bar chart for negative ranged values.I set my limits between -100 and -20 negative values also.But orientation of vertical bars is from up to down when dataset is negative.I want to change this, from bottom to top but i couldn't find any solution for this.Do you have any suggestions?

Thanks,

Serhat

paradoxoff
Posts: 1632
Joined: Sat Feb 17, 2007 1:51 pm

Re: Bar Chart Negative Values Orientation

Post by paradoxoff » Thu Oct 19, 2017 11:56 am

If you afe using a CategoryPlot with a BarRenderer, call setBase on the BarRenderer, and use the lowest value in your dataset as parameter.

serhat.agirbas
Posts: 2
Joined: Thu Oct 19, 2017 11:14 am
antibot: No, of course not.

Re: Bar Chart Negative Values Orientation

Post by serhat.agirbas » Thu Oct 19, 2017 12:00 pm

Thanks,

It is OK now.

Post Reply