Skip to content

Commit

Permalink
better stat
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Oct 11, 2023
1 parent d205f99 commit 8024f86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions meetup/stats/stats.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ $piterjs_meetup_stats $mol_page
title \Дни
labels <= days /
<= Counts $mol_plot_ruler_vert
title \Число
series_y <= joins_per_days /
<= Joins $mol_plot_bar
title \Регистрации
title <= joins_title \Регистрации
series_y <= joins_per_days /
<= Details $mol_plot_mark_cross
labels <= days /
Expand Down
5 changes: 5 additions & 0 deletions meetup/stats/stats.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ namespace $.$$ {
joins_per_days() {
return Object.values( this.joins_stat() ).map( moments => moments!.length )
}

@ $mol_mem
joins_title() {
return super.joins_title() + ` (${ Object.keys( this.joins_stat() ).length })`
}

}
}

0 comments on commit 8024f86

Please sign in to comment.