//to demostrate clickable charts
viewers[i].setHotSpotCursor(Cursor.getPredefinedCursor(
Cursor.HAND_CURSOR));
//Define the code to handle mouse clicks on hot spots
viewers[i].addHotSpotListener(new HotSpotAdapter() {
public void hotSpotClicked(HotSpotEvent e) {
onChartClick(e);
}});
}