Package org.apache.hadoop.chukwa.hicc

Examples of org.apache.hadoop.chukwa.hicc.ColorPicker


        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) {
          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.get(counter + 1));
        output.append("\", label: \"");
        output.append(seriesName);
        output.append("\", ");
        String showYAxis = "false";
        String shortRow = "false";
View Full Code Here


        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";
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.hicc.ColorPicker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.