Class LineGraph


  • public class LineGraph
    extends Graph
    A line graph representation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LineGraph.Data
      This represents the data for a line graph.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineGraph​(java.lang.String title, java.util.List<java.lang.String> subTitle, java.lang.String xTitle, java.lang.String yTitle)
      Creates an instance.
    • Constructor Detail

      • LineGraph

        public LineGraph​(java.lang.String title,
                         java.util.List<java.lang.String> subTitle,
                         java.lang.String xTitle,
                         java.lang.String yTitle)
        Creates an instance.
        Parameters:
        title - the title
        subTitle - the lines in the sub title
        xTitle - the title of the x-axis
        yTitle - the title of the y-axis
    • Method Detail

      • addDataSeries

        public void addDataSeries​(java.lang.String series,
                                  LineGraph.Data data)
        Parameters:
        series - the series name
        data - the series data to add