There's two approaches I can think of right now; one is declaring an rrdopts = { ... }
array to pass raw arguments directly to rrdtool, the other is using transform_rpn
on the datasource and number_format
on the graph to calculate the value, like that:
local energy = {
-- draw this diagram for each plugin instance
per_instance = true,
title = "%H: Energy Production and Consumption--%di",
vlabel = "watts",
number_format = "%6.2lfkWh",
-- diagram data description
data = {
-- special options for single data lines
options = {
power_grid_value = {
title = "Grid power",
color = "00ff00", -- green
transform_rpn = "1,/,24,*"
},
power_wind_value = {
title = "Wind power",
color = "0000ff", -- blue
transform_rpn = "1,/,24,*"
}
}
}
}
But thats all from memory, I'd need to play around for myself a little bit to see how it could be best solved. Could you provide me with your *.rrd file by any chance?