Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SVG filters on chart elements #16

Open
heavysixer opened this issue May 20, 2014 · 2 comments
Open

Support SVG filters on chart elements #16

heavysixer opened this issue May 20, 2014 · 2 comments

Comments

@heavysixer
Copy link
Owner

Something like this is the proposed API:

// 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");
      });
 });

Thoughts?

@Timopheym
Copy link

Looks cool, in D4 way. Famo.us will use modificator, but "using" looks flexible.

@heavysixer
Copy link
Owner Author

@Timopheym cool will look up modificator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants