implement simple sine line chart