簡體   English   中英

使用FLOT圖表在懸停時更改條形圖的顏色

[英]Change color of bar on hover with FLOT charts

是否可以使用Flot水平條形圖在懸停時更改條形圖的顏色

通過設置'highlightColor'字段,這對我有用:

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

看到這個小提琴的工作示例。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM