Skip to content

Set symbol for the end point of mark line when drawing horizontal or vertical mark lines alongside x or y axis. #13385

@nguyencuongabcxyz

Description

@nguyencuongabcxyz

What problem does this feature solve?

I want to draw a horizontal mark line which is parallel to the y-axis. It should be ranged from the min value to the max value of the y-axis. What I did is:

markLine: {
   data: [ { name: 'xxxx', xAxis: 2 } ]
}

With this approach, I am not able to set symbol styles for the endpoint of this mark line. Because when I provide an array with only xAxis, the mark line won't be shown.

markLine: {
   data: [ 
      [ { name: 'xxxx', xAxis: 2 , symbol: 'rect'} ,
        { name: 'xxxx', xAxis: 2, symbol: 'arrow' }]
   ]
}

I don't want to provide specific yAxis values for both of them.

What does the proposed API look like?

Mark line should allow us to provide styles for the start point and endpoint of a mark line is this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurestaleInactive for a long time. Will be closed in 7 days.topic: marker

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions