echarts
echarts copied to clipboard
[Feature] Border styles in "inBrush" and "outOfBrush" options
What problem does this feature solve?
- It allows users to style border when using
brushfeature. (For example: bars that are "brushed-in" can have border but the bars "brushed-out" do not have any border) - Moreover, this feature should fix the following bug: https://github.com/apache/echarts/issues/19272
Currently: Currently, it is only possible to configure following options: https://echarts.apache.org/en/option.html#brush.inBrush Custom styling of the border is possible when using simple selection. For example:
...
selectedMode: 'multiple',
select: {
itemStyle: {
borderWidth: 1,
borderColor: 'red'
}
},
...
However, the same (or similar) behaviour is not possible when using brush with the options inBrush and outOfBrush.
What does the proposed API look like?
Add following properties to the inBrush and outOfBrush options:
borderWidth,
borderColor,
borderType,
borderJoin,
borderCap,
borderDashOffset,
borderMiterLimit,
The types are the same as in the select.itemStyle option.