Directory

Sparklines - Vaadin Add-on Directory

Sparklines for GWT and Vaadin Sparklines - Vaadin Add-on Directory
Sparklines is a component for GWT and Vaadin that implements sparklines as described by Edward Tufte. A sparkline is essentially a small linegraph and some numbers, but it's best described by Tufte himself; see Tufte's book "Beautiful Evidence" or view the chapter about sparklines online at his site http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR Sparklines is highly configurable, and almost all features can be turned on or off. - linegraph, the actual sparkline - caption same color as line - current/last value, indicated by dot of same color as value - min/max values - min/max dots, same color as respective value - average indicator line - 'normal' range indicator Please really read Tufte's explanation in order to maximize the usefullness of this component. Especially, if you have multiple sparklines that can be compared, make sure that they have the same scale - it is often best to set the graphWidth, graphHeight and display range. Sparklines depends on the gwt-graphics library; you can use the one included in this package, or get a fresh package from http://vaadin.com/addon/gwt-graphics For 'plain' GWT usage, extract SparklinesGWT.java - it's the only file you need in addition to gwt-graphics. You may want to check VSparklines.java for usage hints.