refactor: Change cost chart to scatter plot with markers

This commit is contained in:
Paul Gauthier (aider) 2025-02-27 14:15:23 -08:00
parent 4f9b907b4d
commit 088dd99ec1

View file

@ -26,14 +26,13 @@ document.addEventListener('DOMContentLoaded', function () {
}, { }, {
label: 'Total Cost ($)', label: 'Total Cost ($)',
data: [], data: [],
type: 'line', type: 'scatter',
yAxisID: 'y1', yAxisID: 'y1',
fill: false, backgroundColor: 'rgba(153, 102, 255, 1)',
borderColor: 'rgba(153, 102, 255, 1)', borderColor: '#fff',
borderWidth: 2, borderWidth: 1,
pointBackgroundColor: 'rgba(153, 102, 255, 1)', pointRadius: 5,
pointBorderColor: '#fff', pointHoverRadius: 7
pointRadius: 4
}] }]
}; };
@ -129,9 +128,10 @@ document.addEventListener('DOMContentLoaded', function () {
}, },
{ {
text: 'Total Cost ($)', text: 'Total Cost ($)',
fillStyle: 'rgba(0, 0, 0, 0)', fillStyle: 'rgba(153, 102, 255, 1)',
strokeStyle: 'rgba(153, 102, 255, 1)', strokeStyle: '#fff',
lineWidth: 2 lineWidth: 1,
pointStyle: 'circle'
} }
]; ];
} }