fixed chart colour range

pull/5/head
cubedro 10 years ago
parent 06c5f71fc8
commit 70da8e00cf
  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.tooltipFormat = $.spformat('<div class="tooltip-arrow"></div><div class="tooltip-inner">{{prefix}}{{value}} {{suffix}}</div>');
$.fn.sparkline.defaults.bar.colorMap = $.range_map({
'0:5': '#10a0de',
'0:6': '#10a0de',
'6:12': '#7bcc3a',
'13:19': '#FFD162',
'20:29': '#ff8a00',
'12:20': '#FFD162',
'20:30': '#ff8a00',
'30:': '#F74B4B'
});

Loading…
Cancel
Save