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

Pagination for graph data #13

Open
6 tasks
Sciederrick opened this issue Apr 3, 2023 · 0 comments
Open
6 tasks

Pagination for graph data #13

Sciederrick opened this issue Apr 3, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Sciederrick
Copy link
Owner

  • Use the graph midpoint to calculate the current xLabel (represents the day(date) as a two digit string - dd)
  • Find the corresponding id
  • Use the id to calculate the index for the extreme left(prevKey) and extreme right (nextKey)
  • If either of this values is closer to the beginning or end of the cachedGraphValues based on some threshold, then
  • fetch more values to the left or to the right and shift a similar length of values from the cachedGraphValues such that cachedGraphValues always has a constant size.
  • Use prevKey or nextKey to fetch the subsequent batch of data of a specified size (pageSize).
@Sciederrick Sciederrick added the enhancement New feature or request label Apr 3, 2023
@Sciederrick Sciederrick added this to the 1.0 milestone Apr 3, 2023
@Sciederrick Sciederrick self-assigned this Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant