improve htmlGraph