diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-03-27 08:27:17 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-03-27 08:27:17 +0200 |
commit | 1d2470a411e5eaac7e5a1c5d5b6b81e92c92f4a8 (patch) | |
tree | 54b901757b088d54d33e70f28a6203383b4dc844 /web/nms-public.gathering.org/speedometer.js | |
parent | 0a230ac5481b9518abc64181dbbb4509d83c0b89 (diff) | |
parent | 96a9bb4c42f4b53020302fea2a46e734c61c0319 (diff) |
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'web/nms-public.gathering.org/speedometer.js')
-rw-r--r-- | web/nms-public.gathering.org/speedometer.js | 131 |
1 files changed, 0 insertions, 131 deletions
diff --git a/web/nms-public.gathering.org/speedometer.js b/web/nms-public.gathering.org/speedometer.js deleted file mode 100644 index f301476..0000000 --- a/web/nms-public.gathering.org/speedometer.js +++ /dev/null @@ -1,131 +0,0 @@ -$(function () { - - $('#container').highcharts({ - exporting: { - enabled: false - }, - chart: { - type: 'gauge', - plotBackgroundColor: null, - plotBackgroundImage: null, - plotBorderWidth: 0, - plotShadow: false - }, - - title: { - text: '' - }, - - pane: { - startAngle: -150, - endAngle: 150, - background: [{ - backgroundColor: { - linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 }, - stops: [ - [0, '#FFF'], - [1, '#333'] - ] - }, - borderWidth: 0, - outerRadius: '109%' - }, { - backgroundColor: { - linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 }, - stops: [ - [0, '#333'], - [1, '#FFF'] - ] - }, - borderWidth: 1, - outerRadius: '107%' - }, { - // default background - }, { - backgroundColor: '#DDD', - borderWidth: 0, - outerRadius: '105%', - innerRadius: '103%' - }] - }, - - // the value axis - yAxis: { - min: 0, - max: 50, - - tickPixelInterval: 30, - tickWidth: 2, - tickPosition: 'inside', - tickLength: 20, - tickColor: '#666', - labels: { - step: 2, - rotation: 'auto', - distance: -40, - style: { - fontSize: '20px' - } - }, - plotBands: [{ - from: 0, - to: 20, - color: '#55BF3B', // green - thickness: 20 - }, { - from: 20, - to: 40, - color: '#DDDF0D', // yellow - thickness: 20 - }, { - from: 40, - to: 50, - color: '#DF5353', // red - thickness: 20 - }] - }, - plotOptions: { - gauge: { - dial: { - baseWidth: 5, - }, - pivot: { - radius: 8, - }, - dataLabels: { - borderWidth: 0, - format: '{y} Gbps', - style: { - fontSize: '40px' - }, - y: 50 - } - } - }, - - series: [{ - name: 'Speed', - data: [0], - tooltip: { - valueSuffix: ' Gbps' - } - }] - - }, - // Add some life - function (chart) { - if (!chart.renderer.forExport) { - setInterval(function () { - $.getJSON('speedometer.json', function(data) { - var point = chart.series[0].points[0]; - if(data.speed > 1){ - point.update(data.speed); - } - if(data.speed > 55){ - point.update(55); - } - }); - }, 1000); - } - }); -}); |