public void addDataset(int datasetIndex, Dataset<T> dataset) {
ArgChecker.isNotNull(dataset, "dataset");
DrawableDataset<T> drawableDataset = new DrawableDataset<T>();
drawableDataset.dataset = dataset;
GssElement gssElem = new GssElementImpl("series", null, "s" + datasetIndex + " #" + dataset.getIdentifier());
GssProperties seriesProp = view.getGssProperties(gssElem, "");
DatasetRenderer<T> renderer = null;
GssElement gssIdElem = new GssElementImpl("series", null,
dataset.getIdentifier());
GssProperties propsId = view.getGssProperties(gssIdElem, "");
if (propsId.gssSupplied && !"auto".equals(propsId.display)) {
renderer = this.datasetRendererMap.newDatasetRenderer(propsId.display);