demo drawing ecg-like signal in canvas