protected void onClick(int configIndex, int dataIndex) {
ChartConfig config = model.getChartConfigs().get(configIndex);
DataConfig data = config.getValues().get(dataIndex);
ChartEvent event = new ChartEvent(this);
event.setChartModel(config.getModel());
event.setChartConfig(config);
event.setDataType(data);
event.setValue(data.getValue());
event.setType(ChartClick);
for (ChartListener l : config.getChartListeners()) {
l.handleEvent(event);
}
fireEvent(ChartClick, event);