From 209356b8ade1920b50d1d3a1a5e121c6623d167b Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Nov 2022 23:47:49 +0100 Subject: Update --- app/bits/static/graph.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 app/bits/static/graph.js (limited to 'app/bits/static/graph.js') diff --git a/app/bits/static/graph.js b/app/bits/static/graph.js new file mode 100755 index 0000000..0503b99 --- /dev/null +++ b/app/bits/static/graph.js @@ -0,0 +1,34 @@ +const ctx = document.getElementById('graph-display').getContext('2d'); +const graph = new Chart(ctx, { + type: 'line', + data: { + labels: [], + datasets: [{ + label: 'Balance', + data: [], + borderColor: 'rgba(153, 102, 255, 1)', + fill: false, + }, + { + label: 'Trendline', + data: [], + borderColor: 'rgba(153, 102, 255, .5)', + borderDash: [5], + pointRadius: 0, + fill: false, + }] + }, + options: { + scales: { + y: { + beginAtZero: true + } + }, + scaleLabel: "<%=value%>%", + plugins: { + legend: { + display: false + } + } + } +}); \ No newline at end of file -- cgit