Upload templates/dashboard.html with huggingface_hub
Browse files- templates/dashboard.html +7 -1
templates/dashboard.html
CHANGED
@@ -551,7 +551,10 @@
|
|
551 |
'nscale': '#F7DC6F'
|
552 |
};
|
553 |
|
554 |
-
|
|
|
|
|
|
|
555 |
if (data && data.length > 0) {
|
556 |
const providerColor = providerColors[provider] || '#667eea'; // fallback color
|
557 |
|
@@ -575,6 +578,9 @@
|
|
575 |
}
|
576 |
}
|
577 |
|
|
|
|
|
|
|
578 |
historicalChart = new Chart(ctx, {
|
579 |
type: 'line',
|
580 |
data: {
|
|
|
551 |
'nscale': '#F7DC6F'
|
552 |
};
|
553 |
|
554 |
+
// Fix: Use historicalData.historical_data instead of historicalData directly
|
555 |
+
const providerData = historicalData.historical_data || {};
|
556 |
+
|
557 |
+
for (const [provider, data] of Object.entries(providerData)) {
|
558 |
if (data && data.length > 0) {
|
559 |
const providerColor = providerColors[provider] || '#667eea'; // fallback color
|
560 |
|
|
|
578 |
}
|
579 |
}
|
580 |
|
581 |
+
// Add a console log to debug
|
582 |
+
console.log('Creating historical chart with', datasets.length, 'datasets');
|
583 |
+
|
584 |
historicalChart = new Chart(ctx, {
|
585 |
type: 'line',
|
586 |
data: {
|