Interface Chart

All Known Implementing Classes:
BarChart, BoxPlot, LineChart

public interface Chart
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
     
    static String
    It is not possible to guarantee that an ID we generate in the Java code will be unique in the HTML page without making the Java code complex enough to track those IDs.
     
    void
    writeToFile(Path parentFolder)
     
     
     
  • Method Details

    • makeIdUnique

      static String makeIdUnique(String id)
      It is not possible to guarantee that an ID we generate in the Java code will be unique in the HTML page without making the Java code complex enough to track those IDs. For that reason, we take a human-readable ID and make it unique by appending a random number.
      Parameters:
      id - never null
      Returns:
      never null, guaranteed to be unique
    • id

      String id()
    • title

      String title()
    • xLabel

      String xLabel()
    • yLabel

      String yLabel()
    • writeToFile

      void writeToFile(Path parentFolder)