Copying click handling from Charts