echart column chart click highlight problem

echarts column chart click highlight problem

When creating an echarts bar chart, there will be a default click highlighting effect. Sometimes you want to cancel the highlighting, there are the following methods:
  • slient (default is'false')
    series: {slient: true}
    This attribute is whether the bar chart does not respond to mouse clicks. If set to true, it will not respond, but other subsequent click effects will not take effect.
  • emphasis
serise: {
 itemStyle: {
		color: "",//柱条颜色,设置为柱图颜色则取消高亮
		borderColor: ''//柱条边框颜色
		... //更多属性见文章最后官网地址
	}
}

Here, if you want to cancel the highlight effect when you click or change the highlight color, just set the color value. If you want to cancel, set the original color of the bar to always

Detailed address: https://echarts.apache.org/zh/option.html#series-bar.emphasis

Guess you like

Origin blog.csdn.net/BookstoreSpirit/article/details/107794202