From 4d62e70810ca5d1d1a1f1db19771f504c01dcc30 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Mon, 14 Mar 2022 13:07:50 -0500 Subject: [PATCH] log scale x axis --- app/templates/reports/graph.html.j2 | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/app/templates/reports/graph.html.j2 b/app/templates/reports/graph.html.j2 index d54550d..3638a3a 100644 --- a/app/templates/reports/graph.html.j2 +++ b/app/templates/reports/graph.html.j2 @@ -1,11 +1,11 @@ {% extends 'base.html.j2' %} {% block title %} - {{name}} History for the Last 30 Days + {{ name }} History for the Last 30 Days {% endblock title %} {% block content_before %} - {{name}} History for the Last 30 Days + {{ name }} History for the Last 30 Days {% endblock content_before %} {% block content %} @@ -24,7 +24,21 @@ datasets: {{datasets}}, }, options: { - plugins: { legend: { display: false }, } + plugins: { legend: { display: false }, }, + scales: { + x: { + title: { + display: true, + text: 'Date' + }, + display: true + }, + y: { + display: true, + type: 'logarithmic', + text: '{{ name }}' + } + } } }; let items_chart = new Chart(