Package com.dianping.cat.report.page.event.DisplayNames

Examples of com.dianping.cat.report.page.event.DisplayNames.EventNameModel


  private void buildEventNamePieChart(List<EventNameModel> names, Model model) {
    PieChart chart = new PieChart();
    List<Item> items = new ArrayList<Item>();

    for (int i = 1; i < names.size(); i++) {
      EventNameModel name = names.get(i);
      Item item = new Item();
      EventName event = name.getDetail();
      item.setNumber(event.getTotalCount()).setTitle(event.getId());
      items.add(item);
    }

    chart.addItems(items);
View Full Code Here

TOP

Related Classes of com.dianping.cat.report.page.event.DisplayNames.EventNameModel

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.