gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

Error in syntax on docs #88

Closed frewsxcv closed 11 years ago

frewsxcv commented 11 years ago

Well, it's not technically a Javascript error, but it should be addressed. In this section, this code is presented:

$('.mouseoverdemo').sparkline();
$('.mouseoverdemo').bind('sparklineRegionChange', function(ev) {
    var sparkline = ev.sparklines[0],
        region = sparkline.getCurrentRegionFields();
        value = region.y;
    $('.mouseoverregion').text("x="+region.x+" y="+region.y);
}).bind('mouseleave', function() {
    $('.mouseoverregion').text('');
});

The semicolon on line 4 should be a comma

gwatts commented 11 years ago

Thanks; fixed.