Live data set streaming and plotting path to track route

Hi all,

I would like to ask if anyone know what is the way to add path line to entity, in order to track the route the entity took.

So the entity is render and update through live feed, what are the way to plot the path line as it is updated? And as it is plotted for example till to 10th point, i would like to drop the first path line.

so the sequence is as such

data feed -> entity render and update -> plot path line as it is updated -> at 10th update/10th point, drop the 1st point.

I would appreciate any solution. As the demo in sandcastle do it through having an existing data source, thus it is able to plot all the points then the satellite or plane move, however what to do for live feed.