zoom on category chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
tatia34
Posts: 23
Joined: Fri Apr 27, 2007 2:11 pm
Location: France

zoom on category chart

Post by tatia34 » Tue May 22, 2007 3:27 pm

Hi,

On category chart, the width of the zoom rectangle is fixed at the chart width...

is it possible to have a zoom like on time chart : zoom of just a part of the x axes... ?

thank you, tatia34

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 » Tue May 22, 2007 4:21 pm

No, because at present the CategoryAxis does not support any form of zooming - so the zoom function for the CategoryPlot only relates to the value axis.
David Gilbert
JFreeChart Project Leader

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

loopyzort
Posts: 2
Joined: Fri Nov 23, 2007 11:28 pm

Post by loopyzort » Fri Nov 23, 2007 11:46 pm

Hello,

I'd like to bump this for a bit more information. We are in a similar bind, we have a bar chart created using the ChartFactory.createBarChart() method. We typically have 8-10 categories, but as many as 50 data points in each category. This produces a dense chart, where the bars are only 2 or 3 pixels across, which makes it difficult to identify outliers. I'm thinking of writing my own mouse event listener to listen for changes in x coordinates and then re-draw the whole chart with a subset of the categories in the dataset, but that seems terribly inefficient. Is there any way to achieve this type of zooming with JFreeChart as it stands?

Thank you,
Todd

Locked