JFreechart XYPlot DataArea

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
deryaaltuntas
Posts: 4
Joined: Thu Dec 15, 2011 10:31 am
antibot: No, of course not.

JFreechart XYPlot DataArea

Post by deryaaltuntas » Tue Mar 06, 2012 2:11 pm

You know that getPreferredSize method exists for ChartPanel.I want a similar method for XYPlot.Because I have a background image, I will scale image for each plot size change in ChartPanel.XYPLot width is not important for me.I want to scale height of background. So I need to have size of XYPlot.

Changes can be Windows resize changes, also you know that XYPlot size is affected from domainAxis items, Legend items.

P.S: I know that I can read plot info in ChartEvent getScreenDataArea method.I want to have coordinates without trigger mouse event.
Without a mouse event, getScreenDataArea() method does not return values.I can not understand why it does not return.I must able toi

You can say this post is cross-posted.But I can not find any answer to my problem for a while.So I am bored :cry: .

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: JFreechart XYPlot DataArea

Post by John Matthews » Wed Mar 07, 2012 10:48 am

Cross-posted here.

Locked