feat: premium analytics with autocomplete search and dynamic reports
All checks were successful
Deployment / deploy-docker (push) Successful in 11s
All checks were successful
Deployment / deploy-docker (push) Successful in 11s
This commit is contained in:
@@ -483,7 +483,23 @@
|
|||||||
if (charts.continent) charts.continent.destroy();
|
if (charts.continent) charts.continent.destroy();
|
||||||
charts.continent = new Chart(contCtx, {
|
charts.continent = new Chart(contCtx, {
|
||||||
type: 'doughnut',
|
type: 'doughnut',
|
||||||
data: { labels: store.summary.map(r => r[0]), datasets: [{ data: store.summary.map(r => r[2]), backgroundColor: ['#38bdf8', '#fbbf24', '#f43f5e', '#10b981', '#8b5cf6'], borderWidth: 0 }] },
|
data: {
|
||||||
|
labels: store.summary.map(r => r[0]),
|
||||||
|
datasets: [{
|
||||||
|
data: store.summary.map(r => r[2]),
|
||||||
|
backgroundColor: [
|
||||||
|
'#38bdf8', // Blue
|
||||||
|
'#f43f5e', // Red
|
||||||
|
'#10b981', // Green
|
||||||
|
'#fbbf24', // Yellow
|
||||||
|
'#8b5cf6', // Purple
|
||||||
|
'#f97316', // Orange
|
||||||
|
'#475569', // Slate (for Unknown - high contrast)
|
||||||
|
'#ec4899' // Pink
|
||||||
|
],
|
||||||
|
borderWidth: 0
|
||||||
|
}]
|
||||||
|
},
|
||||||
options: { responsive: true, maintainAspectRatio: false, cutout: '75%', plugins: { legend: { position: 'right', labels: { color: '#94a3b8' } } } }
|
options: { responsive: true, maintainAspectRatio: false, cutout: '75%', plugins: { legend: { position: 'right', labels: { color: '#94a3b8' } } } }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user