Click on chart updates text input