"Smooth" Slider with Input stream

Hello, I am trying to stream realtime data into a slider but with an ordinary slider, the gap between the data is too big. Is there any way to “smooth” the transitions between the data in the slider? For example, if the range is 0 to 10, and I get the value 2 and then after I get the value 8, is there a way to go 2, 3, 4, 5, 6, 7, 8?