src/scripts/views/basechart.js
function (config) {
    var guide = config.categoryAxis.guides[0]
    var filter = this.filteredCollection.getFilters(this.filteredCollection.getTriggerField())
    if (filter) {
      if (config.categoryAxis.parseDates) {
        guide.date = filter.expression.value[0].value
        guide.toDate = filter.expression.value[1].value
      } else {
        guide.category = guide.toCategory = filter.expression.value
      }
    } else {
      if (guide.date) delete guide.date
      if (guide.toDate) delete guide.toDate
      if (guide.category) delete guide.category
    }
  }
function (config) {
    var guide = config.categoryAxis.guides[0]
    var filter = this.filteredCollection.getFilters(this.filteredCollection.getTriggerField())
    if (filter) {
      if (config.categoryAxis.parseDates) {
        guide.date = filter.expression.value[0].value
        guide.toDate = filter.expression.value[1].value
      } else {
        guide.category = guide.toCategory = filter.expression.value
      }
    } else {
      if (guide.date) delete guide.date
      if (guide.toDate) delete guide.toDate
      if (guide.category) delete guide.category
    }
  }
function ( config ) { var guide = config . categoryAxis . guides [ 0 ] var filter = this . filteredCollection . getFilters ( this . filteredCollection . getTriggerField ( ) ) if ( filter ) { if ( config . categoryAxis . parseDates ) { guide . date = filter . expression . value [ 0 ] . value guide . toDate = filter . expression . value [ 1 ] . value } else { guide . category = guide . toCategory = filter . expression . value } } else { if ( guide . date ) delete guide . date if ( guide . toDate ) delete guide . toDate if ( guide . category ) delete guide . category } }
Show guide on selected item or remove it if nothing's selected
Show guide on selected item or remove it if nothing s selected