Skip to content

Instantly share code, notes, and snippets.

@abersager
Last active August 29, 2015 14:06
Show Gist options
  • Save abersager/0d534eaacaef4eb5a0ad to your computer and use it in GitHub Desktop.
Save abersager/0d534eaacaef4eb5a0ad to your computer and use it in GitHub Desktop.
responsive-graphs
https://www.gov.uk/performance/prison-visits/volumetrics
http://rwillustrator.blogspot.ch/2007/04/understanding-9-slice-scaling.html
function stage1 () {
$('figure figcaption').hide();
$('.graph-wrapper').hide();
$('.graph').append($($('noscript').text()));
$('.graph img').css('width', '100%');
}
function stage2 () {
$('.inner').css({'z-index': '1000', 'background': 'rgba(255,0,0,0.2)'});
$('figure.graph .x-axis .tick:nth-child(even) text').css('display', 'block');
$('figure.graph .y-axis .tick:nth-child(even) text').css('display', 'block');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment