forked from mirrors/bookwyrm
21 lines
523 B
HTML
21 lines
523 B
HTML
{% load i18n %}
|
|
<script>
|
|
|
|
var statusStats = new Chart(
|
|
document.getElementById('status_stats'),
|
|
{
|
|
type: 'bar',
|
|
data: {
|
|
labels: [{% for label in status_stats.labels %}"{{ label }}",{% endfor %}],
|
|
datasets: [{
|
|
label: '{% trans "Statuses posted" %}',
|
|
backgroundColor: 'rgb(255, 99, 132)',
|
|
borderColor: 'rgb(255, 99, 132)',
|
|
data: {{ status_stats.total }},
|
|
}]
|
|
},
|
|
options: {}
|
|
},
|
|
);
|
|
</script>
|
|
|