I'm not sure if this helps you specifically, but I can think of two ways text boxes can be linked to Google Charts. Because of the way some of the sites I use are set up, some are CMSs which I have only limited access to, so I mostly use Google Sheets to hold the data, but the principles should still be same.
You can take the content of a textbox and use that to build a query to your data if it supports SQL or something similar. The result from the query than can be used to create the chart. The reference for doing that is at
https://developers.google.com/chart/interactive/docs/queries
My page contains a dropdown called audienceDrop and the datatable is called MSDC_cal_DataTable. I added an event listener to check if the dropdown changes. If it does, it creates a new dateview based the results of test: function(), which returns the row numbers of whatever the user is interested in finding.
The code is:
audienceDrop.addEventListener("change", function() {
if (audienceDrop.value == "All") {
drawTable(MSDC_cal_DataTable);
} else {
searchVal = audienceDrop.value;
var view = new google.visualization.DataView(MSDC_cal_DataTable);
view.setRows(MSDC_cal_DataTable.getFilteredRows([{
column: 1,
test: function(value) {
return (value == null || value == "Everyone" || value.indexOf(searchVal) > -1)
}
}]));
drawTable(view);
}
});
}