Exemplo n.º 1
0
  public void loadChart() {

    Chart chart = config.getChartBuilder().getChart(getParams());

    String chartContent = FileUtil.getContent(config.getChartFile());
    chartContent =
        chartContent.replace("$categories", CategoriesFormat.format(chart.getCategories()));
    chartContent =
        chartContent.replace(
            "$series", SeriesFormat.format(chart.getSeries(), config.getPointRadius()));

    JavaScriptUtil.loadChart(chartContent, config.getJsCallbackName(), this);
  }
Exemplo n.º 2
0
  protected void addMainControls() {

    testNameCombo = UIUtil.addCombo(this, "Test Name:", "left: 10px; top: 30px;", "500px", null);

    metricCombo =
        UIUtil.addCombo(this, "Metric:", "left: 10px; top: 80px;", "100px", Metric.values());

    percentileCombo =
        UIUtil.addCombo(
            this,
            "Percentile:",
            "left: 150px; top: 80px;",
            "100px",
            new String[] {"100", "90", "80", "70", "60", "50", "40", "30", "20", "10"});

    failureCombo =
        UIUtil.addCombo(
            this, "Points to Plot:", "left: 290px; top: 80px;", "100px", FailureType.values());

    addSubmitButton();

    UIUtil.addLayout(this, config.getChartId(), "left: 10px; top: 150px;", "720px", "450px");

    detailsTable = new DetailsTable();
    addComponent(detailsTable, "left: 750px; top: 150px;");
  }