Package com.tonic.vellum.widget
Class Sparkline
- java.lang.Object
-
- com.tonic.vellum.Section
-
- com.tonic.vellum.widget.SingleRowSection
-
- com.tonic.vellum.widget.Sparkline
-
public final class Sparkline extends SingleRowSection
A one-row chart of a value series drawn with partial block glyphs, auto-scaled to the series range; newest values are on the right.
-
-
Constructor Summary
Constructors Constructor Description Sparkline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SparklinesetValues(double[] values)Sets the value series from an array.SparklinesetValues(java.util.List<? extends java.lang.Number> values)Sets the value series from a list of numbers.Sparklinestyle(Style style)Sets the style used to draw the chart.
-
-
-
Method Detail
-
setValues
public Sparkline setValues(double[] values)
Sets the value series from an array.- Parameters:
values- the values to chart; a null array clears the series- Returns:
- this Sparkline for chaining
-
setValues
public Sparkline setValues(java.util.List<? extends java.lang.Number> values)
Sets the value series from a list of numbers.- Parameters:
values- the values to chart; a null list clears the series- Returns:
- this Sparkline for chaining
-
-