add prefix and attr view for charts