chenyulin0719 commented on code in PR #157:
URL: https://github.com/apache/yunikorn-web/pull/157#discussion_r1443605346
##########
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];
Review Comment:
Hi @wusamzong,
You're right, no need to declare multiple colors here. Just changed
CHART_COLORS(Array) to CHART_COLOR(constant).
Thanks for the review.
--
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]