Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bar chart color display. Specified variable types. #1462 #1527

Conversation

KD1712
Copy link
Collaborator

@KD1712 KD1712 commented May 13, 2024

Fixes bar chart color display. Sorting the displaying graphData, graphColorIndicators and conditionsFilterOptions(for correct display order). Gave variable types previously designated as 'any'.

…ColorIndicators and conditionsFilterOptions(for correct display order). Updated variable types previously designated as 'any'.
Copy link
Collaborator

@Yagnik56 Yagnik56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, you added 2 blank lines at some places instead of 1 and uneven space around =. Can you add a prettier extension, it will help you fix this.

Copy link
Collaborator

@ppratikcr7 ppratikcr7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check small changes requested.

@ppratikcr7 ppratikcr7 self-requested a review May 14, 2024 12:48
@ppratikcr7 ppratikcr7 linked an issue May 14, 2024 that may be closed by this pull request
@KD1712 KD1712 requested review from RidhamShah and Yagnik56 May 17, 2024 08:50
@@ -91,7 +96,9 @@ export class EnrollmentOverTimeComponent implements OnChanges, OnInit, OnDestroy
this.experiment.conditions.forEach((condition) => {
this.conditionsFilterOptions.push({ code: condition.conditionCode, id: condition.id });
this.selectedCondition.push(condition.id);
this.conditionsFilterOptions.sort((a, b) => a.code.localeCompare(b.code));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sort is done in every loop. This statement can be moved outside of the loop

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved sorting outside the loop

@KD1712 KD1712 requested a review from VivekFitkariwala May 20, 2024 05:35
Copy link
Collaborator

@Yagnik56 Yagnik56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything looks good to me.

@ppratikcr7 ppratikcr7 merged commit 95f70a2 into CarnegieLearningWeb:dev Jun 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The bar chart initially displays an incorrect condition color
5 participants