src/scripts/views/pie.js
function (data) {
    // Add the filter to the filtered collection and fetch it with the filter
    this.filteredCollection.setFilter(data)

    // Only re-fetch if it's another chart (since this view doesn't filter itself)
    if (data.field !== this.filteredCollection.getTriggerField()) {
      this.filteredCollection.fetch()
    // If it's this chart and the filter is being removed, re-render the chart
    } else if (!data.expression) {
      this.render()
    }

    this.renderFilters()
  }
function (data) {
    // Add the filter to the filtered collection and fetch it with the filter
    this.filteredCollection.setFilter(data)

    // Only re-fetch if it's another chart (since this view doesn't filter itself)
    if (data.field !== this.filteredCollection.getTriggerField()) {
      this.filteredCollection.fetch()
    // If it's this chart and the filter is being removed, re-render the chart
    } else if (!data.expression) {
      this.render()
    }

    this.renderFilters()
  }
function ( data ) { // Add the filter to the filtered collection and fetch it with the filter this . filteredCollection . setFilter ( data ) // Only re-fetch if it's another chart (since this view doesn't filter itself) if ( data . field !== this . filteredCollection . getTriggerField ( ) ) { this . filteredCollection . fetch ( ) // If it's this chart and the filter is being removed, re-render the chart } else if ( ! data . expression ) { this . render ( ) } this . renderFilters ( ) }
When a chart has been filtered
When a chart has been filtered