You’ll need to add some further events to determine the size of the result, and whether to append a K,M or G. So determine the resistance, and the max and min values, then work out the size and what letter to append, then set the text object.
The link I posted earlier describes a solution.