customizing dc-tableview via the underlying DataTables object

Viewed 110

dc-tableview is an interactive chart for dc.js library that presents filtered data (by crossfilter.js) in tableview form. The method "getDatatable()" returns underlying DataTable object for advanced manipulation (https://github.com/karenpommeroy/dc-tableview#object-getdatatable).

Question: how exactly can I use this method (after initialization), in order to be able to (for example):

  1. Change the strings (like the "search" label)
  2. Format numbers in the columns
  3. Perform conditional formatting (like red negative numbers)
  4. (work around this issue* in tableview by having access to the DataTable object)

Given that:

const tableView = new dc.tableview("#tableview-container");
  • default header of the table, how the header (width) should be
0 Answers
Related