Timeseries XY Rotated Plot.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
j.machnik
Posts: 1
Joined: Fri Jul 11, 2014 11:55 am
antibot: No, of course not.

Timeseries XY Rotated Plot.

Post by j.machnik » Fri Jul 11, 2014 12:05 pm

Hello,
I've got one problem. I am working with JasperReports now and i need to "flip" the chart created there. It is based on JFreeChast as far as I know. So my question : Is there any possibility to make a chart like this (specifically in this orientation) :Image
http://imgur.com/KrVQjzD

Thanks for any help!

uvoigt
Posts: 168
Joined: Mon Aug 23, 2004 10:50 am
Location: Germany

Re: Timeseries XY Rotated Plot.

Post by uvoigt » Fri Jul 11, 2014 1:30 pm

You can invert the domain axis:

Code: Select all

ValueAxis ax = xyplot.getDomainAxis();
ax.setInverted(true);
And you can display the range axis on the right side:

Code: Select all

xyplot.setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
That should do the trick.

Locked