Even tested the code principle from the read-the-docs
Result: no lines, no data. Here is the screenshot from the </>show data hamburger menu:

Code: Select all
//based on https://dashticz.readthedocs.io/en/beta/blocks/graphs.html#custom-graphs
blocks['multigraph_427'] = {
title: 'My Power',
devices: [427],
graph: ['line','bar','bar'],
custom : {
"last day": {
range: 'day',
filter: '24 hours',
data: {
nett: 'd.v_427+d.v2_427-d.r1_427-d.r2_427',
usage: 'd.v_427+d.v2_427',
generation: '-d.r1_427-d.r2_427'
}
},
"last 2 weeks": {
range: 'month',
filter: '14 days',
data: {
nett: 'd.v_427+d.v2_427-d.r1_427-d.r2_427',
usage: 'd.v_427+d.v2_427',
generation: '-d.r1_427-d.r2_427'
}
},
"last 6 months": {
range: 'year',
filter: '6 months',
data: {
nett: 'd.v_427+d.v2_427-d.r1_427-d.r2_427',
usage: 'd.v_427+d.v2_427',
generation: '-d.r1_427-d.r2_427'
}
}
},
legend: true,
datasetColors:['blue','red','yellow']
}