} else if ( ChartDefinition.DIAL_CHART_STR.equalsIgnoreCase( chartType ) ) {
dataDefinition = new DialWidgetDefinition( data, byRow, chartAttributes, width, height, getSession() );
} else if ( ChartDefinition.BAR_LINE_CHART_STR.equalsIgnoreCase( chartType ) ) {
dataDefinition = new BarLineChartDefinition( data, byRow, chartAttributes, getSession() );
} else if ( ChartDefinition.BUBBLE_CHART_STR.equalsIgnoreCase( chartType ) ) {
dataDefinition = new XYZSeriesCollectionChartDefinition( data, byRow, chartAttributes, getSession() );
} else {
dataDefinition = new CategoryDatasetChartDefinition( data, byRow, chartAttributes, getSession() );
}
// Determine what we are sending back - Default to OUTPUT_PNG output