Skip to content
Snippets Groups Projects

Issue #3212318: Improvments for Follow tag statistics

Files
2
@@ -77,6 +77,13 @@ class MorrisTagFollowGraphKPIVisualization extends KPIVisualizationBase {
->count()
->execute();
$new_followers = $flagging_storage->getAggregateQuery()
->condition('entity_id', $tids, 'IN')
->condition('created', strtotime('first day of this month'), '>=')
->groupBy('uid')
->count()
->execute();
$ymax = 0;
$diff = 0;
@@ -113,7 +120,7 @@ class MorrisTagFollowGraphKPIVisualization extends KPIVisualizationBase {
'#type' => 'bar',
'#uuid' => $uuid,
'#followers' => $flags,
'#difference' => $diff,
'#difference' => $new_followers,
'#attached' => [
'library' => [
'kpi_analytics/morris',
Loading