I am trying to update an existing chart by id on a page that has multiple charts but can\'t really figure out how to get it working. First I loop and create the charts after