bug fix on chart (wrong labels)

community
Steve L. Nyemba 6 years ago
parent e368f3df8a
commit 48beabec0d

@ -111,6 +111,7 @@
// config.data = apps
// $('#grid').jsGrid(config)
// })
{{app_summary|tojson}}
var render_grid = function(name){
var logs = {{app_logs|tojson}}
var config = {{ app_grid|tojson}}

@ -103,7 +103,7 @@ class apps(analytics) :
q = []
for row in slogs :
r.append( {"x":[row['running'],row['idle'],row['crash']],"labels":['Crash','Idle','Running'],"title":row['node'],"date":row['date']})
r.append( {"x":[row['crash'],row['idle'],row['running']],"labels":['Crash','Idle','Running'],"title":row['node'],"date":row['date']})
# q.append({"x":[[row['cpu'],row['mem']]],"labels":["CPU","RAM"],"title":"Resources","date":row['date'],"title":row['node'],"series":[ 'CPU','RAM' ]})
q.append({"x":[[row['cpu'],0],[0,row['mem']]],"labels":["",""],"title":"Resources","date":row['date'],"title":row['node'],"series":[ 'CPU','RAM' ],"ylabel":"% Resource Used"})

Loading…
Cancel
Save