Revision 67 hci/trunk/eneraptor-web-app/grails-app/controllers/com/eneraptor/hci/StatisticsController.groovy

View differences:

StatisticsController.groovy
107 107
		List data = new ArrayList()
108 108
		data = graphDataService.getGraphData(graphToShow)
109 109
		
110
		[data:data]
110
		[data: "{label: '" + graphToShow.name + "', data: " + data.toString() + " }"]
111 111
		
112 112
	}
113 113
	
......
593 593
				List datas = new ArrayList()
594 594
				
595 595
				chGrph.graphs.each {
596
					datas << graphDataService.getGraphData(it)
596
					datas << "{label: '" + it.name + "', data: " + graphDataService.getGraphData(it).toString() + "}"
597 597
				}
598 598
				
599 599
				return [data: datas]

Also available in: Unified diff