Interface View.Chart

Enclosing interface:
View

public static interface View.Chart
A chart of View.chart(Consumer): lines over the same moments.
  • Method Details

    • times

      View.Chart times(List<Long> times)
      Parameters:
      times - the moments, in milliseconds since the epoch, oldest first
      Returns:
      this chart
    • series

      View.Chart series(String label, Tone tone, List<? extends Number> values)
      A line: one value per moment.
      Parameters:
      label - what it measures
      tone - its colour
      values - its values, as many as moments
      Returns:
      this chart
    • unit

      View.Chart unit(String unit)
      Parameters:
      unit - written after the values
      Returns:
      this chart
    • decimals

      View.Chart decimals(int digits)
      Parameters:
      digits - how many decimals the values show
      Returns:
      this chart
    • min

      View.Chart min(double min)
      Parameters:
      min - the bottom of the scale, the lowest value until set
      Returns:
      this chart
    • max

      View.Chart max(double max)
      Parameters:
      max - the top of the scale, the highest value until set
      Returns:
      this chart
    • height

      View.Chart height(int pixels)
      Parameters:
      pixels - its height, 200 until set
      Returns:
      this chart