What do you mean when you say it isn't working? StringFilters should work
fine on "string" type columns containing letters and numbers:
http://jsfiddle.net/asgallant/aD7AV/
On Friday, May 16, 2014 5:26:31 AM UTC-4, Missy wrote:
>
> I am writing to seek advice, in I have fieldname property of type string
> but its composed of numbers and string values. currently, I cannot use
> this fieldname with the string filter controller, when type in number
> values in the string filter. Is their a control property i could add to
> make this logic work or will i need to write separate function.
>
> function drawVisualization(dataValues, chartTitle, columnNames,
> categoryCaption) {
> if (dataValues.length < 1)
> return;
>
> var data = new google.visualization.DataTable();
> data.addColumn('string', columnNames.split(',')[0]);
> data.addColumn('number', columnNames.split(',')[1]);
> data.addColumn('string', columnNames.split(',')[2]);
> data.addColumn('datetime', columnNames.split(',')[3]);
>
> data.addColumn('string', columnNames.split(',')[4]);
> data.addColumn('string', columnNames.split(',')[5]);
>
>
> for (var i = 0; i < dataValues.length; i++) {
>
> var date = new Date(parseInt(dataValues[i].Date.substr(6),
> 10));
>
> data.addRow([dataValues[i].ColumnName,
> dataValues[i].Value, dataValues[i].Type, date, dataValues[i].ID,
> dataValues[i].Tag]);
> }
>
> // Define a StringFilter control for the 'Tag' column
> var stringFilter2 = new google.visualization.ControlWrapper({
> 'controlType': 'StringFilter',
> 'containerId': 'control2',
> 'options': {
> 'filterColumnLabel': columnNames.split(',')[5],
> 'filterColumnIndex': '5',
> }
> });
>
> Following kind of the values are used to search in the filter (currently
> not working):
> 053635AJ7 04280PAA5
>
> Please advise. Thank you
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.