You are here

function QuantChartTable::build_single in Quant 7

Build a table chart for single datapoints

1 call to QuantChartTable::build_single()
QuantChartTable::build in plugins/QuantChartTable.inc
Implements parent::build().

File

plugins/QuantChartTable.inc, line 57

Class

QuantChartTable
QuantChart plugin to provide simple HTML table charts

Code

function build_single() {
  $this->header = array(
    t('Date'),
    t('Count'),
  );
  $this->rows = array();
  foreach ($this->quant->data->data as $date => $count) {
    $this->rows[] = array(
      $date,
      $count,
    );
  }
}