Last active
August 29, 2015 14:06
-
-
Save abersager/0d534eaacaef4eb5a0ad to your computer and use it in GitHub Desktop.
responsive-graphs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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