Skip to content
Snippets Groups Projects
Commit 34d78876 authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

remove null output and prettify histogram js

parent d5da1e37
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,10 @@
out.print("var y=[];");
out.print("var x=[];");
for (Integer year: results){
out.print("y.push("+ histogram.get(year) +");");
out.print("x.push('"+ year +"');");
out.print("\ty.push("+ histogram.get(year) +");\n");
out.print("\tx.push('"+ year +"');\n");
}
out.print((String) request.getAttribute("url"));
%>
var data = [
......
/*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/9.0.6
* Generated at: 2018-03-28 13:19:07 UTC
* Generated at: 2018-03-28 13:37:40 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
......@@ -146,12 +146,10 @@ public final class histogram_jsp extends org.apache.jasper.runtime.HttpJspBase
out.print("var y=[];");
out.print("var x=[];");
for (Integer year: results){
out.print("y.push("+ histogram.get(year) +");");
out.print("x.push("+ year +");");
out.print("\ty.push("+ histogram.get(year) +");\n");
out.print("\tx.push('"+ year +"');\n");
}
out.print((String) request.getAttribute("url"));
out.write("\r\n");
out.write("\r\n");
......
/*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/9.0.6
* Generated at: 2018-03-28 13:10:15 UTC
* Generated at: 2018-03-28 13:32:09 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment