Legend on a separate SWT control

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rupi
Posts: 8
Joined: Thu May 07, 2009 1:38 pm

Legend on a separate SWT control

Post by rupi » Sun Jun 05, 2016 6:45 pm

I would like to draw the legend on a separate SWT control and not on the chart. I was hoping that this would be possible but I am not sure. If yes, does anybody have any pointers ?

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

Re: Legend on a separate SWT control

Post by John Matthews » Mon Jun 06, 2016 12:04 pm

Use the plot's getLegendItems() method. There's a Swing example here.

Locked