} 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
// OUTPUT_PNG = the chart gets written to a file in .png format
// OUTPUT_SVG = the chart gets written to a file in .svg (XML) format