[html] Tick density attempt #2

Apparently the axis object isn't fully constructed at this point so we
can't calculate pixelwidth