int i = 0;
for (ChartPackage pkg : packageList) {
packageArray[i++] = pkg;
}
// Load the visualization API
ChartLoader chartLoader = new ChartLoader(packageArray);
chartLoader.loadApi(new Runnable() {
// Called when the visualization API has been loaded.
public void run() {
GoogleRenderer.super.draw(displayerList);
}