Skip to content
Snippets Groups Projects
Commit 5351eae0 authored by Till Wesselmann's avatar Till Wesselmann
Browse files

Use linechart for displaying mean gc in contrast to duplicated reads

parent 3bc43f73
No related branches found
No related tags found
No related merge requests found
......@@ -133,13 +133,16 @@ const duplicationChart = new Chart(duplicationCtx, {
const meanGCCtx = document.getElementById("mean_gc")
const meanGCData = data.duplication.mean_gc.slice(0, trimRightIndex(data.duplication.mean_gc) + 15)
const meanGCChart = new Chart(meanGCCtx, {
type: 'bar',
type: 'line',
data: {
labels: Array.from(Array(meanGCData.length).keys()),
datasets: [{
backgroundColor: BAR_COLOR,
label: "Mean gc",
data: meanGCData
data: meanGCData.map(x => x === 0 ? NaN : x),
spanGaps: true,
cubicInterpolationMode: "default",
lineTension: 0.3,
}]
},
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment