Bar charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
SamiLakka
Posts: 8
Joined: Tue May 02, 2006 2:22 pm

Bar charts

Post by SamiLakka » Tue May 02, 2006 2:28 pm

Hi,


I have created an bar chart and I have an whole bunch of periodic data that I need to display in it. Basically I need to show how the bar lengths vary in time. The problem is that the chart changes the scale of the domain-axis every time I put new measurement in the screen. What I would like to do is to fix the scale to the highest measurement that I have so that the domain axis wouldn't change between measurements. How can I achieve this?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed May 03, 2006 6:40 am

By default, JFreeChart automatically calculates the axis ranges to match the dataset. But you can specify a fixed range by calling the setRange() method on the axis.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked