From the course: DC.js for Data Science Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Filtering with a range chart - JavaScript Tutorial
From the course: DC.js for Data Science Essential Training
Filtering with a range chart
- [Instructor] So far, we've filtered our charts by clicking on them, but DC will also let you filter using something called a brush. If we scroll down in this DC example, you see an area chart here, which shows movements in a price index, and then, underneath that, we have a shallower chart, which actually shows volume, and by clicking and dragging on the lower chart, we can apply a filter to the upper one, because the two charts are linked. The proper name for this shallow, lower chart, is a range chart. Not only can I click and drag a time period, I can also drag that period to different locations. We're going to go back to our line chart and add a volume chart underneath. So, here's the line chart the last time that we saw it, and I just want to point out that, by default, if this were part of a dashboard, we would be able to click and drag to create a filter on the chart itself. So, that's the default behavior, but we're going to switch that off and add a linked range chart…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Linking two charts together11m 56s
-
(Locked)
Understanding graphical filtering20m 59s
-
(Locked)
Filtering with a range chart5m 44s
-
(Locked)
Filtering with brush4m 49s
-
(Locked)
Filtering with brush in two dimensions6m 14s
-
(Locked)
Adding finishing touches with dc.dataCount and Reset All11m 41s
-
(Locked)
Adding finishing touches with filterPrinter & numberDisplay11m 28s
-
(Locked)
Complementing DC with D313m 5s
-
(Locked)
-