A simple line chart on HTML canvas