{"version":"1.0","type":"rich","title":"print crosfilter results in console","description":"This example demonstrates a debugging utility for Crossfilter, printing the contents of any filtered dataset or dimension directly to the browser console. The `print_filter` function accepts a filter expression, evaluates it, and then converts the result to a readable JSON string with formatted line breaks. It handles three cases: plain arrays, Crossfilter groups with a `top` method, and dimensions requiring a dummy reduction. The code relies on the Crossfilter API’s `top(Infinity)` to retrieve all records and uses `JSON.stringify` with custom replacements for visual clarity. It provides a quick way to inspect live data states during interactive dashboard development.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9452eae1352bc706c186bd7852d97935?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}