add reusable linechart