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
c0fa28d6
Commit
c0fa28d6
authored
Jun 10, 2019
by
Magnus Holm Brunbjerg
Browse files
Better charts eller noget
parent
931e99c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/public/js/chart.js
View file @
c0fa28d6
...
...
@@ -55,10 +55,13 @@ function makeChart (data) {
datasets
:
[{
label
:
'
Gennemsnitlig tid (Min)
'
,
data
:
dataset
.
avgTime
,
type
:
'
line
'
,
backgroundColor
:
lineColor
,
borderColor
:
lineColor
,
fill
:
false
pointRadius
:
15
,
pointStyle
:
'
rectRot
'
,
type
:
'
line
'
,
fill
:
false
,
spanGaps
:
true
},
{
label
:
'
Antal problemer
'
,
data
:
dataset
.
issues
,
...
...
src/public/js/compareChart.js
View file @
c0fa28d6
...
...
@@ -64,7 +64,6 @@ function makeData (data) {
function
makeChart
(
issueData
,
experimentNames
)
{
const
data
=
makeData
(
issueData
)
console
.
log
(
data
)
let
chartDatasets
=
[]
let
colors
=
[]
...
...
@@ -77,8 +76,11 @@ function makeChart (issueData, experimentNames) {
data
:
data
.
avgStepTime
[
i
],
backgroundColor
:
colors
[
i
],
borderColor
:
colors
[
i
],
pointRadius
:
15
,
pointStyle
:
'
rectRot
'
,
type
:
'
line
'
,
fill
:
false
fill
:
false
,
spanGaps
:
true
})
}
for
(
let
i
=
0
;
i
<
data
.
issues
.
length
;
i
++
)
{
...
...
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