output.append(xLabelRange.get(i));
}
output.append("\"];\n");
}
output.append("_series=[\n");
ColorPicker cp = new ColorPicker();
int i = 0;
for (TreeMap<String, TreeMap<String, Double>> dataMap : this.dataset) {
String[] keyNames = null;
if (this.seriesOrder != null) {
keyNames = this.seriesOrder;
} else {
keyNames = dataMap.keySet().toArray(
new String[dataMap.size()]);
}
int counter = 0;
if (i != 0) {
if (!this.userDefinedMax) {
this.max = 0;
}
}
for (String seriesName : keyNames) {
int counter2 = 0;
if ((counter != 0) || (i != 0)) {
output.append(",");
}
String param = "fill: false";
String type = "lines";
if (this.chartType.get(i).intern() == "stack-area".intern()
|| this.chartType.get(i).intern() == "area".intern()) {
param = "fill: true";
}
if (this.chartType.get(i).intern() == "bar".intern()) {
type = "bars";
param = "stepByStep: true";
}
if (this.chartType.get(i).intern() == "point".intern()) {
type = "points";
param = "fill: false";
}
output.append(" {");
output.append(type);
output.append(": { show: true, ");
output.append(param);
output.append(" }, color: \"");
output.append(cp.getNext());
output.append("\", label: \"");
output.append(seriesName);
output.append("\", ");
String showYAxis = "false";
String shortRow = "false";