the Waveform Generator sample is a good starting point, because it demonstrates the usage of the class Charts::Graph. However, this sample uses only calculated simulation data.
In ordert to display real data, you need to implement some device driver and a device class to access some data provider hardware, e.g. to read data from an ADC or a certain waveform from a file.
Let me refer to the article Device Class and Device Driver for this aspect.