diff options
Diffstat (limited to 'tools/pharos-dashboard/static')
-rw-r--r-- | tools/pharos-dashboard/static/js/flot-pie-chart.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/pharos-dashboard/static/js/flot-pie-chart.js b/tools/pharos-dashboard/static/js/flot-pie-chart.js index 98d174e4..cf8d9769 100644 --- a/tools/pharos-dashboard/static/js/flot-pie-chart.js +++ b/tools/pharos-dashboard/static/js/flot-pie-chart.js @@ -4,14 +4,12 @@ function loadChartData(chart_id, url) { type: 'get', success: function (data) { var data = data['data']; - $(function () { - var plotObj = $.plot($("#" + chart_id), data, { - series: { - pie: { - show: true - } + var plotObj = $.plot($("#" + chart_id), data, { + series: { + pie: { + show: true } - }); + } }); }, failure: function (data) { |