isStacked = Boolean.valueOf( stackedNode.getText() ).booleanValue();
}
if ( ( isStacked ) && ( ChartDefinition.AREA_CHART_STR.equalsIgnoreCase( chartType ) ) ) {
dataDefinition = new TimeTableXYDatasetChartDefinition( data, byRow, chartAttributes, getSession() );
} else {
dataDefinition = new TimeSeriesCollectionChartDefinition( data, byRow, chartAttributes, getSession() );
}
} else if ( ChartDefinition.PIE_CHART_STR.equalsIgnoreCase( chartType ) ) {
dataDefinition = new PieDatasetChartDefinition( data, byRow, chartAttributes, getSession() );
} else if ( ChartDefinition.DIAL_CHART_STR.equalsIgnoreCase( chartType ) ) {
dataDefinition = new DialWidgetDefinition( data, byRow, chartAttributes, width, height, getSession() );