datagraph.js make legend toggle-able