Rounding values on Y axis and aligning zero.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ahmetalpbalkan
Posts: 3
Joined: Mon Aug 02, 2010 9:09 am
antibot: No, of course not.

Rounding values on Y axis and aligning zero.

Post by ahmetalpbalkan » Mon Aug 02, 2010 9:14 am

Hi guys I have 2 problems.

First of all I have all values 0 on my bar chart. But bars are centered vertically on the chart. See below:
Image

I want to align bars to the bottom if all values are zero.

SOLVED::Another problem is about rounding values on Value Axis.

Image

For the chart above, there are just 0 and 1 values. However it has fractal values in the chart. I want only 0 and 1 to be visible. It occurs even on min:0 max:10, and shows labels such as 2.5 5.0 7.5 10.0, in this case I want just rounded integers to be visible.

Any ideas? :cry:
Thanks.
Last edited by ahmetalpbalkan on Thu Aug 05, 2010 12:14 pm, edited 1 time in total.

pooo
Posts: 9
Joined: Tue Jul 13, 2010 2:04 pm
antibot: No, of course not.

Re: Rounding values on Y axis and aligning zero.

Post by pooo » Mon Aug 02, 2010 10:18 am


ahmetalpbalkan
Posts: 3
Joined: Mon Aug 02, 2010 9:09 am
antibot: No, of course not.

Re: Rounding values on Y axis and aligning zero.

Post by ahmetalpbalkan » Thu Aug 05, 2010 12:14 pm

This solved the rounding problem.

What about the alignment of all zeros to the bottom?

ahmetalpbalkan
Posts: 3
Joined: Mon Aug 02, 2010 9:09 am
antibot: No, of course not.

Re: Rounding values on Y axis and aligning zero.

Post by ahmetalpbalkan » Tue Aug 10, 2010 4:42 pm

Hey guys this is a serious problem? Why can't I align bars to the bottom if all values are zero?

Locked