d3-metatable

a table element for heterogenous objects

A table view component for d3js designed for JSON objects of varying schemas.

container.append('div')
    .data([props])
    .call(
        metatable()
            .on('change', function(di) {
                // a row's data is changed 
            })
            .on('rowfocus', function(di) {
                // a row is focused 
            })
metatable()

A behavior that expects to be called with a selection an array of objects of data. Emits events:

  • rowfocus: a row is focused. returns the object and the index
  • change: a row is changed. returns the object and the index