Simplify add-to-chart function