Added/moved AddeLineChart data into  it own function