function _getAttrValue(d, accessor) {
  return accessor(d.data ? d.data : d);
}
Get the value of `attr` from the object.
@param {Object} d - data Object.
@param {Function} accessor - accessor function.
@returns {*} Value of the point.
@private