create a single line diagram