function theme_opigno_lrs_stats_dashboard_widget_total_number_of_page_view_current_week_aggregate_day_json in Opigno TinCan API 7
File
- modules/
opigno_tincan_api_stats/ includes/ dashboard/ theme.inc, line 11 - theme functions for morris.js (JSON)
Code
function theme_opigno_lrs_stats_dashboard_widget_total_number_of_page_view_current_week_aggregate_day_json($variables) {
$palette = color_get_palette('platon');
drupal_json_output(array(
'element' => OPIGNO_LRS_STATS_DASHBOARD_CONTAINER,
'data' => $variables['data'],
'resize' => TRUE,
'xLabels' => array(
'day',
),
'xkey' => 'day',
'ykeys' => array(
'value',
),
'labels' => array(
t('Number of view per day'),
),
'lineColors' => array(
$palette['dark_blue'],
),
));
}