DB V2 - Revisit: bar chart to track daily number of starts stopped working with 1.30.0

Dear @rakgupta
Your excellent flow from August this year stopped working with the latest version of flow fuse dbv2,1.30.0
I have tried to troubleshoot but it does not draw the bar charts anymore fr som reason and it is well beyond my skillset. It has worked perfectly until today and this update

If you have time and interest to revisit it or reopen the old thread about this it is here;

Many thanks regardless and best wishes for the holidays

There were several changes to the chart widget in this release. Are you sending timestamped data to the chart? If so, check what you have set for the x axis time limit in the chart config.
image

In previous versions the limit was not being applied correctly, now it is, so if you have that set to, for example, 1 hour, then data before that time will not be shown. If that is the problem you can either increase it or set it to zero, which will disable the time limit.

1 Like

Many thanks for your reply! Understood. Will go through and do maintenance and checks..

Do you remember what version you were previously running?

I typically update to every version on this install, so whatever release came before 1.30.0.

Will check the flows more deeply as soon as there is time…could be something simple I guess. Will report back asap, just wanted to know if there is a known issue before I take it apart.

Start by checking the x axis time limit as I suggested. I fully expect some to trip over that.

On this install and this chart I have "last 24 hours".
I may have found a more specific reason/issue with the last line in the function node called:
"Add data with timestamp and limit array length"
It can be set to:

return {payload: datapoint, action: 'append'};
or
return {payload: datapoint, action: 'replace'};

and the replace is what gives an empty chart in 1.30.0. I see the dot in the chart move but it does not draw anything. I want "replace" as I only want the last 24 hours in this particular chart. Maybe it will work with "append" now. Will test it.

It could be something in my code to clean up the drawing that messes with the timestamp. Will have to look at it more closely.

Does that message include a full set of data points for the 24 hours? Replace means clear the chart and use what is in this message. Append means add the data in this chart to whatever is already there. If you have the time range set to 24 hours then now it will always remove any data older than that, which is what did not previously work correctly.

Thanks again. Yes, it should contain the full set for the last 24 hours.
I do not presently fully understand the new functionality but will spend time with it and figure it out. If I understand you correctly I may have used a kind of workaround that is no longer needed. We shall see. I appreciate the comments!