private void buildTransactionNamePieChart(List<TransactionNameModel> names, Model model) {
PieChart chart = new PieChart();
List<Item> items = new ArrayList<Item>();
for (int i = 1; i < names.size(); i++) {
TransactionNameModel name = names.get(i);
Item item = new Item();
TransactionName transaction = name.getDetail();
item.setNumber(transaction.getTotalCount()).setTitle(transaction.getId());
items.add(item);
}
chart.addItems(items);