// Chart export
// ----------------
// Inputs :
// 1. chartOptions : the java ChartOptions to be exported,
// 2. exportFile : file to export to.
HighchartsExporter pngExporter = ExportType.png.createExporter ();
//
long top2 = 0;
long top = System.currentTimeMillis ();
long total = 0;
for (int i1=0;i1<10;i1++) {
top2 = System.currentTimeMillis ();
chartOptions1 = highchartsSamples.createColumnBasic ();
total += (System.currentTimeMillis ()-top2);
pngExporter.export (chartOptions1, null, new File (exportDirectory, "column-basic"+i1+".png"));
}
System.out.println("creation "+((total)/10));
System.out.println("this is the end "+((System.currentTimeMillis ()-top-total)/10));
}