Class: Annotation

Highcharts. Annotation

new Annotation(chart, userOptions)

An annotation class which serves as a container for items like labels or shapes. Created items are positioned on the chart either by linking them to existing points or created mock points

参数:
名字 类型 详情
chart Highcharts.Chart

a chart instance

userOptions Highcharts.AnnotationsOptions

the options object

成员

group :Highcharts.SVGElement

The group svg element.

Type:

labelsGroup :Highcharts.SVGElement

The group svg element of the annotation's labels.

Type:

options :Highcharts.AnnotationsOptions

The options for the annotations.

Type:
  • Highcharts.AnnotationsOptions

shapesGroup :Highcharts.SVGElement

The group svg element of the annotation's shapes.

Type:

userOptions :Highcharts.AnnotationsOptions

The user options for the annotations.

Type:
  • Highcharts.AnnotationsOptions

方法

update(userOptions)

Updates an annotation.

参数:
名字 类型 详情
userOptions Partial.<Highcharts.AnnotationsOptions>

New user options for the annotation.

返回值: