make square charts respond to clicking