$(function() {
    $('.js-barchart-table').each(function() {
        $.magnaCharta($(this));
    })
});

$(function() {
    $('.js-barchart-table').each(function() {
        $.magnaCharta($(this), {
            toggleText: "Change between chart and table"
        });
    })
});

Change 'toggle' to 'change' to read less oddly.
Change 'toggle' to 'change' to read less oddly.
