Custom graph title with net usage
Posted: Sunday 19 April 2020 21:10
Hello,
I am new to Dashticz and creating my custom dash bit by bit. There is a lot possible and documented, very cool.
Now I have a graph that displayes my P1 smart meter electricity. However, the title seems to display the used electricity and not the net used electricity. There is not calculated with the returned power from my solar panels.
Is it possible to have a custom title that, for example, displays the used power, returned power end net power for the current day?
I did try some things with the "customHeader", but i don't get it working. Maybe someone here with an example?
I currently use this:
Any help is appriciated.
Regards,
Roland
I am new to Dashticz and creating my custom dash bit by bit. There is a lot possible and documented, very cool.
Now I have a graph that displayes my P1 smart meter electricity. However, the title seems to display the used electricity and not the net used electricity. There is not calculated with the returned power from my solar panels.
Is it possible to have a custom title that, for example, displays the used power, returned power end net power for the current day?
I did try some things with the "customHeader", but i don't get it working. Maybe someone here with an example?
I currently use this:
Code: Select all
blocks[p1_grafiek_elektra] = {
title: 'Elektriciteit',
graph: ['line','bar','bar'],
custom : {
"last hours": {
range: 'day',
filter: '4 hours',
data: {
nett: 'd.v+d.v2-d.r1-d.r2',
usage: 'd.v+d.v2',
generation: '-d.r1-d.r2'
}
},
"last day": {
range: 'day',
filter: '24 hours',
data: {
nett: 'd.v+d.v2-d.r1-d.r2',
usage: 'd.v+d.v2',
generation: '-d.r1-d.r2'
}
},
"last 2 weeks": {
range: 'month',
filter: '14 days',
data: {
nett: 'd.v+d.v2-d.r1-d.r2',
usage: 'd.v+d.v2',
generation: '-d.r1-d.r2'
}
},
"last 6 months": {
range: 'year',
filter: '6 months',
data: {
nett: 'd.v+d.v2-d.r1-d.r2',
usage: 'd.v+d.v2',
generation: '-d.r1-d.r2'
}
}
},
legend: false,
datasetColors:['blue','red','yellow']
}
Regards,
Roland