Open lgrkvst opened 1 year ago
Unsure if the project has found any active maintainers. In the meantime, if you like me are looking for a way to make dataTable.columns accept path into deep objects (e.g. info.address.zip), here's a way:
info.address.zip
Change d[v] on this line: https://github.com/dc-js/dc.js/blob/0e37f132c00496555e9cd44fc706234d1a8a29b2/src/charts/data-table.js#L74
d[v]
into:
v.split(".").reduce((o, i) => o[i], d)
Unsure if the project has found any active maintainers. In the meantime, if you like me are looking for a way to make dataTable.columns accept path into deep objects (e.g.
info.address.zip
), here's a way:Change
d[v]
on this line: https://github.com/dc-js/dc.js/blob/0e37f132c00496555e9cd44fc706234d1a8a29b2/src/charts/data-table.js#L74into:
v.split(".").reduce((o, i) => o[i], d)