<h1>Analytics</h1>
<%= link_to "All",analytics_all_path %> | <%= link_to "Filter",analytics_filter_path %> | <%= link_to "Group",analytics_group_path %>

<p>To filter data to be imported for analysis, put the JSON body in the text box below and click the button</p>
<textarea id="body_data" cols="60" rows="10"></textarea>
<br>
<button type="button" onclick="analyzeFiltered()">Analyse Filtered Data</button>

<h1>Analytics</h1>
<%= link_to "All",analytics_all_path %> | <%= link_to "Filter",analytics_filter_path %> | <%= link_to "Group",analytics_group_path %>

<p>To filter data to be imported for analysis, put the JSON body in the text box below and click the button</p>
<textarea id="body_data" cols="60" rows="10"></textarea>
<br>
<button type="button" onclick="analyzeFiltered()">Analyse Filtered Data</button>

<hr>

<h2> Sample Body </h2>
<pre>
{
  "filter" : {
    "username" : ["peeyush"]
  }
}
</pre>

<hr>

<h2> Brief Description </h2>
<pre>
{
  "filter" : {
    "activity" : [list of activities],
    "application" : [list of applications],
    "username" : [list of usernames],
    "time" : ["start time","end time"],
    "parameters" : {
      "keys" : [list of keys],
      "pairs": {list of key-value pairs. Eg. {"teacher":"X"},{"level":"5"}}
    }
    "extras" : {
      "keys" : [list of keys],
      "pairs": {list of key-value pairs. Eg. {"teacher":"X"},{"level":"5"}}
    }
  }
}
</pre>
Add description of Filter functionality in DataInteractive
Add description of Filter functionality in DataInteractive
