diagram beautify