Minimum autoscale for artless chart

is there a way to configure the autoscale so it has a floor resolution? i'm doing temperature stuff and at .1 resolution it looks like /\/////// when sitting idle. i would like it if it could 'zoom out' but still use autoscale for when it climbs. ie: now my entire graph top to bottom when idle is .4 degrees. i'd like it to be a minimum of 2 degrees, then scale as needed when it diverges.

No sure I understood the problem correctly but maybe this example helps you out

[{"id":"b6c503e0554e4265","type":"ui_artlessgauge","z":"09deee63c1b960f7","group":"08ac9b242ae51e8c","order":5,"width":0,"height":0,"name":"","icon":"fa-thermometer","label":"Gauge","unit":"watt","layout":"linear","decimals":"2","differential":true,"minmax":true,"colorTrack":"#555555","style":"","colorFromTheme":true,"property":"payload","secondary":"secondary","inline":true,"animate":true,"sectors":[{"val":0,"col":"#ff9900","t":"min","dot":0},{"val":10,"col":"#ff9900","t":"max","dot":0}],"lineWidth":3,"bgcolorFromTheme":true,"diffCenter":"0","x":660,"y":920,"wires":[]},{"id":"cc8e556.23e4ea8","type":"function","z":"09deee63c1b960f7","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,"initialize":"","finalize":"","libs":[],"x":480,"y":960,"wires":[["c5a5348b.574418","6a81ae9c.deb0d","b6c503e0554e4265"]]},{"id":"c5a5348b.574418","type":"debug","z":"09deee63c1b960f7","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":630,"y":960,"wires":[]},{"id":"6a81ae9c.deb0d","type":"ui_artlessgauge","z":"09deee63c1b960f7","group":"08ac9b242ae51e8c","order":6,"width":4,"height":4,"name":"","icon":"","label":"Gauge","unit":"","layout":"radial","decimals":"2","differential":true,"minmax":true,"colorTrack":"#555555","style":"","colorFromTheme":true,"property":"payload","secondary":"secondary","inline":false,"animate":true,"sectors":[{"val":0,"col":"#ff9900","t":"min","dot":0},{"val":10,"col":"#ff9900","t":"max","dot":0}],"lineWidth":3,"bgcolorFromTheme":true,"diffCenter":"0","x":660,"y":1000,"wires":[]},{"id":"d365f512a279dfe1","type":"ui_button","z":"09deee63c1b960f7","name":"","group":"08ac9b242ae51e8c","order":7,"width":2,"height":1,"passthru":false,"label":"500","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"500","payloadType":"num","topic":"topic","topicType":"msg","x":270,"y":900,"wires":[["cc8e556.23e4ea8"]]},{"id":"e865c9069b603de0","type":"ui_button","z":"09deee63c1b960f7","name":"","group":"08ac9b242ae51e8c","order":8,"width":2,"height":1,"passthru":false,"label":"2500","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"2500","payloadType":"num","topic":"topic","topicType":"msg","x":270,"y":940,"wires":[["cc8e556.23e4ea8"]]},{"id":"7790f9cef3019cf2","type":"ui_button","z":"09deee63c1b960f7","name":"","group":"08ac9b242ae51e8c","order":9,"width":2,"height":1,"passthru":false,"label":"-2500","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"-2500","payloadType":"num","topic":"topic","topicType":"msg","x":270,"y":980,"wires":[["cc8e556.23e4ea8"]]},{"id":"df94b86bf73fc57a","type":"ui_button","z":"09deee63c1b960f7","name":"","group":"08ac9b242ae51e8c","order":10,"width":2,"height":1,"passthru":false,"label":"-500","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"-500","payloadType":"num","topic":"topic","topicType":"msg","x":270,"y":1020,"wires":[["cc8e556.23e4ea8"]]},{"id":"08ac9b242ae51e8c","type":"ui_group","name":"Default","tab":"2acb95821445c8af","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"2acb95821445c8af","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

thanks for responding but this is for the chart, not the gauges.

when i have 5 inputs for temperature and they are very close the autoscale range makes it look very jumpy, because the entire y range for the chart is .4C. i'd like it so that it autoscales as necessasary when they ranges diverge, but i want to have a minimum value for the range of the y axis. ie: y axis will be at no less than 2 degrees range when inputs are <= 2, but when the delta between temps gets to 20 degrees, it will still scale correctly.

does that make more sense? help appreciated, i assume there some function that calculates the autoscale range, and it could just be told if range < 2, then range=2, but i'm not sure if it's that simple or where to find it

thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.