Marker Data Annotation
Marker is a chart auxiliary annotation component designed to enhance data perception and assist data narration, commonly used to highlight a specific data point or display the statistical results of multiple data points. It should be noted that this component currently only supports Cartesian coordinate system charts.
This tutorial mainly explains the related concepts and components of the Marker component. For more detailed configuration and examples of the Marker component, please refer to the Configuration Documentation and Example pages.
Annotation Types
In VChart, according to the positioning and shape of the markers, the Marker data annotation component is divided into the following three types:
MarkPoint Data Annotation Point
MarkPoint is a data annotation point that can represent the position of a specific data in the chart. By using MarkPoint, users can highlight specific data, making it easier for readers to see the detailed data of that data point.
MarkPoint can be configured through the markPoint
attribute:
MarkLine Data Annotation Line
MarkLine is a data annotation line that can represent a specific value's horizontal or vertical position in the chart. By using MarkLine, the data changes near that value are highlighted in the form of a line, helping users to quickly discover patterns in the data.
MarkLine can be configured through the markLine
attribute:
Through these two examples, you can learn how to use MarkPoint and MarkLine for data annotation in VChart. Feel free to try VChart to create more feature-rich and visually appealing charts.
MarkArea Data Annotation Area
MarkArea is a data annotation area that can annotate a range of data, highlighting the data changes in that range. By using MarkArea, users can get a more intuitive understanding of data distribution and trends.
MarkArea can be configured through the markArea
attribute:
Examples
For more examples of using the Marker component, please refer to the Marker Examples page.