make a flexible graphic diagram