chenyulin0719 commented on code in PR #157:
URL: https://github.com/apache/yunikorn-web/pull/157#discussion_r1443605233
##########
src/app/models/node-utilization.model.ts:
##########
@@ -25,4 +28,42 @@ export class NodeUtilization {
nodeNames: null | string[];
}[],
) {}
+
+ // transform NodeUtilization to NodeUtilizationChartData for NodeUtilization
bar chart
+ toNodeUtilizationChartData(){
+ const MAX_NODES_IN_DESCRIPTION = 15;
+ const backgroundColor = CHART_COLORS[0];
+ let type = this.type;
+ let utilization = this.utilization;
+ // prepare data
+ let chartDataItems = new Array<ChartDataItem>();
+ let index = 0;
Review Comment:
Just removed, sorry for missing that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]