Improve Line Chart Functionality