Skip to content

Log Data Visualization Analysis

akshay31057 edited this page Jul 2, 2017 · 3 revisions

Description

  • This sub-module visualizes the event log data with two visualization charts:

    • Bar Chart: This chart represents the total count of each operation in the database. X axis represents the triggering count for each operation and Y axis represents the name of each operation.

    • Line Graph: This graph represents the monthly trigger count of each operation. X axis represents each month, along with the year, starting from date corresponding to the timestamp of the first entry in the database. Y axis represents the triggering count for each operation for that corresponding month.

  • This module makes use of the d3.js module of Drupal. This caters various libraries and predefined functions for the development of various SVG data visualization techniques with minimal overhead.

  • There are two dependencies for the log_data_visualization_analysis module:

Implementation

  • A new sub-module named log_data_visualization_analysis is added. The .module file implements the desired action using hook api functions namely, hook_menu and hook_permission.

  • Details about this functions can be found at:

  • Besides the above hook api functions, some user defined functions in the sub-module are:

    • log_data_visualization_analysis_admin_form: This function creates a ‘Go to Visualizations’ button for redirecting to the visualizations page.

    • log_data_visualization_analysis_select: This function is called when the ‘Go to Visualizations’ button is clicked and it redirects the user to the visualizations page.

    • log_data_visualization_analysis_linegraph: This function creates a line graph for representing the monthly trigger count of each operation. Firstly, it retrieves the distinct operations from the database, then calculates their count for a particular month and finally converts that data to the desired format for calling the d3_draw() function from d3 module.

    • log_data_visualization_analysis_bar: This function creates a bar chart for representing the total count of each operation in the database. Firstly, it retrieves the distinct operations from the database, then calculates their total count in the database and finally converts that data to the desired format for calling the d3_draw() function from d3 module.