import Backbone from 'backbone';
import myTemplate from './index.jade';

let MappingView = Backbone.View.extend({
  initialize: function () {
  },
  render: function () {
    this.$el.html(myTemplate());
  }
});

export default MappingView;

import Backbone from 'backbone';
import myTemplate from './index.jade';
import candela from '../../../../../src';

let MappingView = Backbone.View.extend({
  initialize: function () {
  },
  render: function () {
    const spec = candela.components.Scatter.options;
    const fields = spec.filter((opt) => opt.selector && opt.selector[0] === 'field');

    console.log(fields);

    this.$el.html(myTemplate());
  }
});

export default MappingView;

Gather some information about field selectors
Gather some information about field selectors
