应用于聚合数据的文本小部件 table

Text-Widget Applied to an aggregated data table

利用 provided by Gordon, I've successfully created a selectable table that contains aggregated data. Now I would like to filter the data with the text-filter-widget.

我知道过滤器需要一个数组才能正常工作。我想了解的是,当 table 过滤器正在查看一组时,如何才能更新 table 行?

文本过滤器小部件与图表的不同之处在于它需要一个维度来进行过滤。

我们还需要声明第二个市场维度so that it will filter the table

因此

var marketDim, marketDim2;
// ...
marketDim = facts.dimension(function(d) {
  return d.Location;
});
marketDim2 = facts.dimension(function(d) {
  return d.Location;
});
// ...
search
  .dimension(marketDim2);

Fork of your fiddle.