Merge pull request #146 from cubedro/develop

Fixed chart colour range
pull/5/head
Marian OANCΞA 10 years ago
commit ffd2ba3b28
  1. 2
      dist/js/netstats.min.js
  2. 2
      dist/js/netstats.min.js.map
  3. 6
      public/js/script.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -12,10 +12,10 @@
$.fn.sparkline.defaults.bar.tooltipOffsetX = 0; $.fn.sparkline.defaults.bar.tooltipOffsetX = 0;
$.fn.sparkline.defaults.bar.tooltipFormat = $.spformat('<div class="tooltip-arrow"></div><div class="tooltip-inner">{{prefix}}{{value}} {{suffix}}</div>'); $.fn.sparkline.defaults.bar.tooltipFormat = $.spformat('<div class="tooltip-arrow"></div><div class="tooltip-inner">{{prefix}}{{value}} {{suffix}}</div>');
$.fn.sparkline.defaults.bar.colorMap = $.range_map({ $.fn.sparkline.defaults.bar.colorMap = $.range_map({
'0:5': '#10a0de', '0:6': '#10a0de',
'6:12': '#7bcc3a', '6:12': '#7bcc3a',
'13:19': '#FFD162', '12:20': '#FFD162',
'20:29': '#ff8a00', '20:30': '#ff8a00',
'30:': '#F74B4B' '30:': '#F74B4B'
}); });

Loading…
Cancel
Save