I wondered if anybody would know if it’s possible in jQuery to have a button that would show/hide the flags displayed on a highcharts stock chart, such as the one in my jsfiddle here http://jsfiddle.net/hcharge/G7rsh/6/
I’m assuming you’d use something like this
$('.on').click(function() {
$('flags').toggle('1000', function() {
});
});
I’m just not sure how you would reference the flags in the chart? I’d also like the button to toggle class when it is clicked. Any help would be great.
Thanks
Here is a poc fiddle
Torstein answered before me but that’s not fair, he created the lib 😀
BTW, his solution is better than mine