function yandex_metrics_reports_chart_alter in Yandex.Metrics 8.2
Same name and namespace in other branches
- 7.2 yandex_metrics_reports/yandex_metrics_reports.module \yandex_metrics_reports_chart_alter()
Implements hook_chart_alter().
File
- yandex_metrics_reports/
yandex_metrics_reports.module, line 526 - The main code of Yandex.Metrics Reports module.
Code
function yandex_metrics_reports_chart_alter(&$chart) {
if (!empty($chart['#fluid_grid_adjust']['#max'])) {
_yandex_metrics_chart_adjust_resolution($chart['#data'], $chart['#fluid_grid_adjust']['#max']);
// Disable default adjust logic.
$chart['#adjust_resolution'] = FALSE;
}
}