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
- 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)
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
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Statistics
- Reported installs: 221 sites currently report using this module. View usage statistics.
- Last modified: August 26, 2011