Annotations

This topic provides conceptual information about the annotations and overlay interactions available on the Ignite UI for React category chart component.

Demo

Crosshair Layer

The Crosshair Layer of the category chart provides crossing lines that meet at the actual value of every targeted series. Crosshair types include: Horizontal, Vertical, and Both. The Crosshairs can also be configured to snap to data points by setting the crosshairsSnapToData property to true, otherwise the crosshairs will be interpolated between data points. Annotations can also be enabled to display the crosshair's value along the axis.

 <IgrCategoryChart
    dataSource={this.state.data}
    crosshairsDisplayMode="Horizontal"
    crosshairsSnapToData={true}
    crosshairsAnnotationEnabled={true}>
 </IgrCategoryChart>

Final Value Layer

The Final Value Layer of the category chart component provides a quick view along the axis of the ending value displayed in a series.

 <IgrCategoryChart
    dataSource={this.state.data}
    finalValueAnnotationsVisible={true}>
 </IgrCategoryChart>

Callout Layer

The Callout Layer of the category chart component displays a text callout at X/Y positions given in the data.

 <IgrCategoryChart
    dataSource={this.state.data}
    calloutsVisible={true}
    calloutsDataSource={this.state.calloutData}
    calloutsXMemberPath="index"
    calloutsYMemberPath="yValue"
    calloutsLabelMemberPath="title">
 </IgrCategoryChart>