This would be extremely difficult to implement. I suggest the use of the waveform or XY graph and the cursor. This is what they were designed to do. There are examples for implementing a chart like graph on zone.ni.com and examples for using the cursor.
Marc