support for legend expanded on startup
Merge pull request #532 from tonio/legendexpanded

support for legend expanded on startup