dc.drawText(textX + 35, y, font, format(" $1$ ",[num.format("%-0.1f")]), just);
dc.drawText(textX + 35, y, font, format(" $1$ ",[num.format("%-d")]), just);
with the minus removed, the lines will work, but obviously do not indicate negative numbers. Edit: My bad. It will display the negative sign. I remember events as it not working, so either I am remembering it wrong, or it was fixed somewhere along the way in a firmware update.
dc.drawText(textX + 35, y, font, format(" $1$ ",[num.format("%0.1f")]), just);
dc.drawText(textX + 35, y, font, format(" $1$ ",[num.format("%d")]), just);