simpe box chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Fred
Posts: 38
Joined: Sat Dec 12, 2015 4:57 pm
antibot: No, of course not.

simpe box chart

Post by Fred » Fri Feb 03, 2017 6:38 pm

Hello,

First, I want to say I've looked at both the BoxAndWhiskerDemo and BoxAndWhiskerChartDemo2 classes and
they are far more complicated then what I need.

Put simply, I have a range axis (time) and really don't care about the domain axis (X). What I want to show
is a box that starts at a point (Y0) and ends at a point (Y1). X can be any value (not too wide). There will
be multiples of the same "Y" points so I would want to plot the box next to the last box plotted (for those exact Y points)
to the right This would show me the number of exact same boxes (same Y points) as they are presented horizontally on
the chart.

Can the XYBoxAndWhiskerRenderer or some other JFreeChart tool be used to accomplish this?

R,

Fred

lucy albert
Posts: 1
Joined: Sun Feb 05, 2017 1:19 pm
antibot: No, of course not.

Re: simpe box chart

Post by lucy albert » Sun Feb 05, 2017 1:21 pm

Last edited by lucy albert on Mon Feb 06, 2017 8:05 am, edited 1 time in total.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: simpe box chart

Post by paradoxoff » Sun Feb 05, 2017 7:08 pm

An IntervalXYDataset rendered by an XYBarRenderer might be what you need.
Just scale the available x range to something conveniwnt (0-1, 0-100, or whatever), and then distribute the available x range between the individual boxes for a given y interval.

Locked