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.

Adding finishing touches with dc.dataCount and Reset All

Adding finishing touches with dc.dataCount and Reset All - JavaScript Tutorial

From the course: DC.js for Data Science Essential Training

Start my 1-month free trial

Adding finishing touches with dc.dataCount and Reset All

- [Instructor] When we look at official examples of DC, there are a few features that you might not even have noticed, but pack quite a punch. Let's click on Gain. Can you see that we have a sentence here telling us how many records are included within our filters and how many records we have in total? And that updates to keep step with all of the filters that we apply. Now this is useful information in its own right, but also because often with DC we limit the number of rows that we show, so your users, here for example, can only see 10 rows and a grouping row. They have no other way of knowing apart from this sentence that the total number of records within the filters is 357. And there's one other useful thing here, and that's Reset All. So we've got several reset buttons available to us now, one, two, three, because we've applied filters to three charts. But we can reset all of them in one go by clicking the Reset All link. And so we're going to have a look now at creating those…

Contents