From 3a80780c3e4be95a92a8befbe7c71e6fcd286e2a Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 23 Jun 2020 22:10:53 +0100 Subject: [PATCH] made the trendline a bit thicker --- public/js/account.js | 2 +- public/js/chartjs-plugin-trendline.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/account.js b/public/js/account.js index bf1ce01bc..a12495a93 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -199,7 +199,7 @@ var resultHistoryChart = new Chart($(".pageAccount #resultHistoryChart"), { trendlineLinear: { style: "rgba(255,105,180, .8)", lineStyle: "dotted", - width: 2 + width: 4 } }, ], diff --git a/public/js/chartjs-plugin-trendline.js b/public/js/chartjs-plugin-trendline.js index fe082748a..894db3d2f 100644 --- a/public/js/chartjs-plugin-trendline.js +++ b/public/js/chartjs-plugin-trendline.js @@ -84,7 +84,7 @@ function addFitter(datasetMeta, ctx, dataset, xScale, yScale) { } ctx.lineWidth = lineWidth; - if (lineStyle === "dotted") { ctx.setLineDash([2, 3]); } + if (lineStyle === "dotted") { ctx.setLineDash([4, 6]); } ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2);