if i use the code beneath i get an empty popup???
i did nog adjust the code of the graph, i only added -> blocks[p1_gas_vandaag]['popup'] = 'p1_grafiek_gas';
am i doing something wrong?
Code: Select all
blocks[p1_gas_vandaag] = {}
blocks[p1_gas_vandaag]['width'] = 6;
blocks[p1_gas_vandaag]['title'] = 'Gas vandaag';
blocks[p1_gas_vandaag]['show_lastupdate'] = false;
blocks[p1_gas_vandaag]['protected'] = true;
blocks[p1_gas_vandaag]['popup'] = 'p1_grafiek_gas';
// Definition 'Gas' graph
blocks[p1_grafiek_gas] = {
title: 'Gas',
custom : {
"maand": {
range: 'year',
datasetColors: ['yellow'],
graph: 'bar',
filter: '1 months',
data: {
m3: 'd.v_41',
}
},
"dag": {
graph: 'line',
datasetColors: ['yellow'],
range: 'day',
filter: '24 hours',
data: {
verbruik: 'd.v_41',
}
}
},
legend: false,
datasetColors: ['gray'],
displayFormats : {
minute: 'h:mm',
hour: 'h:mm',
day: 'DD MMM',
week: 'DD MMM',
month: 'MMM',
}
}