Combine BoxAndWhiskerRenderer with XYBlockRenderer

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
timangus
Posts: 6
Joined: Mon Jul 01, 2013 1:54 pm
antibot: No, of course not.

Combine BoxAndWhiskerRenderer with XYBlockRenderer

Post by timangus » Thu Mar 06, 2014 6:25 pm

I want to be able to use a BoxAndWhiskerRenderer and combine on the domain axis with (something like) an XYBlockRenderer. This isn't possible with CombinedDomainCategoryPlot or CombinedDomainXYPlot obviously as each of the renderers are incompatible with one or the other. Has anybody any suggestions? Is is possible to achieve something visually similar to an XYBlockRenderer, but on a CategoryPlot basis?

TIA.

timangus
Posts: 6
Joined: Mon Jul 01, 2013 1:54 pm
antibot: No, of course not.

Re: Combine BoxAndWhiskerRenderer with XYBlockRenderer

Post by timangus » Tue Mar 11, 2014 6:02 pm

Essentially what I've ended up doing is to use a StackedBarRenderer with all the values set to 1 and the bars occupying the full width. It's hacky and a bit quirky but it works, substantially.

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

Re: Combine BoxAndWhiskerRenderer with XYBlockRenderer

Post by david.gilbert » Tue Mar 11, 2014 6:46 pm

I'm curious, what is the data that you plot this way?

timangus
Posts: 6
Joined: Mon Jul 01, 2013 1:54 pm
antibot: No, of course not.

Re: Combine BoxAndWhiskerRenderer with XYBlockRenderer

Post by timangus » Wed Mar 12, 2014 12:19 pm

The short version is experimental biology data. Here is an example:
Image

Locked