I am trying to create a row chart with dc.js which shows the top 5 URLs and group the rest (not top 5) into 'Others'. From what I have searched online, it is possible by using cap() and othersGrouper() under capMixin (https://www.tutorialspoint.com/dcjs/dcjs_capmixin.htm)
This is part of my code:
urlChart
.width(300)
.height(250)
.dimension(url)
.group(numOfUrl)
.xAxis().ticks(4)
.cap(10)
.othersGrouper(false);
I am getting the error saying that cap() and othersGrouper() are not functions. So I am wondering what I did wrong here.