updated more gradient formatting an added gradients to navbar

This commit is contained in:
UpstreamData
2022-03-02 14:36:34 -07:00
parent d4d9b1ad3c
commit 46a4508cd7
2 changed files with 15 additions and 2 deletions

View File

@@ -143,8 +143,8 @@ var options_fans = {
};
var fanCtx = document.getElementById("fan-chart-1").getContext("2d");
var fanWidth = document.getElementById("fan-chart-1").width*(3/4);
var fanChartGradient = fanCtx.createLinearGradient(0, 0, fanWidth, 0)
var fanWidth = document.getElementById("fan-chart-1").width;
var fanChartGradient = fanCtx.createLinearGradient(0, 0, fanWidth, -(1/2)*fanWidth)
fanChartGradient.addColorStop(0, '#D0368A');
fanChartGradient.addColorStop(1, '#708AD4');