extractValueRange = data => {
  if (!data || data.length === 0) {
    return [0, 1];
  }
  return extent(data, d => d.value);
}
Derive the min and max values of an given array of data
@param {array} data - input data with attribute value
@return the min and max values in shape of [min, max]