Is this available to set at runtime, for example when changing the units from watts to kilowatts at runtime, you would need the data to 2 or 3 decimal places for kW, but as a integer for W.
Also I'm getting some strange results when using the runtime, the 2500 & -2500 injects don't present the chart as I expected.
[{"id":"8ce3e563.1a0968","type":"inject","z":"c9c4eeb8.bad8e","name":"","topic":"","payload":"999","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":2010,"wires":[["cc8e556.23e4ea8"]]},{"id":"cc8e556.23e4ea8","type":"function","z":"c9c4eeb8.bad8e","name":"","func":"let val=msg.payload;\nlet Wsectors = [{t:\"min\",val:-3000,col:\"#00ff00\",dot:0},{t:\"sec\",val:0,col:\"#ff0000\",dot:3},{t:\"max\",val:5000,col:\"#0000ff\",dot:0}];\nlet kWsectors = [{t:\"min\",val:-3,col:\"#00ff00\",dot:0},{t:\"sec\",val:0,col:\"#ff0000\",dot:3},{t:\"max\",val:5,col:\"#0000ff\",dot:0}];\nvar newSectors,unit;\n\nif (val >= 1000 || val <= -1000){\n msg.payload=val/1000;\n newSectors=kWsectors;\n unit=\"kiloWatt\";\n} else {\n newSectors=Wsectors;\n unit=\"Watt\";\n}\nmsg.control = {unit:unit,label:\"Grid Activity\",icon:\"fa-plug\",sectors:newSectors};\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":2070,"wires":[["c5a5348b.574418","6a81ae9c.deb0d"]]},{"id":"c5a5348b.574418","type":"debug","z":"c9c4eeb8.bad8e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":460,"y":2100,"wires":[]},{"id":"3e3ee7ef.686678","type":"inject","z":"c9c4eeb8.bad8e","name":"","topic":"","payload":"-999","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":2090,"wires":[["cc8e556.23e4ea8"]]},{"id":"2444bdc0.99e172","type":"inject","z":"c9c4eeb8.bad8e","name":"","topic":"","payload":"2500","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":2050,"wires":[["cc8e556.23e4ea8"]]},{"id":"e19836.36bd07c8","type":"inject","z":"c9c4eeb8.bad8e","name":"","topic":"","payload":"-2500","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":2130,"wires":[["cc8e556.23e4ea8"]]},{"id":"6a81ae9c.deb0d","type":"ui_artlessgauge","z":"c9c4eeb8.bad8e","group":"61d2dced.3db8f4","order":18,"width":3,"height":3,"name":"","icon":"","label":"Gauge","unit":"","layout":"radial","decimals":"2","differential":true,"minmax":true,"colorTrack":"#555555","colorFromTheme":true,"property":"payload","sectors":[{"val":0,"col":"#ff9900","t":"min","dot":0},{"val":10,"col":"#ff9900","t":"max","dot":0}],"lineWidth":3,"bgcolorFromTheme":true,"diffCenter":"0","x":490,"y":2040,"wires":[]},{"id":"61d2dced.3db8f4","type":"ui_group","z":0,"name":"flowtest","tab":"3c94630c.13381c","order":1,"disp":true,"width":16,"collapse":false},{"id":"3c94630c.13381c","type":"ui_tab","z":0,"name":"Test","icon":"dashboard","order":9}]