how to get axis bounds

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Karthicks
Posts: 20
Joined: Wed Mar 26, 2003 1:29 pm
Location: Chennai , India

how to get axis bounds

Post by Karthicks » Tue Feb 12, 2008 4:25 pm

Dear Jfreechart Users and Developers ,
We are using Jfreechart to generate chart as image in our web service (http://db.zoho.com). We use entity collection feature to show tooltip , url etc.
Similar to entity collection do you have any API to get ValueAxis/categoryAxis Bounds (java shape). Using that we can generate a div/image map area tag etc to handle click over axis.
I gone through your axis code i think there is no direct API. Is there any shortcuts to get the shape of axis area?

S.Karthick
For zohoDB

mhilpert
Posts: 497
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Post by mhilpert » Tue Feb 12, 2008 5:11 pm

See DatasetUtilities.findMaximumDomainValue(), etc.
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0

Karthicks
Posts: 20
Joined: Wed Mar 26, 2003 1:29 pm
Location: Chennai , India

Post by Karthicks » Wed Feb 13, 2008 6:39 am

Dear mhilpert ,

You got it wrong. API you specified just returns the maximum value in the dataset. I required Java Graphics Paint Area of Axis i.e I need axis bounds in terms java graphics shape.

S.Karthick

Locked