Closed dimunidze closed 5 years ago
You should set barBorderColor
instead of borderColor
function getDataItemStyle(isSelected: boolean) {
if(isSelected) {
const borderProps = {
barBorderColor: "#ff0000"
};
return {opacity: 1, ...borderProps}
} else {
return {opacity: 0.5}
}
}
General Questions
Issue Type
Issue Details
The problem is that when you click the borders of the bar chart should be painted in red, and painted in yellow, example code: https://codepen.io/dimunidze/pen/NorbOr?editors=0011
The following is an example:
Expected Behavior
After selecting the column, the border is painted in the color that was transmitted.
Current Behavior
Online Example
Topics
Anything Else We Need to Know
Environment
ECharts version;ECharts 版本: 4.2.0-rc.2
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}