DygraphAnnotation class

Dygraphs lets you add annotations (markers) to individual points on your chart. These markers have a short bit of text or an icon that's displayed over the chart, plus a longer description that appears when you hover over them.

Annotations
  • @JS()
  • @anonymous

Constructors

DygraphAnnotation({String? series, dynamic x, String? shortText, String? text, String? icon, num? width, num? height, String? cssClass, num? tickHeight, num? tickWidth, String? tickColor, bool? attachAtBottom, AnnotationCallbackFunc? clickHandler, AnnotationCallbackFunc? mouseOverHandler, AnnotationCallbackFunc? mouseOutHandler, AnnotationCallbackFunc? dblClickHandler})
factory

Properties

attachAtBottom bool
If true, attach annotations to the x-axis, rather than to actual points.
getter/setter pair
clickHandler AnnotationCallbackFunc
Per-point handler similar to the global annotationClickHandler.
getter/setter pair
cssClass String
CSS class to use for styling the annotation.
getter/setter pair
dblClickHandler AnnotationCallbackFunc
Per-point handler similar to the global annotationDblClickHandler.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height num
Height (in pixels) of the annotation flag or icon.
getter/setter pair
icon String
Specify in place of shortText to mark the annotation with an image rather than text. If you specify this, you must specify width and height.
getter/setter pair
mouseOutHandler AnnotationCallbackFunc
Per-point handler similar to the global annotationMouseOutHandler.
getter/setter pair
mouseOverHandler AnnotationCallbackFunc
Per-point handler similar to the global annotationMouseOverHandler.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
series String
The name of the series to which the annotated point belongs.
getter/setter pair
shortText String
Text that will appear on the annotation's flag.
getter/setter pair
text String
A longer description of the annotation which will appear when the user hovers over it.
getter/setter pair
tickColor String
Color of the tick mark connecting the point to its flag or icon.
getter/setter pair
tickHeight num
Height of the tick mark (in pixels) connecting the point to its flag or icon.
getter/setter pair
tickWidth num
Width of the tick mark connecting the point to its flag or icon.
getter/setter pair
width num
Width (in pixels) of the annotation flag or icon.
getter/setter pair
x ↔ dynamic
The x value of the point. This should be the same as the value you specified in your CSV file, e.g. "2010-09-13".
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited