Do you want this to be a display-only widget? A "slider" implies that the user can click on it to adjust the position. If you want it to be just an output widget (like your dial widget), then it is pretty easy.

I also assume you know in advance where the y-divisions are, correct?