Class Chart2D

  • All Implemented Interfaces:
    Titled
    Direct Known Subclasses:
    ChartBar, ChartPie

    public abstract class Chart2D
    extends Chart
    Two dimensional chart. One column with categories, another one with values. The second column must be an aggregating function.
    • Constructor Summary

      Constructors 
      Constructor Description
      Chart2D​(java.lang.String ltitle, Column categories, Column values)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Map<java.lang.String,​java.lang.Integer> prepareData​(Data data)
      Aggregate values column by categories.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • categories

        protected final Column categories
      • values

        protected final Column values
    • Constructor Detail

      • Chart2D

        public Chart2D​(java.lang.String ltitle,
                       Column categories,
                       Column values)
    • Method Detail

      • prepareData

        protected java.util.Map<java.lang.String,​java.lang.Integer> prepareData​(Data data)
        Aggregate values column by categories.
        Parameters:
        data -
        Returns: