message: `layout` chart option added. Enables to positionate plot within the chart area.
diff: @@ -907,6 +907,16 @@ var PptxGenJS = function(){
  return arrObjSlides;
  }
  + function correctLayoutOptions(layoutOpts) {
  + ['x', 'y', 'w', 'h'].forEach(function(key) {
  + var val = layoutOpts[key];
  + if (isNaN(Number(val)) || val < 0 || val > 1) {
  + console.warn('Warning: chart.layout.' + key + ' can only be 0-1');
  + delete layoutOpts[key]; // remove invalid value so that default will be used
  + }
  + });
  + }
  +
  /* =======================================================================================================
  |
  # # # # # #####
  @@ -976,7 +986,22 @@ var PptxGenJS = function(){
  strXml += '<c:plotArea>';
  // IMPORTANT: Dont specify layout to enable auto-fit: PPT does a great job maximizing space with all 4 TRBL locations
  + if ( rel.opts.layout ) {
  + strXml += '<c:layout>';
  + strXml += ' <c:manualLayout>';
  + strXml += ' <c:layoutTarget val="inner" />';
  + strXml += ' <c:xMode val="edge" />';
  + strXml += ' <c:yMode val="edge" />';
  + strXml += ' <c:x val="' + (rel.opts.layout.x || 0) + '" />';
  + strXml += ' <c:y val="' + (rel.opts.layout.y || 0) + '" />';
  + strXml += ' <c:w val="' + (rel.opts.layout.w || 1) + '" />';
  + strXml += ' <c:h val="' + (rel.opts.layout.h || 1) + '" />';
  + strXml += ' </c:manualLayout>';
  + strXml += '</c:layout>';
  + }
  + else {
  strXml += '<c:layout/>';
  + }
  // A: CHART TYPES -----------------------------------------------------------
  switch ( rel.opts.type ) {
  @@ -2850,6 +2875,8 @@ var PptxGenJS = function(){
  if ( ['circle','dash','diamond','dot','none','square','triangle'].indexOf(options.lineDataSymbol || '') < 0 ) options.lineDataSymbol = 'circle';
  options.lineDataSymbolSize = ( options.lineDataSymbolSize && !isNaN(options.lineDataSymbolSize ) ? options.lineDataSymbolSize : 6 );
  + correctLayoutOptions(options.layout);
  +
  // C: Options: plotArea
  options.showLabel = (options.showLabel == true || options.showLabel == false ? options.showLabel : false);
  options.showLegend = (options.showLegend == true || options.showLegend == false ? options.showLegend : false);
  