putting chart into index