Package com.gitblit.wicket.charting

Examples of com.gitblit.wicket.charting.Chart.addValue()


        date = df.parse(metric.name);
      } catch (ParseException e) {
        logger.error("Unable to parse date: " + metric.name);
        return charts;
      }
      chart.addValue(date, (int)metric.count);
      if(metric.tag > 0 ){
        chart.addHighlight(date, (int)metric.count);
      }
    }
    charts.addChart(chart);
View Full Code Here


    Chart chart = charts.createLineChart("chartDaily", getString("gb.dailyActivity"), "day",
        getString("gb.commits"));
    SimpleDateFormat df = new SimpleDateFormat("MMM dd");
    df.setTimeZone(getTimeZone());
    for (Activity metric : recentActivity) {
      chart.addValue(metric.startDate, metric.getCommitCount());
    }
    charts.addChart(chart);

    // active repositories pie chart
    chart = charts.createPieChart("chartRepositories", getString("gb.activeRepositories"),
View Full Code Here

    // active repositories pie chart
    chart = charts.createPieChart("chartRepositories", getString("gb.activeRepositories"),
        getString("gb.repository"), getString("gb.commits"));
    for (Metric metric : repositoryMetrics.values()) {
      chart.addValue(metric.name, metric.count);
    }
    chart.setShowLegend(false);
    String url = urlFor(SummaryPage.class, null).toString() + "?r=";
    chart.setClickUrl(url);
    charts.addChart(chart);
View Full Code Here

    // active authors pie chart
    chart = charts.createPieChart("chartAuthors", getString("gb.activeAuthors"),
        getString("gb.author"), getString("gb.commits"));
    for (Metric metric : authorMetrics.values()) {
      chart.addValue(metric.name, metric.count);
    }
    chart.setShowLegend(false);
    charts.addChart(chart);

    return charts;
View Full Code Here

      // active repositories pie chart
      Chart chart = charts.createPieChart("chartRepositories", getString("gb.activeRepositories"),
          getString("gb.repository"), getString("gb.commits"));
      for (Metric metric : repositoryMetrics.values()) {
        chart.addValue(metric.name, metric.count);
      }
      chart.setShowLegend(false);
      String url = urlFor(SummaryPage.class, null).toString() + "?r=";
      chart.setClickUrl(url);
      charts.addChart(chart);
View Full Code Here

      // active authors pie chart
      chart = charts.createPieChart("chartAuthors", getString("gb.activeAuthors"),
          getString("gb.author"), getString("gb.commits"));
      for (Metric metric : authorMetrics.values()) {
        chart.addValue(metric.name, metric.count);
      }
      chart.setShowLegend(false);
      charts.addChart(chart);

      add(new HeaderContributor(charts));
View Full Code Here

          date = df.parse(metric.name);
        } catch (ParseException e) {
          logger.error("Unable to parse date: " + metric.name);
          return;
        }
        chart.addValue(date, (int)metric.count);
        if(metric.tag > 0 ){
          chart.addHighlight(date, (int)metric.count);
        }
      }
      charts.addChart(chart)
View Full Code Here

    if ((metrics != null) && (metrics.size() > 0)) {
     
      Chart chart = charts.createPieChart(id, "", "day",
          getString("gb.commits"));
      for (Metric metric : metrics) {
        chart.addValue(metric.name, (int)metric.count);
      }
      charts.addChart(chart)
    }
  }
 
View Full Code Here

  private void createBarChart(Charts charts, String id, List<Metric> metrics) {
    if ((metrics != null) && (metrics.size() > 0)) {
      Chart chart = charts.createBarChart(id, "", "day",
          getString("gb.commits"));
      for (Metric metric : metrics) {
        chart.addValue(metric.name, (int)metric.count);
      }
      charts.addChart(chart)
    }
  }
View Full Code Here

        date = df.parse(metric.name);
      } catch (ParseException e) {
        logger.error("Unable to parse date: " + metric.name);
        return charts;
      }
      chart.addValue(date, (int)metric.count);
      if(metric.tag > 0 ){
        chart.addHighlight(date, (int)metric.count);
      }
    }
    charts.addChart(chart);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.