Skip to content

Commit

Permalink
Closes-Bug:#1581650
Browse files Browse the repository at this point in the history
Storage donut chart color issue:
In monitor infra config node summary page for read and write donut charts we are passing the colors in chart options
and setting to chartModel which is causing issues in storage donut charts,
 now changed such a way colors are passed along with the data and removed in chartOptions.

Change-Id: I6cd4b7ac1e4ddcf7a0cb203ef65aab5a3857a0c1
  • Loading branch information
vishnuvv committed Jun 1, 2016
1 parent 3465ac9 commit 6bae886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,10 @@ define(

};
this.parseConfigNodeRequestForDonutChart = function (apiStats, reqType) {
var cf = crossfilter(apiStats), parsedData = [];
var cf = crossfilter(apiStats),
parsedData = [],
colors = monitorInfraConstants.CONFIGNODE_COLORS;

if (!$.isArray(reqType)) {
reqType = [reqType];
}
Expand All @@ -916,7 +919,8 @@ define(
$.each(sourceGrpData, function (key, value){
parsedData.push({
label: value['key'],
value: value['value']
value: value['value'],
color: colors[key]
});
});
return parsedData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ define(['underscore', 'contrail-view'],function(_, ContrailView){
},
chartOptions: {
height: 160,
color: monitorInfraConstants.CONFIGNODE_COLORS,
margin: {
bottom: 10,
top: 10
Expand All @@ -55,7 +54,6 @@ define(['underscore', 'contrail-view'],function(_, ContrailView){
},
chartOptions: {
height: 160,
color: monitorInfraConstants.CONFIGNODE_COLORS,
margin: {
top: 10,
bottom: 10
Expand Down

0 comments on commit 6bae886

Please sign in to comment.