throw new RuntimeException("Unknown GraphType: " + getGraphType() +
". See the StatsValueRetriever class for the list of acceptable types.");
}
//create the chart generator and set the enabled tags
GoogleChartGenerator retVal = new GoogleChartGenerator(statsValueRetriever);
if (getTagNamesToGraph() != null) {
Set<String> enabledTags =
new HashSet<String>(Arrays.asList(MiscUtils.splitAndTrim(getTagNamesToGraph(), ",")));
retVal.setEnabledTags(enabledTags);
}
return retVal;
}