Set minimum height of svg element based on legend height required

* Required height of legend is now considered when finding svg bounds required to display all task nodes