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

feat: Seperate days by a bar and added time stamp of data on graph #103

Merged
merged 5 commits into from
Jul 10, 2024

Conversation

Alex-zReeZ
Copy link
Collaborator

No description provided.

const dateChanges = data.reduce((acc: any[], curr, index, src) => {
if (
index > 0 &&
new Date(curr.date).getDate() !== new Date(src[index - 1].date).getDate()
Copy link
Contributor

Choose a reason for hiding this comment

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

can't new Date(src[index - 1].date).getDate() be stored in a variable that can be updated when the date change so we don't recalculate it every time

@Alex-zReeZ Alex-zReeZ merged commit ed38067 into museebolo:main Jul 10, 2024
3 checks passed
@Alex-zReeZ Alex-zReeZ deleted the seperate-days branch July 10, 2024 06:53
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.

2 participants