added optional onclick handlers to each visualization
added optional onclick handlers to each visualization