Node stackedNode = chartAttributes.selectSingleNode( ChartDefinition.STACKED_NODE_NAME );
if ( stackedNode != null ) {
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() );