Attempting to store chart state in an angular service