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
|
'hoverable': true
|
||||||
},
|
},
|
||||||
'legend': {
|
'legend': {
|
||||||
'show': true,
|
'show': false,
|
||||||
},
|
},
|
||||||
'series': {
|
'series': {
|
||||||
'pie': {
|
'pie': {
|
||||||
|
|
|
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue