ensure chart.credits exists before hiding