Skip to content
Snippets Groups Projects
Commit e45ffa19 authored by Tibo's avatar Tibo
Browse files

Fix support for external use of js

parent ef5b0924
No related branches found
No related tags found
No related merge requests found
......@@ -45,16 +45,16 @@ window.monitorMemChart = function(element) {
console.log(data);
var new_dataset = {
label: 'Used',
backgroundColor: window.chartColors.green,
borderColor: window.chartColors.green,
backgroundColor: 'rgba(0, 178, 0, 0.3)',
borderColor: 'rgba(0, 178, 0, 0.3)',
data: data.used
};
config.data.datasets.push(new_dataset);
new_dataset = {
label: 'Cached',
backgroundColor: window.chartColors.orange,
borderColor: window.chartColors.orange,
backgroundColor: 'rgba(255, 165, 0, 0.3)',
borderColor: 'rgba(255, 165, 0, 0.3)',
data: data.cached
};
config.data.datasets.push(new_dataset);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment