Skip to content

"label" should accept controller's variables #60

@Tails128

Description

@Tails128

Hi,

I'm facing a specific use-case:
I am using a time which i want to display in minutes, but in order to keep the animation smooth I need to use the time as seconds (e.g: with max=1m i'd like to display 60 ticks).
In order to do this I've set label-only=true and i am updating the label with something like this:

minutes = Math.ceil(seconds / 60);
label = '${minutes} m';

Currently the way to make this work is to:

  • give the gauge an id
  • let gauge = document.getElementById(id);
  • get child <b> from gauge
  • change <b>'s innerhtml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions