Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@@ -8,13 +8,17 @@ class PriceChart {
const data = JSON.parse(el.textContent);
new Chart(document.getElementById("priceChart"), {
- type: "bar",
+ type: "line",
data: {
labels: data.labels,
datasets: data.series.map((s) => ({
label: s.name,
data: s.values,
- borderWidth: 1
+ fill: "origin",
+ borderWidth: 2,
+ pointRadius: 2,
+ tension: 0.2,
+ spanGaps: true
}))
},
options: {