I am working on a Gateway status screen that displays CPU/Memory/Disk Usage via the system tags and I noticed the data was off. Looking at the performance page in the Gateway I could see my memory usage is at about 40% however, the system tag is showing a 0.40 value. Okay, no big deal I need to scale my data by 100 to display it as percent.
How can I do this in an indirectly addresses time series chart dataset easily? I have not been able to find a means to quickly scale the historical data either before getting it from my database or after getting it on my time series chart.
Any suggestions or help is much appreciated.
Added supporting screen shots.
I found a means to scale the tag. It is not ideal in my opinion but it will work for my application.
For those that may find this via a google search in 5 years all I did was set the scale mode of the system tag and defined the limits.
1 Like
Try:
axes.0.name : Y
axes.0.tick.label.format : 0%
plots.0.axes.0.name : Y
For science I tried this and it does not seem to work. Thank you for the suggestion though.
Before:
After:
After is the addition of the format property to plots.0.axes.label and setting it to 0%. Not sure why your method works for you and not me but I appreciate you highlighting the fact that I can apply the format property to the label in the future.
I'm testing on 8.1.41.
If you like, you can copy the chart from Project Browser and post it here. (Please see https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831.) We can then test it and see if we can spot the problem.