by
3 4
0
1
80
0
Specified
Created
Modified May 18, 2017
No tags for this snippet yet.
Languagecsharp
LanguageJavaScript
SourceGitHub
SourceMyGists

print crosfilter results in console

print crosfilter results in console: 
print_filter.js
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1870469/print-crosfilter-results-in-console?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/** * Created by user on 18/05/17. */ // Super useful for debug in web console function print_filter(filter){ var f=eval(filter); if (typeof(f.length) != "undefined") {}else{} if (typeof(f.top) != "undefined") {f=f.top(Infinity);}else{} if (typeof(f.dimension) != "undefined") {f=f.dimension(function(d) { return "";}).top(Infinity);}else{} console.log("DC DEBUG: "+filter+"("+f.length+") = "+JSON.stringify(f).replace("[","[\n\t").replace(/}\,/g,"},\n\t").replace("]","\n]")); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus