Quantitative analytics

Quant provides an engine for producing quantitative, time-based analytics for virtually any Drupal component. Quant takes raw data about normal Drupal actions, such as node creation, and plots the activity over time, with the selected time being configurable. See the screenshot provided for a better understanding.

Requirements

If you're using chart-6.x-1.2, or lower, it is highly recommended that you apply this patch.

If you're using chart-6.x-1.3, it is highly recommended that you apply this patch.

Provided charts

API (easily provide your own charts)

The real power of Quant lies in it's ability to generate these charts with very little provided information. Quant offers a simple, yet flexible API to allow developers to include quant charts with their modules. If a maintainer of a module that you like isn't interested in providing Quant integration, submit a feature request ticket here.

API example

Provide a quant chart of comment creation over time

function my_module_quants() {
  $quants = array();

  $quant = new stdClass;
  $quant->id = 'comment_creation';  // Unique ID
  $quant->label = t('Comment creation');  // The title of the chart
  $quant->labelsum = TRUE;  // Add the sum of items over time to the title
  $quant->table = 'comments';  // The database table
  $quant->field = 'timestamp';  // The column that stores the timestamp
  $quant->dataType = 'single';  // Only one datapoint used
  $quant->chartType = 'line';  // The type of chart
  $quants[$quant->id] = $quant;

  return $quants;
}

(See quant.api.php for more information - as Quant offers many more options for flexibility)

Project Information

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.1 tar.gz (19.11 KB) | zip (24.8 KB) 2011-Jul-06 Notes

Development releases

Version Downloads Date Links
6.x-1.x-dev tar.gz (20.71 KB) | zip (26.65 KB) 2011-Dec-20 Notes

Maintainers for Quant

  • mikestefff - 48 commits
    last: 7 weeks ago, first: 1 year ago

Issues for Quant

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 11 Aug 10
nobody click here