mercredi 1 juillet 2015

Flot change bar opacity on hover

The default flot bar chart changes from opacity:.5 to an opacity:1 on hover. I would like to invert this but I can not seem to find anyone that has done this. This it the code that I am currently using.

$.extend(true, opts.flot, {
    series: {
        points: { show: false },
        bars: {
            align      : 'center',
            order      : (opts.stacked) ? null : true,
            show       : true,
            border     : false,
            fill       : 1,
            fillColor  : null,
            horizontal : opts.horizontal,
            barWidth   : (opts.stacked) ? 0.6 : 0.6 / opts.data.length,
            lineWidth  : 0
        },
        lines: { show: false },
        pie: { show: false }
    }
});

Aucun commentaire:

Enregistrer un commentaire