Package com.dianping.cat.report.page.problem

Examples of com.dianping.cat.report.page.problem.PieGraphChartVisitor


  @Inject(type = ModelService.class, value = ProblemAnalyzer.ID)
  private ModelService<ProblemReport> m_service;

  private void addDistributeInfo(Map<Object, Object> resultMap, ProblemReport report) {
    PieGraphChartVisitor pieChart = new PieGraphChartVisitor("error", null);
    Map<Object, Object> distributes = new HashMap<Object, Object>();

    pieChart.visitProblemReport(report);
    for (Item item : pieChart.getPieChart().getItems()) {
      distributes.put(item.getTitle(), item.getNumber());
    }
    resultMap.put("distributeMap", distributes);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.report.page.problem.PieGraphChartVisitor

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.