Blocks: Analytics graphs

block_analytics_graphs
Maintained by Picture of Marcelo Schmitt Marcelo Schmitt
Block that generates graphs intendend to facilitate pedagogical decisions. The graphs have zoom capabilities and allow fast communication with students through email.
541 sites
861 downloads
31 fans

This plugin provides five graphs that may facilitate the identification of student profiles. Those graphs allow the teacher to send messagens to users according to their behaviour inside a course. The graphs show:

  1. Grades Chart - The grades distribuition in a box graph to identifiy the differences among evaluations and students with problems.
  2. Content Accesses Chart - Which users accessed many different rsources.
  3. Number of Active Users Chart - How manu users are active in a certain time of day.
  4. Assignment Submissions Chart - Which users have submited assignments on time or late (tasks, quizzes and hotpotatoes).
  5. Hits distribution Chart - How each user is accessing the course and its resources in each cours week.

It is possible to click over graph elements in order to send email to a group of students (first two graphs) or to a particular student (last graph).


Thanks to Nadav Kavalerchik for the navigation code.

Thanks to Paul Nijbakker / Evgenii Pavliuk for so many things. Lots of new features. (https://github.com/marceloschmitt/moodle-block_analytics_graphs/releases/tag/v.4.0)

Thanks to Ben Chenoweth for H5P and Turnitin code.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Picture of Marcelo Schmitt
Marcelo Schmitt (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Marcelo Schmitt
    Sun, 5 Mar 2017, 12:29 AM
    WZ Z, it is working. How may I help you.
  • Picture of Paul Nijbakker
    Mon, 13 Mar 2017, 3:54 PM
    WZ Z, we have tested the block in topics format, collapsed topics, grid, single topic and flexible topics format. I works in all cases. What exactly does not work in your case? Note that the block cannot generate any data if there are no students in the course!
  • Picture of Dinis Medeiros
    Thu, 16 Mar 2017, 3:39 AM
    Error: Table '..._mood312.mdl_grade_grades' doesn't exist
    This is because in my config.php i have $CFG->prefix = 'mdlvn_'; and not the usual $CFG->prefix = 'mdl_';
    In moodle/blocks/analytics_graphs/grades_chart.php, line 41 i changed mdl to mdlvn and it works.
  • Picture of Dinis Medeiros
    Thu, 16 Mar 2017, 3:48 AM
    Notice: Undefined variable: resultado in /home/pm1yedpj/public_html/moodle/blocks/analytics_graphs/lib.php on line 33
    a -> this letter keep showing in top of some charts
  • Picture of Marcelo Schmitt
    Thu, 16 Mar 2017, 3:56 AM
    Dinis, you found a stupid bug. Of course I could not have written "FROM mdl_grade_grades AS gg". The correct syntax would have been:

    FROM {grade_grades} AS gg

    Sorry, please. I will fix it.
  • Picture of Marcelo Schmitt
    Thu, 16 Mar 2017, 8:02 AM
    Dinis, I fixed grades problem. This was critical.
  • Me at the Moodle Moot NZ11
    Sun, 19 Mar 2017, 8:29 AM
    You can try this Block for real on our public plugins site: http://plugins.moodlebites.com
  • Picture of syusan Jun
    Mon, 8 May 2017, 9:22 AM
    Hello
    Can I add an added resource module to hits.php or graphresourceurl.php ?
    For example videofile module
  • Picture of Paul Nijbakker
    Mon, 8 May 2017, 1:56 PM
    Hi Syusan,
    Were are developing the block to display all standard modules and a number of popular third party modules. However, the videofile module is presently not available for any Moodle 3 version (latest is for Moodle 2.7, support for which ends now), so for that you'd require a custom hack.
  • Picture of Marcelo Schmitt
    Mon, 15 May 2017, 8:49 PM
    Syusan

    You gave us an ideia. Lets make something generic to allow inclusion of other modules.
  • Picture of Marcelo Schmitt
    Thu, 29 Jun 2017, 8:13 PM
    We got a new version. I think everybody will enjoy. Many thanks to Paul Nijbakker, Evgenii Pavliuk and Ben Chenoweth. Great to see three continents working together.
  • Ricardo Caiado
    Fri, 30 Jun 2017, 12:06 AM
    Hi,

    Just installed "v4.0" and got this error message:

    ---------------------------
    Debug info: ERROR: column "md.name" must appear in the GROUP BY clause or be used in an aggregate function
    LINE 1: SELECT cm.module, md.name
    ^
    SELECT cm.module, md.name
    FROM mdl_course_modules cm
    LEFT JOIN mdl_modules md ON cm.module = md.id
    WHERE cm.course = $1
    GROUP BY cm.module
    [array (
    0 => '449',
    )]
    Error code: dmlreadexception
    Stack trace:

    line 479 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 250 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
    line 800 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
    line 1190 of /blocks/analytics_graphs/lib.php: call to pgsql_native_moodle_database->get_records_sql()
    line 3989 of /lib/navigationlib.php: call to block_analytics_graphs_extend_navigation_course()
    line 3511 of /lib/navigationlib.php: call to settings_navigation->load_course_settings()
    line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
    line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
    line 136 of /blocks/settings/block_settings.php: call to moodle_page->__get()
    line 288 of /blocks/moodleblock.class.php: call to block_settings->get_content()
    line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 976 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1028 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 476 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
    line 39 of /theme/bootstrapbase/renderers/core_renderer.php: call to core_renderer->standard_head_html()
    line 47 of /theme/pioneer/layout/course.php: call to theme_bootstrapbase_core_renderer->standard_head_html()
    line 1028 of /lib/outputrenderers.php: call to include()
    line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()
    ---------------------------

    Ubuntu 17.04
    PHP 7.0
    PostgreSQL 9.3
    Moodle 3.1.5+


  • Picture of Marcelo Schmitt
    Mon, 3 Jul 2017, 9:09 PM
    I think I correct it, Ricardo
  • Ricardo Caiado
    Mon, 3 Jul 2017, 9:20 PM
    It is still 4.0 version...

    -----------------------------

    Debug info: ERROR: column "md.name" must appear in the GROUP BY clause or be used in an aggregate function
    LINE 1: SELECT cm.module, md.name
    ^
    SELECT cm.module, md.name
    FROM mdl_course_modules cm
    LEFT JOIN mdl_modules md ON cm.module = md.id
    WHERE cm.course = $1
    GROUP BY cm.module
    [array (
    0 => '2945',
    )]
    Error code: dmlreadexception
    Stack trace:

    line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 242 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
    line 776 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
    line 45 of /blocks/analytics_graphs/block_analytics_graphs.php: call to pgsql_native_moodle_database->get_records_sql()
    line 288 of /blocks/moodleblock.class.php: call to block_analytics_graphs->get_content()
    line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1197 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1249 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 3839 of /lib/outputrenderers.php: call to block_manager->region_has_content()
    line 40 of /theme/fordson/layout/course.php: call to core_renderer->blocks()
    line 1162 of /lib/outputrenderers.php: call to include()
    line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()

  • Ricardo Caiado
    Mon, 3 Jul 2017, 9:23 PM
    It is weird...

    When I log in @ Moodle: Release date: Thursday, 29 June 2017, 3:47 PM

    When I log off @ Moodle: Release date: sexta, 30 Jun 2017, 02:47

    In both cases the version is "4.0".

1 2 3 4
Please login to post comments