Skip to content
Tim Wisniewski edited this page Jan 24, 2016 · 4 revisions

Base filters allow the data behind a card to have a base/underlying filter regardless of any other filters applied. This can be useful for:

  • When you have a dataset of properties and you want to create a VizWit page of just city-owned properties
  • When you have a dataset with multiple years of salaries and you want to create a VizWit page of a single year

Valid types: = < > <= >= != in not in and or is is not

Examples:

[{
  "field": "arrest",
  "expression": {
    "type": "=",
    "value": false
  }
}]
[
  {
    "field": "owner_1",
    "expression": {
      "type": "in",
      "value": [
        "CITY OF PHILA",
        "CITY OF PHILADELPHIA",
        "PHILA HOUSING AUTHORITY",
        "REDEVELOPMENT AUTHORITY",
        "PHILADELPHIA HOUSING",
        "REDEVELOPMENT AUTHORITY O",
        "PHILADELPHIA HOUSING AUTH",
        "PHILADELPHIA REDEVELOPMEN",
        "PHILA REDEVELOPMENT AUTH"
      ]
    }
  }
]
[
  {
    "field": "issue_date_and_time",
    "expression": {
      "type": "and",
      "value": [
        {
          "type": ">=",
          "value": "2013-09-01T04:00:00.000",
          "label": "9/1/2013"
        },
        {
          "type": "<=",
          "value": "2014-04-01T03:59:59.999",
          "label": "3/31/2014"
        }
      ]
    }
  }
]
Clone this wiki locally