properly working linechart