Updated Usage page display to fix several issues.
- Moved mouse pointer instruction.
    - Made textual changes to "No. of plans by template"
    - The bar charts for  "No. users joined during last year" and
    "No. plans during last year" months are in ascending order. They were
    in descending order previously. Updated the count statistics methods
    in statistics_controller.rb.
    - The "No. plans by template" bar chart is now  replaced by a stacked bar chart
    as this is visually better for large data.
    - updated the by_template method in the create_or_update.rb with code from @xsrust.
    This now aggregates template counts for a month correctly.

    Fix for issue #1679.
dev
1 parent a718b25 commit 29d602a47819e172211281a2dbd0ed3dd026f49c
@John Pinto John Pinto authored on 12 Apr 2019
Showing 4 changed files
View
app/controllers/api/v0/statistics_controller.rb
View
app/javascript/views/usage/index.js
View
app/models/stat_created_plan/create_or_update.rb
View
app/views/usage/index.html.erb