A prerequisite for using curvestepAfter, is that the measurement has to bee stored with a discrete Deadband Style:

If not you get these:
A prerequisite for using curvestepAfter, is that the measurement has to bee stored with a discrete Deadband Style:

If not you get these: