Package org.bgerp.plugin.report.model.chart

# Class Chart

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 Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final String`
  `ltitle`

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `Chart(String ltitle)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `colors(com.fasterxml.jackson.databind.node.ObjectNode series)`
  Adds array 'color' with 138 different HEX colors.
  `String`
  `getTitle(Localizer l)`
  `abstract Object`
  `json(Localizer l, Data data)`
  Generates JSON data for EChart on frontend.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.