Skip to content

Dashboard charts responsive web #360

Open
@rraymondgh

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions