I am just getting started with a Node-RED implementation and can see how flexible and powerful the system is. I have already configured several flows (MQTT Inputs) to switch and then display using various formats on a dashboard.
One thing I would like to do is to be able to create a stacked, area graph - to show total household electrical energy consumption from a number of sources (PV, Grid, Battery). The stock chart plugin appears to be able to create multi line graphs, however, stacked area graphs appear to be beyond the capabilities. Reading around there are suggestions that 'node-red-node-ui-vega' would be the best way to proceed - providing much more powerful charting functions.
I can see how the actual 'chart' descriptions/definitions appear to work within Vega, however, am struggling on how to get the mqtt topic & payload data into the charts in order to provide dynamic charting on the dashboard?
If anyone has a simple example showing mqtt message flow into a Vega chart it would be appreciated.