Working version with multiple lines per chart