CSC/ECE 517 Spring 2016 E1628 Visualization

From Expertiza_Wiki
Revision as of 18:35, 3 April 2016 by Vbadugu (talk | contribs)
Jump to navigation Jump to search

Purpose

This project is intended to enhance the visualizations currently provided by Expertiza

Task Description

  1. When a review is shown, use different background colors for adjacent responses or adjacent reviews, instead of so much whitespace.
  2. In the “alternate view,”
  1. Clicking on “Avg.” should sort the rows by average score, from highest to lowest. Clicking again should change the sort order to from lowest to highest. Clicking a 3rd time should change it back to highest to lowest, etc.
  2. Clicking on some other button or icon should sort the columns in terms of total review scores. Clicking once should bring the highest-scored review to the right; clicking again should bring the lowest-scored review to the left, etc.
  3. Hovering over a box that has a text comment associated with it should show the comment in a “tool tip” format.
  4. Hovering over a number in the “Question id” column should bring up a “tool tip” that shows the text of the criterion (question).
  5. The “Question ID” label should be changed to “Criterion”.

Overview of approach

To achieve task 2.a we intend to use tablesorter jQuery plugin. Tablesorter auto-detects the data types in the table and sort the rows either in ascending or descending order when a column header is clicked.

Install

Add the following line in Gemfile

gem 'jquery-tablesorter'

Usage

In the table add table sorter class as shown below

<table id="myTable" class="tablesorter"> 

To achieve task 2.c and 2.d we will be including "tooltip" to all the cells in the table with title attribute set to contain comment or criterion based on the data cell. To achieve task 2.e we will be renaming "Question Id" table header to "Criterion"