Real time graph using canvas

How do I plot real time graph for HC-SR04 sensor readings using canvas?

We hope that soon App Inventor will have a component to display dynamic graphics, while you can try this extension.