Class BarGraph


  • public class BarGraph
    extends Graph
    A bar graph representation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BarGraph.Data
      Class representing data for a bar graph.
    • Constructor Summary

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

      • BarGraph

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

      • addDataSeries

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