message: Allow for inverted colors on data bars
diff: @@ -1052,16 +1052,19 @@ var PptxGenJS = function(){
  strXml += '</c:marker>';
  }
  - if(rel.data.length === 1 && rel.opts.chartColors) {
  + if(rel.data.length === 1 && rel.opts.chartColors || rel.opts.valueBarColors) {
  // Series Data Point colors
  + // This is a template (not actual values), so only do this loop once.
  obj.values.forEach(function (value, index) {
  + var invert = rel.opts.invertedColors ? 0 : 1;
  + var colors = value < 0 ? rel.opts.invertedColors : rel.opts.chartColors;
  strXml += ' <c:dPt>';
  strXml += ' <c:idx val="'+index+'"/>';
  - strXml += ' <c:invertIfNegative val="1"/>';
  + strXml += ' <c:invertIfNegative val="'+invert+'"/>';
  strXml += ' <c:bubble3D val="0"/>';
  strXml += ' <c:spPr>';
  strXml += ' <a:solidFill>';
  - strXml += ' <a:srgbClr val="'+rel.opts.chartColors[index % rel.opts.chartColors.length]+'"/>';
  + strXml += ' <a:srgbClr val="'+(colors[index % colors.length])+'"/>';
  strXml += ' </a:solidFill>';
  strXml += ' <a:effectLst>';
  strXml += ' <a:outerShdw blurRad="38100" dist="23000" dir="5400000" algn="tl">';
  