Package org.pepstock.charba.client.annotation
Contains all classes to activate the
AnnotationPlugin.ID
plugin (AKA chartjs-plugin-annotation.js
) for CHART.js.- Author:
- Andrea "Stock" Stocchero
-
Interface Summary Interface Description AnnotationId Represents the annotation id of a annotation configuration object in theAnnotationPlugin.ID
plugin.IsDefaultsAnnotationInteraction Interface to define interaction object defaults on annotations. -
Class Summary Class Description AbstractAnnotation Base class to define an annotation in theAnnotationPlugin.ID
plugin.
It contains all commons properties to define an annotation.AlignPosition This object is to set the position of a label, setting the horizontal and vertical position.AnnotationContext The callback or handler context wrapper, created and passed byAnnotationPlugin.ID
which contains the link to the native chart.AnnotationEnvelop<T> This object is a container of hidden object to pass to other packages.
It can not be instantiated in order that public methods can be invoked in safe mode.AnnotationOptions This is theAnnotationPlugin.ID
plugin options where to set all configuration items needed to the plugin.AnnotationOptionsFactory Factory to get the options (from chart) related toAnnotationPlugin.ID
plugin.AnnotationPlugin Entry point of ANNOTATION plugin to enable the plugin.
The ANNOTATION plugin draws lines and boxes on the chart area.
The ANNOTATION plugin plugin works with line, bar, scatter and bubble charts that use linear, logarithmic, time, or category scales.
The ANNOTATION plugin plugin will not work on any chart that does not have exactly two axes, including pie, radar, and polar area charts.Arrow Implements a ARROWHEADS, and its start and end nodes, to apply on a LINE annotation.ArrowHeads Implements a ARROWHEADS to apply on a LINE annotation.BoxAnnotation Implements a BOX annotation which draws a box in the a chart.
If one of the axes is not specified, the box will take the entire chart dimension.
The 4 coordinates, xMin, xMax, yMin, yMax are optional.BoxLabel Implements a LABEL to apply on a BOX annotation.Callout Implements a CALLOUT to apply on a LABEL annotation.ControlPoint This object is to set the control point of a line annotation, when set as curve.
If curve is enabled, it configures the control point to drawn the curve, calculated in pixels.
It can be set by a string in percentage format "number%" which are representing the percentage of the distance between the start and end point from the center.EllipseAnnotation Implements a ELLIPSE annotation which draws a ellipse in the a chart.
If one of the axes is not specified, the ellipse will take the entire chart dimension.
The 4 coordinates, xMin, xMax, yMin, yMax are optional.EllipseLabel Implements a LABEL to apply on a ELLIPSE annotation.Interaction Definitions about how the user can interact with chart elements.LabelAnnotation Implements a LABEL annotation which draws a content in the a chart.LineAnnotation Implements a LINE annotation which draws a line in the a chart.LineLabel Implements a LABEL to apply on a LINE annotation.Padding Base object to map padding options forAnnotationPlugin.ID
plugin padding configuration.
It is applied to all sides of the label (left, top, right, bottom).PointAnnotation Implements a POINT annotation which draws a point in the a chart.PolygonAnnotation Implements a POLYGON annotation which draws a polygon in the a chart. -
Enum Summary Enum Description AnnotationType Defines the type of annotation.