Feature/diagram widget

fixes #258