Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
86279d4f
Commit
86279d4f
authored
Aug 20, 2019
by
Anne Blankert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add last quantile class
parent
74f703ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
attrinfo.html
public/attrinfo.html
+4
-3
No files found.
public/attrinfo.html
View file @
86279d4f
...
...
@@ -407,9 +407,9 @@
break
;
case
'quantile'
:
let
percentileBreaks
=
globalStats
.
percentiles
.
reduce
((
result
,
percentile
)
=>
{
percentile
.
pcount
=
1
;
if
(
result
.
length
===
0
)
{
result
.
push
(
Object
.
assign
({},
percentile
));
// spread operator not supported by current Edge
result
[
result
.
length
-
1
].
pcount
=
1
;
return
result
;
}
if
(
result
[
result
.
length
-
1
].
to
===
percentile
.
from
)
{
...
...
@@ -419,6 +419,7 @@
return
result
;
}
result
.
push
(
Object
.
assign
({},
percentile
));
result
[
result
.
length
-
1
].
pcount
=
1
;
return
result
;
},[]);
const
legendType
=
(
typeof
percentileBreaks
[
0
].
from
===
"string"
)
?
'qual'
:
'seq'
;
...
...
@@ -433,7 +434,7 @@
let
sumClassCount
=
0
percentileBreaks
=
percentileBreaks
.
reduce
((
result
,
percentile
)
=>
{
sumPCount
+=
percentile
.
pcount
;
if
(
sumPCount
>
=
sumClassCount
*
pCountPerClass
&&
result
.
length
<
classCount
)
{
if
(
sumPCount
>
sumClassCount
*
pCountPerClass
&&
result
.
length
<
classCount
)
{
// new class
result
.
push
(
percentile
);
sumClassCount
++
;
...
...
@@ -506,7 +507,7 @@
</select><label
for=
"numclasses"
>
number of classes
</label><br>
<button
onclick=
"classButton('interval')"
>
equal interval
</button>
<button
onclick=
"classButton('quantile')"
>
quantile
</button>
<button
onclick=
"classButton('qualitative')"
>
qualitative
</button><br>
<button
onclick=
"classButton('qualitative')"
>
most frequent
</button><br>
<input
type=
"checkbox"
id=
"hidenulls"
name=
"hidenulls"
checked
><label
for=
"hidenulls"
>
Hide no-data
</label>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment