Legend Title Problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yakin_thakkar
Posts: 2
Joined: Wed Mar 07, 2007 1:51 am

Legend Title Problem

Post by yakin_thakkar » Wed Mar 07, 2007 1:55 am

Hello,
I want to change size of the legend items bullet (Filled Rectangle Shape) in legend....
I changed font size of legend items but not able to change size of legend item bullet...
Can anyone tell me how to do that???

yakin_thakkar
Posts: 2
Joined: Wed Mar 07, 2007 1:51 am

I've solved it..

Post by yakin_thakkar » Wed Mar 07, 2007 4:19 am

I solved it

manube
Posts: 5
Joined: Wed Aug 08, 2007 4:24 pm
Location: Nice, France
Contact:

Post by manube » Wed Sep 05, 2007 10:58 am

Hello,
I've got the same pb, please can you explain how you solved it.
Thanks

lucas luky
Posts: 14
Joined: Wed Sep 12, 2007 7:05 pm

Post by lucas luky » Mon Sep 17, 2007 11:46 pm

Code: Select all

XYItemRenderer shapeRenderer = plot.getRenderer();
shapeRenderer.setShape(new Rectangle(-3,-3,20,20));

if u're working with XYSeries which have many lines, you can play with:
renderer.setSeriesShape(numberOfTheSerie, yourShape)

manube
Posts: 5
Joined: Wed Aug 08, 2007 4:24 pm
Location: Nice, France
Contact:

Post by manube » Tue Sep 18, 2007 8:42 am

Hello,

Thanks for your answer but I'm working with CategoryItemRenderer and none of the following methods seems to update the legend item bullets:

Code: Select all

renderer.setShape(new Rectangle(200,200)); 
renderer.setSeriesShape(0, new Rectangle(200,200));
renderer.setBaseShape(new Rectangle(200,200));
Perhaps have you another idea?? :roll:

Thanks

Locked