Christian-Me / node-red-contrib-ui-uplot-charts

Node-RED Chart UI node utilizing the uPlot.js library. BETA Version
Apache License 2.0
7 stars 0 forks source link

How to clear a uplot chart #2

Open johnwalicki opened 2 years ago

johnwalicki commented 2 years ago

How can I clear / erase a node-red-contrib-ui-uplot-charts Chart?

With node-red-dashboard Chart node, if I send a msg.payload containing a blank array [] it will clear the chart. When uplot chart receives a [] it will also clear. Great. But sending new msg.payload data points will just restore the original chart data that I was trying to delete.

Christian-Me commented 2 years ago

Good point. That should be an easy fix. There is a clear button on the data tab but it should be possible to clear the chart by message too.