Advertisement

05.14.2008 at 02:16AM PDT, ID: 23400683
[x]
Attachment Details

Custom Image Legend Renderer in JFreeChart?

Asked by TimYates in Java Programming Language

Tags: Java, jfreechart

Hi all!

I have created my own renderer in JFreeChart (extending XYLineAndShapeRenderer) to draw images at the given locations on the chart

This works well

But the legend shows a default red box next to the series name.  Does anyone know how to override this functionality to draw a small version of my image in the legend instead?

I am guessing I need to extend LegendGraphic at some point, but I cannot see where I should fit this in...

Cheers

TimStart Free Trial
 
Loading Advertisement...
 
[+][-]05.14.2008 at 05:40AM PDT, ID: 21563423

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 06:42AM PDT, ID: 21564034

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:12AM PDT, ID: 21564399

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: Java, jfreechart
Sign Up Now!
Solution Provided By: SprudeVI
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.14.2008 at 07:45AM PDT, ID: 21564771

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628