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 (Drupal 6)
-
Chart API
› 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. - JQuery UI (only required to produce the datepicker widgets on the analytics form)
Recommended modules (Drupal 7)
-
Chart API
› Provide option to output charts as images using the Google Chart API.
Provided charts
- Content creation
- Comment creation
- Content creation by type
- Aggregate content creation
- User creation
- User shouts (requires Shoutbox)
- User point transactions (requires User Points)
- Group creation (requires Organic groups)
- Group joins (requires Organic groups)
- Invites sent (requires Invite)
- Invites accepted (requires Invite)
- Statuses shared (required Facebook-style statuses)
- Private messages (requires Private message) -- only in 7.x dev branch (for now)
Provided chart plugins (Drupal 7)
- HTML tables
- Chart images (requires chart)
› Uses the Google Chart API
Quant 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 Quant;
$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. The API varies slightly for 6.x and 7.x.)
Quant Chart API (chart plugins - Drupal 7)
- Implement hook_quant_charts() and the QuantChart class to render charts using your preferred chart library or module.
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Media, Statistics
- Reported installs: 345 sites currently report using this module. View usage statistics.
- Downloads: 1,103
- Last modified: May 11, 2012
