Skip to content

Commit 33ea2e8

Browse files
Allow bar graphs vs line graphs #111
1 parent 5ad885f commit 33ea2e8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dsmr_frontend/templates/dsmr_frontend/archive.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
datasets: [{
270270
data: electricity1,
271271
label: "{% trans 'Electricity 1 (low tariff)' %}",
272-
fillColor: "rgba(255,255,255,0.2)",
272+
fillColor: "rgba(160,0,0,0.1)",
273273
strokeColor: "rgba(160,0,0,1)",
274274
pointColor: "rgba(160,0,0,1)",
275275
pointStrokeColor: "#fff",
@@ -278,7 +278,7 @@
278278
}, {
279279
data: electricity2,
280280
label: "{% trans 'Electricity 2 (high tariff)' %}",
281-
fillColor: "rgba(255,255,255,0.2)",
281+
fillColor: "rgba(255,0,0,0.1)",
282282
strokeColor: "rgba(255,0,0,1)",
283283
pointColor: "rgba(255,0,0,1)",
284284
pointStrokeColor: "#fff",
@@ -306,7 +306,7 @@
306306
datasets: [{
307307
data: electricity1_returned,
308308
label: "{% trans 'Electricity 1 returned (low tariff)' %}",
309-
fillColor: "rgba(255,255,255,0.2)",
309+
fillColor: "rgba(200,200,100,0.1)",
310310
strokeColor: "rgba(200,200,100,1)",
311311
pointColor: "rgba(200,200,100,1)",
312312
pointStrokeColor: "#fff",
@@ -315,7 +315,7 @@
315315
}, {
316316
data: electricity2_returned,
317317
label: "{% trans 'Electricity 1 returned (high tariff)' %}",
318-
fillColor: "rgba(255,255,255,0.2)",
318+
fillColor: "rgba(39,194,76,0.1)",
319319
strokeColor: "rgba(39,194,76,1)",
320320
pointColor: "rgba(39,194,76,1)",
321321
pointStrokeColor: "#fff",
@@ -343,7 +343,7 @@
343343
datasets: [{
344344
data: gas,
345345
label: "{% trans 'Gas' %}",
346-
fillColor: "rgba(255,255,255,0.2)",
346+
fillColor: "rgba(250,133,0,0.1)",
347347
strokeColor: "rgba(250,133,0,1)",
348348
pointColor: "rgba(250,133,0,1)",
349349
pointStrokeColor: "#fff",

dsmr_frontend/templates/dsmr_frontend/dashboard.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
datasets: [{
261261
data: {{ electricity_y|safe }},
262262
label: "{% trans 'Electricity' %}",
263-
fillColor: "rgba(255,255,255,0.2)",
263+
fillColor: "rgba(255,0,0,0.1)",
264264
strokeColor: "rgba(255,0,0,1)",
265265
pointColor: "rgba(255,0,0,1)",
266266
pointStrokeColor: "#fff",
@@ -283,7 +283,7 @@
283283
datasets: [{
284284
data: {{ electricity_returned_y|safe }},
285285
label: "{% trans 'Electricity returned' %}",
286-
fillColor: "rgba(255,255,255,0.2)",
286+
fillColor: "rgba(0,255,0,0.1)",
287287
strokeColor: "rgba(39,194,76,1)",
288288
pointColor: "rgba(39,194,76,1)",
289289
pointStrokeColor: "#fff",
@@ -306,7 +306,7 @@
306306
datasets: [{
307307
data: {{ gas_y|safe }},
308308
label: "{% trans 'Gas' %}",
309-
fillColor: "rgba(255,255,255,0.2)",
309+
fillColor: "rgba(250,133,0,0.1)",
310310
strokeColor: "rgba(250,133,0,1)",
311311
pointColor: "rgba(250,133,0,1)",
312312
pointStrokeColor: "#fff",
@@ -329,7 +329,7 @@
329329
datasets: [{
330330
data: {{ temperature_y|safe }},
331331
label: "{% trans 'Temperature' %}",
332-
fillColor: "rgba(255,255,255,0.2)",
332+
fillColor: "rgba(35,183,229,0.1)",
333333
strokeColor: "rgba(35,183,229,1)",
334334
pointColor: "rgba(35,183,229,1)",
335335
pointStrokeColor: "#fff",

0 commit comments

Comments
 (0)