Preserve categories's color in chart
This commit is contained in:
parent
591cf0f78f
commit
8941aab2c6
2 changed files with 3 additions and 2 deletions
|
@ -217,7 +217,7 @@ refresh_group_categories=function(group) {
|
|||
'hoverable': true
|
||||
},
|
||||
'legend': {
|
||||
'show': true,
|
||||
'show': false,
|
||||
},
|
||||
'series': {
|
||||
'pie': {
|
||||
|
|
|
@ -417,7 +417,8 @@ function Group(uuid,name,data) {
|
|||
if (jQuery.type(this.categories[cid])!='undefined') {
|
||||
data.push({
|
||||
'label': this.categories[cid].name,
|
||||
'data': cats[cid]
|
||||
'data': cats[cid],
|
||||
'color': this.categories[cid].color
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue