Go to your design area for your widget and find the text box you want to change. Then in the very upper part of the details panel, there should be a checkbox to make it a variable.
Once it is a variable you can go back to the graph part of your widget and drag it onto the graph from the variable listing.