Graph now builds the necessary html