Jquery boot highlight highlight bar

I am using the sparkline jQuery library to display a histogram.

The histogram will display bars on hover, however I would like to highlight a specific panel at boot time.

Is there a way to highlight a separate panel when the light line is first displayed?

+4
source share
1 answer

Without looking at any code, it’s more difficult, but if you have Mouse-over events for hightlight, you can use range_mapto assign a different value on first boot:

barColor = '#0000FF';   //assign a color to the bar (i.e: blue)

//i.e if you know that the bar highlighted is the nΒΊX bar:

var selected = X;
var range_map = $.range_map({
    selected: 'red'
})

This way you will have a blue char stripe with a red X stripe. Hope this works for you.

0
source

All Articles