Directory

← Back

JustGage

JustGage wrapper

Author

Rating

Popularity

<100

This addon is a wrapper for the JustGage JavaScript plugin. It allows to generate and animate nice & clean gauges. It is based on Raphaël library for vector drawing, so it’s completely resolution independent and self-adjusting.

Sample code

VerticalLayout layout = new VerticalLayout();

JustGageConfiguration conf = new JustGageConfiguration();
conf.value = 59f;
conf.title = "Error";
conf.label = "average";

final JustGage justGage = new JustGage(conf);
justGage.setWidth(200, Unit.PIXELS);

Button button = new Button("Change value");
button.addClickListener(e -> justGage.refresh(new Random().nextInt(100)));

layout.addComponents(justGage, button);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

  • Update of justgage.js
  • Refresh function expects a float instead of an int
  • Should be compatible with Vaadin 8
Released
2017-02-06
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.0+
Vaadin 8.0+
Browser
N/A

JustGage - Vaadin Add-on Directory

JustGage wrapper JustGage - Vaadin Add-on Directory
This addon is a wrapper for the JustGage JavaScript plugin. It allows to generate and animate nice & clean gauges. It is based on Raphaël library for vector drawing, so it’s completely resolution independent and self-adjusting.
Online