Skip to content

Conversation

@maxmwang
Copy link
Contributor

@maxmwang maxmwang commented Nov 6, 2025

Defaults to last index of data time series when not hovering over the enrollment chart.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality to set the hovered duration to the last data point in the enrollment chart, both when the data changes and when the mouse leaves the chart area.

  • Adds a useEffect hook to initialize hoveredDuration to the last data point when data loads or changes
  • Adds an onMouseLeave handler to the chart that resets hoveredDuration to the last data point when the mouse exits

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maxmwang maxmwang marked this pull request as draft November 6, 2025 10:42
@maxmwang
Copy link
Contributor Author

maxmwang commented Nov 6, 2025

Something about multiple classes and the HoverInfo data seems to be broken right now... Not sure if it's due to changes here but I'll just include it in this PR once I figure out the bug

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