import org.jfree.chart.ChartFactory
import org.jfree.data.general.DefaultPieDataset
import java.awt.*
import jhplot.HPlotChart
def piedataset = new DefaultPieDataset();
piedataset.with {
setValue "Apr", 10
setValue "May", 30
setValue "June", 40
}
def options = [true, true, true]
def chart = ChartFactory.createPieChart("Pie Chart",
piedataset, *options)
chart.backgroundPaint = Color.white
def c1 = new HPlotChart( chart )
c1.visible()