Commit c0fa28d6 authored by Magnus Holm Brunbjerg's avatar Magnus Holm Brunbjerg
Browse files

Better charts eller noget

parent 931e99c3
......@@ -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,
......
......@@ -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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment