diff options
Diffstat (limited to 'tools/pharos-dashboard/static')
-rw-r--r-- | tools/pharos-dashboard/static/bower.json | 2 | ||||
-rw-r--r-- | tools/pharos-dashboard/static/js/flot-pie-chart.js | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/tools/pharos-dashboard/static/bower.json b/tools/pharos-dashboard/static/bower.json index 78406217..f473747f 100644 --- a/tools/pharos-dashboard/static/bower.json +++ b/tools/pharos-dashboard/static/bower.json @@ -19,6 +19,6 @@ "eonasdan-bootstrap-datetimepicker": "^4.17.37", "fullcalendar": "^2.9.0", "jquery-migrate": "^3.0.0", - "startbootstrap-sb-admin-2": "^1.0.9" + "startbootstrap-sb-admin-2-blackrockdigital": "^3.3.7" } } diff --git a/tools/pharos-dashboard/static/js/flot-pie-chart.js b/tools/pharos-dashboard/static/js/flot-pie-chart.js new file mode 100644 index 00000000..98d174e4 --- /dev/null +++ b/tools/pharos-dashboard/static/js/flot-pie-chart.js @@ -0,0 +1,22 @@ +function loadChartData(chart_id, url) { + $.ajax({ + url: url, + type: 'get', + success: function (data) { + var data = data['data']; + $(function () { + var plotObj = $.plot($("#" + chart_id), data, { + series: { + pie: { + show: true + } + } + }); + }); + }, + failure: function (data) { + alert('Error loading data'); + } + }); + +}
\ No newline at end of file |