LineChart refactored