Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2XB3FinalProject
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Schankula
2XB3FinalProject
Commits
c540c3f1
Commit
c540c3f1
authored
6 years ago
by
Christopher Schankula
Browse files
Options
Downloads
Patches
Plain Diff
merge
parent
5d5ad732
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tomcat/webapps/Trawl/histogram.js
+1
-0
1 addition, 0 deletions
tomcat/webapps/Trawl/histogram.js
tomcat/webapps/Trawl/histogram.jsp
+8
-3
8 additions, 3 deletions
tomcat/webapps/Trawl/histogram.jsp
tomcat/webapps/Trawl/script.js
+1
-1
1 addition, 1 deletion
tomcat/webapps/Trawl/script.js
with
10 additions
and
4 deletions
tomcat/webapps/Trawl/histogram.js
+
1
−
0
View file @
c540c3f1
...
...
@@ -19,6 +19,7 @@ function histogram(x,y){
size
:
18
,
color
:
'
#7f7f7f
'
}
,
autosize
:
true
},
yaxis
:{
title
:
'
Individual count
'
,
titlefont
:
{
...
...
This diff is collapsed.
Click to expand it.
tomcat/webapps/Trawl/histogram.jsp
+
8
−
3
View file @
c540c3f1
...
...
@@ -5,13 +5,18 @@
<%
TrawlExpert
te
=
(
TrawlExpert
)
request
.
getServletContext
().
getAttribute
(
"trawl"
);
BasicSearchResult
result
=
te
.
rangeSearch
(
2
,
1960
,
2016
);
JSONParser
parser
=
new
JSONParser
();
JSONObject
req
=
(
JSONObject
)
parser
.
parse
(
request
.
getReader
().
readLine
());
Integer
taxonId
=
(
int
)
(
long
)
req
.
get
(
"taxId"
);
Integer
yearLo
=
(
int
)
(
long
)
req
.
get
(
"yearF"
);
Integer
yearHi
=
(
int
)
(
long
)
req
.
get
(
"yearT"
);
BasicSearchResult
result
=
te
.
rangeSearch
(
taxonId
,
yearLo
,
yearHi
);
BST
<
Integer
,
Integer
>
histogram
=
result
.
histogram
();
Iterable
<
Integer
>
results
=
histogram
.
keys
();
JSONParser
parser
=
new
JSONParser
();
JSONObject
js
=
new
JSONObject
();
JSONArray
x
=
new
JSONArray
();
...
...
This diff is collapsed.
Click to expand it.
tomcat/webapps/Trawl/script.js
+
1
−
1
View file @
c540c3f1
...
...
@@ -199,7 +199,7 @@ function callOutput(){
var
params
=
JSON
.
stringify
({
taxId
:
Number
(
taxGroup
),
yearF
:
Number
(
yearFrom
),
yearT
:
Number
(
yearTo
)});
//Switch Output Display
if
(
outType
===
"
H
istogram
"
){
if
(
outType
===
"
h
istogram
"
){
reqHistogram
(
params
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment