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
zoom on category chart
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


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
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