Skip to content

Instantly share code, notes, and snippets.

@katdowns
Created January 18, 2014 00:01
Show Gist options
  • Save katdowns/8483997 to your computer and use it in GitHub Desktop.
Save katdowns/8483997 to your computer and use it in GitHub Desktop.
raphael pattern
var s = r_obj.path(county.path);
s.attr({
stroke: '#999',
'stroke-width': '.3',
fill: 'url(http://www.washingtonpost.com/wp-srv/special/politics/primary-tracker/images/hash-bg-sm.png)',
'fill-opacity' : '.5',
'stroke-linejoin': 'round'
});
$(s.node).attr({
'name': county.name,
'data-fips': county.fips,
'fill-type': 'hash',
'data-value': 0
})
races.push(s);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment