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

chart: use window size to determine number of candles to show #279

Open
DaveSkender opened this issue Oct 12, 2023 · 0 comments
Open

chart: use window size to determine number of candles to show #279

DaveSkender opened this issue Oct 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@DaveSkender
Copy link
Member

DaveSkender commented Oct 12, 2023

  • fetch multiple timeframe data (size of bars, daily, hourly, etc)
  • allow users to pick timeframe
  • calculate optimal bars per screen width + maintain aspect ratio
  • update API to recalc with value on resize, after delay to avoid race condition collisions or consider an in memory simple serialized message queue
  • add custom axis date labels for each timeframe
  • ~5px per bar is optimal (verify, for barsShown = self.innerWidth/5;)

Refs:
https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth
https://stackoverflow.com/questions/45350716/detecting-real-time-window-size-changes-in-angular-4
https://copyprogramming.com/howto/how-to-get-height-and-width-of-device-display-in-angular2-using-typescript

@DaveSkender DaveSkender converted this from a draft issue Oct 12, 2023
@DaveSkender DaveSkender changed the title chart: use window size to determine number of candles to show (see notes) chart: use window size to determine number of candles to show Oct 12, 2023
@DaveSkender DaveSkender added the enhancement New feature or request label Oct 12, 2023
@github-project-automation github-project-automation bot moved this to 💡 Triage in Stock Charts Apr 19, 2024
@DaveSkender DaveSkender moved this from 💡 Triage to 🧊 Icebox in Stock Charts Apr 19, 2024
@DaveSkender DaveSkender moved this from 🧊 Icebox to 🔖 Do next in Stock Charts May 1, 2024
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
Status: 🔖 Do next
Development

No branches or pull requests

1 participant