withDerivedDataUnit = WrappedComponent => props => {
  const derivedData = {
    percentiles: getPercentiles(props),
    density: getDensity(props),
  };
  return <WrappedComponent {...props} {...derivedData} />;
}
HOC function to compute derived data for multi-way-unit, multi-way-group, and multi-way-plot