Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ITPDP2019
Gain.fam
web-server
Commits
8379bfca
Commit
8379bfca
authored
May 13, 2019
by
William Damgaard Lauritzen
Browse files
Deleted extra function
parent
9918fa5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/public/js/main.js
View file @
8379bfca
...
...
@@ -18,28 +18,6 @@ function getData () {
}
// Retrieve data.
function
makeMyData
(
data
)
{
const
labels
=
[]
const
issues
=
[]
let
counter
let
usedsteps
=
[]
for
(
let
i
of
data
)
{
// Iterate and group data
if
(
i
.
step
!==
usedsteps
)
{
counter
=
0
usedsteps
=
i
.
step
labels
.
push
(
i
.
step
)
for
(
let
j
of
data
)
{
if
(
usedsteps
===
j
.
step
)
{
counter
++
}
}
}
issues
.
push
(
counter
)
}
return
{
labels
,
issues
}
}
function
makeMyData
(
data
)
{
const
labels
=
[]
const
issues
=
[]
...
...
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