java.lang.Object
org.bgerp.plugin.report.model.chart.Chart
All Implemented Interfaces:
Titled
Direct Known Subclasses:
Chart2D

public abstract class Chart extends Object implements Titled
Base class for all charts.

Names of sub-classes used in JSP templates. E.g. .name.endsWith('Bar')

  • Field Details

    • ltitle

      protected final String ltitle
  • Constructor Details

    • Chart

      protected Chart(String ltitle)
  • Method Details

    • getTitle

      public String getTitle(Localizer l)
      Specified by:
      getTitle in interface Titled
    • json

      public abstract Object json(Localizer l, Data data)
      Generates JSON data for EChart on frontend.
      Parameters:
      l -
      data -
      Returns:
    • colors

      protected void colors(com.fasterxml.jackson.databind.node.ObjectNode series)
      Adds array 'color' with 138 different HEX colors.
      Parameters:
      series - parent object.