Skip to main content
100%

dc.js checkbox

✓ Published0🌍 Public
KKatiRG
Last edited Dec 8, 2015
Created on Nov 30, 2015

This example uses dc.js row charts and bar charts with crossfilter to create interactive checkbox-style filters. The row chart renders two square bars labeled "A" and "B", which act as checkboxes for filtering the dataset by index type. A separate dc.barChart displays the count of records for each index (Idx 1, 2, and 3) from a CSV file containing Index and Year columns. Filtering is applied through crossfilter dimensions, and the bar chart updates its counts accordingly while the row chart's fixed-size bars use a value accessor to maintain their checkbox appearance.

AI-generated description

Fakes a pair of checkboxes using a dc rowChart and making the bars square.

Similar vizzes