add front end but chart have bug