dc.js example
This example demonstrates dc.js charts for exploring the Titanic dataset. It loads the passenger data from a tab-separated values file and uses crossfilter to create dimensions for gender and age group. Two charts are rendered: a pie chart showing the distribution of passengers by gender and a bar chart displaying the distribution by age group, both using reduceSum to count passengers. The visualization is built with d3.js, crossfilter2, and dc.js, and can be used as a template for creating coordinated views with dc.js.
AI-generated descriptionThis is a blank dc.js bl.ock template - please fork this bl.ock when asking for help on Stack Overflow or the dc.js user group, or to demonstrate bugs when filing an issue on GitHub.
This was created with blockbuilder.org - you can use blockbuilder to fork and edit this bl.ock interactively. Or you can edit your fork using gist.github.com, or even clone the gist as a git repository.
See this block for a complete example, with data: <a href='http://bl.ocks.org/gordonwoodhull/ecce8e32d64c662cffd5'>dc.js example</a>
forked from <a href='http://bl.ocks.org/gordonwoodhull/'>gordonwoodhull</a>'s block: <a href='http://bl.ocks.org/gordonwoodhull/9ab997c9a8d7d3380364'>dc.js example</a>