if ( datasetTypeNode != null ) {
datasetType = datasetTypeNode.getText();
}
Dataset dataDefinition = null;
if ( ChartDefinition.XY_SERIES_COLLECTION_STR.equalsIgnoreCase( datasetType ) ) {
dataDefinition = new XYSeriesCollectionChartDefinition( data, byRow, chartAttributes, getSession() );
} else if ( ChartDefinition.TIME_SERIES_COLLECTION_STR.equalsIgnoreCase( datasetType ) ) {
Node stackedNode = chartAttributes.selectSingleNode( ChartDefinition.STACKED_NODE_NAME );
if ( stackedNode != null ) {
isStacked = Boolean.valueOf( stackedNode.getText() ).booleanValue();