Problem with XYDotRenderer

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yoann29
Posts: 2
Joined: Wed Apr 02, 2008 10:35 am
Location: France

Problem with XYDotRenderer

Post by yoann29 » Tue Apr 08, 2008 2:08 pm

Hey,

There's a problem with the XYDotRenderer, with this renderer it is not possible to set a serie not visible.

I think the problem is in the function DrawItem , this function doesn't take care the XYItemRendererState argument.
------------------------------
Thanks

Yoann

drizzzel
Posts: 7
Joined: Wed Aug 27, 2008 9:08 pm

Post by drizzzel » Wed Aug 27, 2008 9:12 pm

I am using JFreeChart 1.0.6 and have run into this same problem. Has anyone found the same problem, or found a solution?

Thanks,
d

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Aug 29, 2008 7:59 am

Add the following as the first lines of code in the drawItem() method:

Code: Select all

        // do nothing if item is not visible
        if (!getItemVisible(series, item)) {
            return;
        }
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

drizzzel
Posts: 7
Joined: Wed Aug 27, 2008 9:08 pm

Post by drizzzel » Fri Aug 29, 2008 4:39 pm

Thanks David!

Locked