A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
lgarcia3
- Posts: 43
- Joined: Thu Jul 21, 2005 4:00 pm
Post
by lgarcia3 » Mon Feb 06, 2006 6:44 pm
I need to copy a series from an existing plot to a new plot. To do that what I do is to get my series as a
and then pass it to the other plot. That all is fine. The problem is that when it is in my second plot I need to change the title in the legend. I do that by changing the key in the second plot. Now, when I go back to my first plot the legend has changed as well. How can I solve that? It looks like it is a pass-by-value issue.
-
lgarcia3
- Posts: 43
- Joined: Thu Jul 21, 2005 4:00 pm
Post
by lgarcia3 » Mon Feb 06, 2006 6:52 pm
Never mind, I got it. I just cloned the object and manipulated it.
Thanks!