Refactored Line Chart