Remove #chart references from template