Water meter Y axis
Posted: Friday 20 December 2024 16:21
Hi Guys,
I can't figure out how to get proper numbers at the Y axis for water consumption. Domoticz gets m3 from the meters, i multiple those by 1000 in Domoticz to get liters which makes numbers looking good in Domoticz. However the scale looks weird in Dashticz, looks like i have to multiply it by 100 to get my liters back on Y axis but I can't find a way how to get this done. I am attaching screenshot of my graph and config section. For some reason graph title shows liters in correct manner.
You can see in the config i made an attempt to multiply numbers by 100 but it did not make any changes to the Y axis.
Thanks.
blocks['water'] = {
width: 6,
title: 'Water Consumption (Hot | Cold)',
devices: [557, 558],
graph: 'bar',
datasetColors: ['red','blue'],
data: {
v_557: 'd.v_557*100', // Hot Water
v_558: 'd.v_558*100', // Cold Water
},
legend: {
'v_557': 'Hot Water',
'v_558': 'Cold Water',
},
};
I can't figure out how to get proper numbers at the Y axis for water consumption. Domoticz gets m3 from the meters, i multiple those by 1000 in Domoticz to get liters which makes numbers looking good in Domoticz. However the scale looks weird in Dashticz, looks like i have to multiply it by 100 to get my liters back on Y axis but I can't find a way how to get this done. I am attaching screenshot of my graph and config section. For some reason graph title shows liters in correct manner.
You can see in the config i made an attempt to multiply numbers by 100 but it did not make any changes to the Y axis.
Thanks.
blocks['water'] = {
width: 6,
title: 'Water Consumption (Hot | Cold)',
devices: [557, 558],
graph: 'bar',
datasetColors: ['red','blue'],
data: {
v_557: 'd.v_557*100', // Hot Water
v_558: 'd.v_558*100', // Cold Water
},
legend: {
'v_557': 'Hot Water',
'v_558': 'Cold Water',
},
};