fix chart dom structure