diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-06 19:53:31 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-06 19:53:31 +0200 |
commit | 6a3dd0260dc9bc2380bbe34a9817644c2980e72b (patch) | |
tree | fce77103c57a60418b2ad8f46d592dde10fc8532 /module/web/static/js/views/packageView.js | |
parent | worked on stylesheet (diff) | |
download | pyload-6a3dd0260dc9bc2380bbe34a9817644c2980e72b.tar.xz |
added little pie chart
Diffstat (limited to 'module/web/static/js/views/packageView.js')
-rw-r--r-- | module/web/static/js/views/packageView.js | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/module/web/static/js/views/packageView.js b/module/web/static/js/views/packageView.js index 3b743b448..6a7e3cc65 100644 --- a/module/web/static/js/views/packageView.js +++ b/module/web/static/js/views/packageView.js @@ -1,4 +1,4 @@ -define(['jquery', 'views/abstract/itemView', 'underscore', 'views/fileView', 'utils/lazyRequire', 'flotpie'], +define(['jquery', 'views/abstract/itemView', 'underscore', 'views/fileView', 'utils/lazyRequire', 'peity'], function($, itemView, _, fileView, lazyLoader) { // Renders a single package item @@ -35,25 +35,7 @@ define(['jquery', 'views/abstract/itemView', 'underscore', 'views/fileView', 'ut { label: "Series2", data: 90} ]; var pie = this.$('.package-graph'); - $.plot(pie, data, - { - series: { - pie: { - radius: 1, - show: true, - label: { - show: false - }, - offset: { - top: 0, - left: 0 - } - } - }, - legend: { - show: false - } - }); + pie.peity('pie'); if (this.model.isLoaded()) { var ul = $('<ul></ul>'); |