function constructTransformPipeline(chartInfo) {
  let transforms = []
  transforms.push(defaultTitleAndKeylabel())
  if (chartInfo.cumulative) {
    transforms.push(cumulativeTransform())
  }
  if (chartInfo.converted && chartInfo.conversionFunction) {
    const conversionFunction = new Function('value', 'return ' + chartInfo.conversionFunction + ';')
    transforms.push(mathAllValues(conversionFunction))
  }
  return transforms
}
Creates the transform pipeline for the custom metric