Skip to content

Support cursor option in brush #13712

@peder1001

Description

@peder1001

What problem does this feature solve?

I would like to use the brush to select an area of the chart.
I would not like the cursor when using the brush to be a crosshair, I would rather it be a regular pointer.

Therefore I suggest adding a cursor option to the brush object so that the developer can set the brush cursor themselves.

https://echarts.apache.org/en/option.html#brush

What does the proposed API look like?

brush:
{
xAxisIndex: 'all',
brushLink: 'all',
cursor: 'pointer', // new option
brushType: 'lineX',
brushMode: 'single',
transformable: false,
removeOnClick: true,
cursor: 'wait',
brushStyle: {
borderWidth: 0,
color: 'rgba(255,255,255,0.01)',
},
outOfBrush: {
colorAlpha: 0.4,
color: '#153A59'
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: easyIssues that can be fixed more easily than the average.enThis issue is in Englishnew-featurestaleInactive for a long time. Will be closed in 7 days.topic: brush

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions