Class 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 Detail

      • Sparkline

        public Sparkline()
    • 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
      • style

        public Sparkline style​(Style style)
        Sets the style used to draw the chart.
        Parameters:
        style - the style
        Returns:
        this Sparkline for chaining