create utils.getGraphType() function.

also apply setting to long term graphs
flip logic - only return "line" if the setting is explicitly set to "false"

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2020-06-01 21:10:14 +01:00
parent 4cca206810
commit 02a4e83d87
3 changed files with 10 additions and 7 deletions

View File

@@ -151,7 +151,7 @@ $(function () {
var blockedColor = "#999";
var permittedColor = "#00a65a";
timeLineChart = new Chart(ctx, {
type: "bar",
type: utils.getGraphType(),
data: {
labels: [],
datasets: [