Skip to content

Commit

Permalink
Implémentation des outils de suivi du nombre d'avis à base des tablea…
Browse files Browse the repository at this point in the history
…ux d’agrégats #1179

 Affichage des statistiques sur le page Avis.WebHome
  • Loading branch information
ldubost committed Dec 21, 2022
1 parent 4051586 commit a636859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wikis/xwiki/src/main/resources/Avis/WebHome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
(((
== Avis par an ==

#set($query = "select date_format(day, '%Y') as Année, sum(nbAvis) as nbAvis from AvisAggregateByDay where day>'2020-01-01' group by 1")
#set($query = "select date_format(day, '%Y') as Année, sum(nbAvis) as nbAvis from AvisAggregateByDay where day>'2018-01-01' group by 1")
#set($results = $services.query.hql($query).execute())

{{tableToChartJS type="bar" title="Avis par an" table="tableByYear" /}}
Expand Down Expand Up @@ -80,7 +80,7 @@

== Avis par jour ==

#set($query = "select day as Jour, sum(nbAvis) as nbAvis from AvisAggregateByDay where day>'2020-01-01' group by 1")
#set($query = "select day as Jour, sum(nbAvis) as nbAvis from AvisAggregateByDay where day>'2022-01-01' group by 1")
#set($results = $services.query.hql($query).execute())

{{tableToChartJS type="bar" title="Avis par jour" table="tableByDay" /}}
Expand Down

0 comments on commit a636859

Please sign in to comment.