Added sparkline support

This commit is contained in:
Thomas Gelf 2014-02-21 10:22:29 +00:00
parent f20f27927d
commit a0e6a73ecc
4 changed files with 3063 additions and 0 deletions

View File

@ -2,6 +2,7 @@
$jsfiles = array(
'js/vendor/jquery-1.8.3.js',
'js/vendor/jquery.sparkline.min.js',
'js/helpers.js',
'js/icinga.js',
'js/icinga/logger.js',

View File

@ -39,6 +39,14 @@
// NOT YET, the applyOnloadDings: module.applyEventHandlers(mod);
}
});
$('.inlinepie', el).sparkline('html', {
type: 'pie',
sliceColors: ['#44bb77', '#ffaa44', '#ff5566', '#dcd'],
width: '2em',
height: '2em',
});
},
/**
* Global default event handlers

3054
public/js/vendor/jquery.sparkline.js vendored Normal file

File diff suppressed because it is too large Load Diff