How to configure the position of the markLine text label, can it be configured to display at the starting point, end point or in the middle of the line segment?
Question Description
For charts like (https://www.visactor.io/vchart/demo/marker/mark-line-basic) that use markLine for spatial positioning of the axes, I would like to have the labels in the markLine show the start of the line, the end of the line, or the middle of the line segment, how can I achieve this?
Solution
The solution is different for different charting libraries, according to the demo you gave, just configure markLine.label.position to the desired scene.
- markLine.label.position is used to configure the label position of the marked line (relative position of the label to the line).
- When the text label is displayed at the start of the line, the position can be configured to 'start'.
- When the text label is displayed at the end of the line, the position can be configured as 'end'.
- When the text label is displayed in the middle of the line, the position can be configured as 'middle'.