Preserve categories's color in chart

This commit is contained in:
Benjamin Renard 2014-07-23 02:04:28 +02:00
parent 591cf0f78f
commit 8941aab2c6
2 changed files with 3 additions and 2 deletions

View file

@ -217,7 +217,7 @@ refresh_group_categories=function(group) {
'hoverable': true 'hoverable': true
}, },
'legend': { 'legend': {
'show': true, 'show': false,
}, },
'series': { 'series': {
'pie': { 'pie': {

View file

@ -417,7 +417,8 @@ function Group(uuid,name,data) {
if (jQuery.type(this.categories[cid])!='undefined') { if (jQuery.type(this.categories[cid])!='undefined') {
data.push({ data.push({
'label': this.categories[cid].name, 'label': this.categories[cid].name,
'data': cats[cid] 'data': cats[cid],
'color': this.categories[cid].color
}); });
} }
} }