Rotation for jfree chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pratiksheth1991
Posts: 5
Joined: Mon Oct 03, 2016 5:33 am
antibot: No, of course not.

Rotation for jfree chart

Post by pratiksheth1991 » Wed Feb 08, 2017 10:56 pm

Anybody has idea how to rotate wafermap chart by 90 degree. I want to achieve rotation at 0,90, 270 and 360 degree on button click event.

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Rotation for jfree chart

Post by John Matthews » Thu Feb 09, 2017 2:25 am

One approach would be to create an instance of WaferMapDataset for each desired rotation. The button's handler could then select the next dataset and invoke the setDataset() method of WaferMapPlot. This will cause the the listening plot to update itself. Note that 0 and 360 would be identical; you may have meant 0, 90, 180 and 270.

Locked