add prefix and attr to chart