Commit 38932c6d authored by Michał Woźniak's avatar Michał Woźniak
Browse files

graph styling fixed a bit

parent d9f21788
Pipeline #103 passed with stage
in 0 seconds
......@@ -251,20 +251,30 @@ var theChart = false;
let chart = () => {
var context = document.getElementById('the-chart').getContext('2d');
Chart.defaults.global.defaultFontColor = '#bbb';
Chart.defaults.global.defaultFontFamily = 'Play Regular';
theChart = new Chart(context, {
type: 'line',
data: {
datasets: [{
datasets: [/*{
label: 'Doubles every day',
data: genArr(45, (i, arr)=>{ return arr[i-1]*2 }),
backgroundColor: 'rgba(127, 64, 64, 0.1)',
borderColor: 'rgba(127, 64, 64, 0.1)',
pointRadius: 0,
borderWidth: 1
}, */{
label: 'Doubles every 2 days',
data: genArr(45, (i, arr)=>{ return arr[i-1]*Math.pow(2, 1/2) }),
backgroundColor: false,
borderColor: 'rgba(127, 127, 127, 0.2)',
backgroundColor: 'rgba(192, 192, 127, 0.1)',
borderColor: 'rgba(192, 192, 127, 0.1)',
pointRadius: 0,
borderWidth: 1
}, {
label: 'Doubles every 7 days',
data: genArr(45, (i, arr)=>{ return arr[i-1]*Math.pow(2, 1/7) }),
backgroundColor: false,
borderColor: 'rgba(127, 127, 127, 0.2)',
backgroundColor: 'rgba(192, 255, 192, 0.1)',
borderColor: 'rgba(192, 255, 192, 0.1)',
pointRadius: 0,
borderWidth: 1
}],
labels: genArr(45, 1)
......
Supports Markdown
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