Bar Chart Negative Values Orientation

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

Bar Chart Negative Values Orientation

Postby 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
serhat.agirbas
 
Posts: 2
Joined: Thu Oct 19, 2017 11:14 am

Re: Bar Chart Negative Values Orientation

Postby 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.
paradoxoff
 
Posts: 1619
Joined: Sat Feb 17, 2007 1:51 pm

Re: Bar Chart Negative Values Orientation

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

Thanks,

It is OK now.
serhat.agirbas
 
Posts: 2
Joined: Thu Oct 19, 2017 11:14 am


Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 11 guests