allowing composite charts to toggle the legend
adding tests
adding test
Merge pull request #589
simpler way to dispatch legendToggle to the appropriate chart