Change chart type(top user diagram)
This commit is contained in:
parent
226e46d893
commit
20696d2f3c
|
@ -9,7 +9,7 @@ fetch("/top_users?number=5")
|
||||||
const ctx = document.getElementById('top-users');
|
const ctx = document.getElementById('top-users');
|
||||||
|
|
||||||
new Chart(ctx, {
|
new Chart(ctx, {
|
||||||
type: 'pie',
|
type: 'doughnut',
|
||||||
data: {
|
data: {
|
||||||
labels: data["members"],
|
labels: data["members"],
|
||||||
datasets: [{
|
datasets: [{
|
||||||
|
|
Loading…
Reference in New Issue