fix (#336) failing legend test by creating an invisible canvas
Merge pull request #339 from ndawe/master

fix failing legend test by creating an invisible canvas