I would like to filter my data based on the input in a textbox. Is this possible? Something like this but with crossfilter.
Certainly possible with crossfilter, just create dimension objects from your raw data and then apply a filter by the input of the text box.
myDimension.filter(valueFromBox); // selects values who equal the value in the text box
Check out the API docs here.
Related
First, here is the link to my sheet:
https://docs.google.com/spreadsheets/d/1067N1SAIwpGkMRBZiUv4JW8yDNkozuGt7Fwh6GW-qvE/edit#gid=1742559851
If you look at the tab called "Selection", I have two columns called "Select". All the data in these tables is collected by a query function, except column "Select". In that column, I need to add Data Validation (a simple Yes or No). I want the Data Validation to be automatically added when a new row is created but the query function instead of having to add or remove it manually every time I make some changed. Data collected by the query function is using the two variables on top of the sheet (minimum rating and global buff).
Just to show the step to apply data validation to your whole column, see the following image. Under Cell Range, the image shows Selection!D5:D99, but this is actually set to Selection!D5:D999, it just is truncated due to the size of the text box.
Let us know if this is what you were looking for, or if I've misunderstood your issue.
In the below link when i select something the filter gets displayed but the chart does not changes
here is my jsfiddle link: jsfiddle.net/amru/t56z8w2w/3/
Filters do not apply to groups defined on the same dimension as the filter. Define another chart based on a different dimension and it should change when you make a selection.
I am looking for a way to filter a table based on clicking a dynamic value in a Textarea in Spotfire 7.0.
I have a Textarea with an image and a bunch of calculated values over the top of that image (essentially a non geographic "map" of values). I would like to filter a table to show the rows which contribute to that dynamic value.
How can I filter the table based on the value clicked in the Textarea?
You can use Spotfire bookmarks. Create bookmarks and then configure images as a buttons and apply click action on them to redirect user to the particular bookmark.
You can also apply marking on Calculated values in a way that you can set your child visualizations to be limited by your dynamic value marking.
I am using custom paging in a RadGrid. It is working fine. But filter is not working as i want. So I thought of writing my own code for filter. But how could i get the filter text and the coloumn for which the filter was applied in the NeedDataSource event.
I got the answer, but I forgot to update here. My bad...
The answer is: gridObject.MasterTableView.FilterExpression. This grid property has all the filters concatenated as a string. this string contains column headers and the filter applied separated by comma ,. You can split that and work on it.
I found another way, which I discovered thanks to ckr's answer here. You need to do this for each filterable column you are interested in:
var filterValue = rgFilterPoints.MasterTableView.GetColumn("YourColumnName").CurrentFilterValue;
Another option, if you happen to be in an event whose EventArgs parameter has Item (like GridCommandEventArgs), you can use this:
((GridTableCell)e.Item.Cells[5]).Column.CurrentFilterValue
You need to use column index in this case. Beware there are a few "hidden" columns at the beginning, so in this example I'm accessing the 4th column in the markup.
I am looking to create a bunch of filters on a Kendo Grid but these filters are for hidden columns.
I want to display the filter (perhaps moving it outside the grid area with jQuery) but keep the entire column hidden.
Any suggestions?
Use the dataSource.filter method for that implementation.
$('#GridName').data().kendoGrid.dataSource.filter({field:"hiddenColumnName",operator:"gt",value:42});
If for some reason you want to extract these filter descriptors from the Grid you can use the filter method without parameters. An object will be returned which will contain how exactly the Grid is filtered.
Please notice that this approach does not even require to have the columns hidden (you can skip declaring them at all). The whole objects (with all fields) are available by default on the client.