使用FLOT图表在悬停时更改条形图的颜色

use*_*174 3 javascript flot

是否可以使用Flot水平条形图在悬停时更改条形图的颜色

rin*_*aff 5

通过设置'highlightColor'字段,这对我有用:

$.plot("#placeholder", [data], {
    series: {
        bars: {
            show: true,
            align: 'center',
            barWidth: .6,
            horizontal: true
        },
        highlightColor: 'rgb(190,232,216)'
    },
    grid: {
        hoverable: true
    }
});
Run Code Online (Sandbox Code Playgroud)

看到这个小提琴的工作示例.