JavaScript Interface
The JavaScript Interface features a set of publicly callable JavaScript functions to retrieve the Event Stream and/or redraw the treemap according to a custom control/filter. The Event Stream is a real-time feed of all of the cell data for the currently hovered over (i.e. “active”) cell. The JavaScript Interface provides a platform for creating custom information displays, custom charts, custom treemap controls, and custom filters – which can leverage separate databases if desired.
Each JavaScript function will be described in more detail below.
-
7.1 – Cell Data
- getCellDataForAttr(int cell_id, string attrName)
- getCellData(int cell_id)
-
7.2 – Cell IDs
- getAllCellIds()
- getVisibleCellIds()
- getTrackedCellIds()
- getMouseOverCellId()
-
7.3 – Cell Actions
- trackVisibleCells()
- untrackVisibleCells()
-
7.4 – Controls Interface
- applyControlSpec(String sXML)
- removeFilterGroup(String filterGroup)
- removeCelltext()
-
7.5 – Treemap Status
- subscribe('cellHover', function(cellData))
- subscribe('treemapInitialDraw', function())
- subscribe('treemapDraw', function())