Revert "Merge pull request #84 from bartvde/legendformat"

This reverts commit 244740b3a73c95907ef8700a84e57d9a84dc8da4, reversing
changes made to 289d47c53939a35033456fd8f4bc08c9e8c0215e.