boolean isStacked = false;
Node datasetTypeNode = chartAttributes.selectSingleNode( ChartDefinition.DATASET_TYPE_NODE_NAME );
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 );