Skip to content

Instantly share code, notes, and snippets.

@mark47
Created December 5, 2012 18:34
Show Gist options
  • Save mark47/4218247 to your computer and use it in GitHub Desktop.
Save mark47/4218247 to your computer and use it in GitHub Desktop.
Highcharts - hover on container
// Adds subtle hover effect to Highcharts chart where it's contained within a div with class="sparkline"
// Default background in #fff
$(".sparkline").mouseenter(function(){
$(this).find('rect').attr('fill','#F7F9F9');
}).mouseleave(function(){
$(this).find('rect').attr('fill','#fff')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment