WIP: Merge all the updateLineChart functions.