refactored lineSeries data format