src/widgets/views/chartjs1d.js
function onClick (ev, elements) {
  var model = this._Ampersandview.model;
  var partition = model.filter.partitions.get(1, 'rank');

  if (elements.length > 0) {
    partition.updateSelection(partition.groups.models[elements[0]._index]);
    model.filter.updateDataFilter();
    app.me.dataview.getData();
  }
}
function onClick (ev, elements) {
  var model = this._Ampersandview.model;
  var partition = model.filter.partitions.get(1, 'rank');

  if (elements.length > 0) {
    partition.updateSelection(partition.groups.models[elements[0]._index]);
    model.filter.updateDataFilter();
    app.me.dataview.getData();
  }
}
function onClick ( ev , elements ) { var model = this . _Ampersandview . model ; var partition = model . filter . partitions . get ( 1 , 'rank' ) ; if ( elements . length > 0 ) { partition . updateSelection ( partition . groups . models [ elements [ 0 ] . _index ] ) ; model . filter . updateDataFilter ( ) ; app . me . dataview . getData ( ) ; } }
Called by Chartjs, this -> chart instance
Called by Chartjs this - > chart instance