Skip to content

Commit

Permalink
Merge pull request gitbrent#462 from vrimar/master
Browse files Browse the repository at this point in the history
Add catAxisMinVal and catAxisMaxVal
  • Loading branch information
gitbrent authored Dec 30, 2018
2 parents add45dd + 30bbb16 commit e0a26fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/pptxgen.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pptxgen.bundle.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/pptxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -3493,7 +3493,11 @@ var PptxGenJS = function(){
strXml += '<c:' + (opts.catLabelFormatCode ? 'dateAx' : 'catAx') + '>';
}
strXml += ' <c:axId val="'+ axisId +'"/>';
strXml += ' <c:scaling><c:orientation val="'+ (opts.catAxisOrientation || (opts.barDir == 'col' ? 'minMax' : 'minMax')) +'"/></c:scaling>';
strXml += ' <c:scaling>';
strXml += '<c:orientation val="' + (opts.catAxisOrientation || (opts.barDir == 'col' ? 'minMax' : 'minMax')) + '" />';
if (opts.catAxisMaxVal || opts.catAxisMaxVal == 0) strXml += '<c:max val="' + opts.catAxisMaxVal + '"/>';
if (opts.catAxisMinVal || opts.catAxisMinVal == 0) strXml += '<c:min val="' + opts.catAxisMinVal + '"/>';
strXml += '</c:scaling>';
strXml += ' <c:delete val="'+ (opts.catAxisHidden ? 1 : 0) +'"/>';
strXml += ' <c:axPos val="'+ (opts.barDir == 'col' ? 'b' : 'l') +'"/>';
strXml += ( opts.catGridLine !== 'none' ? createGridLineElement(opts.catGridLine, DEF_CHART_GRIDLINE) : '' );
Expand Down
2 changes: 1 addition & 1 deletion dist/pptxgen.min.js

Large diffs are not rendered by default.

0 comments on commit e0a26fd

Please sign in to comment.