Skip to content

Instantly share code, notes, and snippets.

@heavysixer
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save heavysixer/11322617 to your computer and use it in GitHub Desktop.
Save heavysixer/11322617 to your computer and use it in GitHub Desktop.
proposed filter api for d4
// create a chart
var columnChart = d4.baseChart()
// mix in a feature to the chart
.mixin([{name: 'bars', feature: d4.features.stacked-shapes-series}])
// when using the feature apply a filter to the rects.
.using('bars',function(bar){
bar.svgFilter('feGaussianBlur', function(filter){
filter
.in("SourceGraphic")
.stdDeviation("5");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment