Global

Methods


PivotTable(matrixDataSet, elId, selectObsCallbackFunction, metadataCallbackFunction)


Creates a pivot table based on the contents of the @MatrixDataSet, the pivot table is appended
to the HTML element with the id supplied on construction.



Click listeners are added to observation cells, and metadata points

Parameters:
Name Type Description
matrixDataSet

the dataset to create the table for

elId

the HTML element to append the HTML Pivot table to

selectObsCallbackFunction

(optional) this function is called with the @MatrixObservation when the user clicks an observation cell in the table

metadataCallbackFunction

(optional) this function is called with an Array of @ReferenceMetadata when the user clicks on a Metadata Info Icon

Example
<table id="matrixPivotTable" cellspacing="0">
  <thead>
    <tr>
      <th id="th_SERIES" colspan="1" rowspan="1" class="right-pointing-label pivot">Series <i class="icon-angle-right"></i></th>
      <th id="th_0" colspan="1" rowspan="2" class="horz-heading">Foreign direct investment, net (BoP, current US$)</th>
      <th id="th_1" colspan="1" rowspan="2" class="horz-heading">Foreign direct investment, net inflows (% of GDP)</th>
    </tr>
    <tr>
      <th id="th_TIME_PERIOD" colspan="1" rowspan="1" class="down-pointing-label pivot">Time period <i class="icon-angle-down"></i></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th id="th_0" colspan="1" rowspan="1" class="vert-heading">2005</th>
      <td id="0:0:0:0" key="0:0:0:0" class="data">-7018840838.65452</td>
      <td id="0:1:0:0" key="0:1:0:0" class="data">-3.53555041198946</td>
    </tr>
    <tr>
        <th id="th_1" colspan="1" rowspan="1" class="vert-heading">2006</th>
        <td id="0:0:0:1" key="0:0:0:1" class="data">-5806153739.85575</td>
        <td id="0:1:0:1" key="0:1:0:1" class="data">4.19503311948951</td>
    </tr>
  </tbody>
</table>

SunBurst()

TODO