ソースを参照

시세 차트 bar → area(line+fill) 전환

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
KIM-JINO5 2 日 前
コミット
0dbf72003a
1 ファイル変更6 行追加2 行削除
  1. 6 2
      wwwroot/js/price-chart.js

+ 6 - 2
wwwroot/js/price-chart.js

@@ -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: {