Last active
August 29, 2015 14:00
-
-
Save heavysixer/11322617 to your computer and use it in GitHub Desktop.
proposed filter api for d4
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
// 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