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

Dashboard charts responsive web #360

Open
rraymondgh opened this issue Dec 13, 2024 · 0 comments · May be fixed by #362
Open

Dashboard charts responsive web #360

rraymondgh opened this issue Dec 13, 2024 · 0 comments · May be fixed by #362

Comments

@rraymondgh
Copy link
Contributor

rraymondgh commented Dec 13, 2024

Intend to raise a PR when I have broadband.

Currently webui does not wrap <canvas> with a <div> as documented in this link to make canvas responsive
https://www.chartjs.org/docs/latest/configuration/responsive.html

Simple change to https://github.com/bitmagnet-io/bitmagnet/blob/main/webui/src/app/charting/chart.component.html to wrap and style works better.

Also recommend aspect ratio of 3/7 (height/width) where <app-chart> is used

@rraymondgh rraymondgh linked a pull request Dec 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant