How to get item name from linechart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
masandeep
Posts: 5
Joined: Tue Jan 31, 2006 5:54 pm

How to get item name from linechart

Post by masandeep » Fri Feb 03, 2006 8:54 am

In my application i need to get 'item name' from XYlinechart and update my dataset according to the selected item.

I also need to have custom popup for the XYPlot .


Need your help.

dhchou
Posts: 138
Joined: Tue Jul 05, 2005 11:01 pm

Post by dhchou » Fri Feb 03, 2006 10:52 pm

You can get the series name by applying the getDescription method to the series you are using.

To customize the popup menu, you need to first create your own popup menu and then apply the setPopupMenu method to your ChartPanel.

Daniel

Locked