Interactive overlaid plot

A free public discussion forum for the JFreeChart class library.

Interactive overlaid plot

Postby raghavan_26 » Fri Nov 10, 2006 6:17 am

Hi all,
I was able to get an overlaid xyline plot and xyplot (points ) ,
i want to make my xy line plot interactive I mean I must be able to move the xylines in the graph is that possible using jfreechart.

I just want to make my doubt clear by this example.

Suppose i have a 45 degree line and the points above are blue and below are red. When I move the 45 degree line to 70 degrees, The points color should also change. I want to know whether I can move the line in this way using jfreechart. If so, Can you please tell me how to do or some cool link.

Thanks in advance,
Posts: 59
Joined: Fri Oct 13, 2006 11:35 am

Postby david.gilbert » Fri Nov 10, 2006 10:25 am

JFreeChart won't do this for you, but it could be done using your own code. It would probably be easiest to draw the draggable line over top of the chart, and use a custom renderer in the chart that knows the location of the line and can change the color of the data items accordingly.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
JFreeChart Project Leader
Posts: 11293
Joined: Fri Mar 14, 2003 10:29 am

Return to JFreeChart - General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 22 guests