Preserve categories's color in chart
Benjamin Renard

Benjamin Renard commited on 2014-07-23 00:04:28
Showing 2 changed files, with 3 additions and 2 deletions.

... ...
@@ -217,7 +217,7 @@ refresh_group_categories=function(group) {
217 217
         'hoverable': true
218 218
     }, 
219 219
     'legend': {
220
-        'show': true,
220
+        'show': false,
221 221
     },
222 222
     'series': { 
223 223
         'pie': {
... ...
@@ -417,7 +417,8 @@ function Group(uuid,name,data) {
417 417
       if (jQuery.type(this.categories[cid])!='undefined') {
418 418
         data.push({
419 419
           'label': this.categories[cid].name,
420
-          'data': cats[cid]
420
+          'data': cats[cid],
421
+          'color': this.categories[cid].color
421 422
         });
422 423
       }
423 424
     }
424 425