Workbook wb = new Workbook("c:/BookValues.xlsx");
Chart chart = wb.getWorksheets().get(0).getCharts().get("图表 1");
final Series series = chart.getNSeries().get(0);
final CountDownLatch latch = new CountDownLatch(1);
for (int i = 0; i < 100; i++) {
new Thread() {
public void run() {
try {
latch.await();
} catch (InterruptedException e) {
return;
}
for (int i = 0; i < 10000; i++) {
String v = series.getValues();
if (!v.equals("=Sheet1!$B$2:$B$4")) {
System.out.println(v);
}
}
}
}.start();
}
latch.countDown();
This code will output many difference values.