Hello there!
First u`ll need some Mock datasource let say your data struct is a simple
int sampleData = 0;
second u`ll need some Demo simulator that we`ll read your data from the serial interface every x milliSecond (use thread timer)
Third and Finally, u need to update your chart data with the new fresh simulated sample
that`s all
hope we`ll help although the short form of my answer