diff --git a/README.md b/README.md index d31a77fdb..932003f0e 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,7 @@ slide.addChart({TYPE}, {DATA}, {OPTIONS}); ### Chart Types * Chart type can be any one of `pptx.charts` -* Currently: `pptx.charts.AREA`, `pptx.charts.BAR`, `pptx.charts.LINE`, `pptx.charts.PIE` +* Currently: `pptx.charts.AREA`, `pptx.charts.BAR`, `pptx.charts.LINE`, `pptx.charts.PIE`, `pptx.charts.DOUGHNUT` ### Chart Size/Formatting Options | Option | Type | Unit | Default | Description | Possible Values | @@ -346,6 +346,7 @@ slide.addChart({TYPE}, {DATA}, {OPTIONS}); | `titleColor` | string | | `000000` | title color | hex color code. Ex: `{ titleColor:'0088CC' }` | | `titleFontFace` | string | | `Arial` | font face | font name. Ex: `{ titleFontFace:'Arial' }` | | `titleFontSize` | number | points | `18` | font size | 1-256. Ex: `{ titleFontSize:12 }` | +| `holeSize` | number | percent | `50` | doughnut hole size | 1-100. Ex: `{ holeSize:50 }` | ### Chart Axis Options | Option | Type | Unit | Default | Description | Possible Values | diff --git a/dist/pptxgen.bundle.js b/dist/pptxgen.bundle.js index e2bf09514..aca47f7dc 100644 --- a/dist/pptxgen.bundle.js +++ b/dist/pptxgen.bundle.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function a(e){var t="length"in e&&e.length,a=J.type(e);return"function"!==a&&!J.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===a||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,a){if(J.isFunction(t))return J.grep(e,function(e,r){return!!t.call(e,r,e)!==a});if(t.nodeType)return J.grep(e,function(e){return e===t!==a});if("string"==typeof t){if(se.test(t))return J.filter(t,e,a);t=J.filter(t,e)}return J.grep(e,function(e){return q.call(t,e)>=0!==a})}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function i(e){var t=fe[e]={};return J.each(e.match(de)||[],function(e,a){t[a]=!0}),t}function s(){X.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1),J.ready()}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+o.uid++}function l(e,t,a){var r;if(void 0===a&&1===e.nodeType)if(r="data-"+t.replace(Ae,"-$1").toLowerCase(),"string"==typeof(a=e.getAttribute(r))){try{a="true"===a||"false"!==a&&("null"===a?null:+a+""===a?+a:ve.test(a)?J.parseJSON(a):a)}catch(e){}ge.set(e,t,a)}else a=void 0;return a}function c(){return!0}function p(){return!1}function d(){try{return X.activeElement}catch(e){}}function f(e,t){return J.nodeName(e,"table")&&J.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function u(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Re.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var a=0,r=e.length;r>a;a++)me.set(e[a],"globalEval",!t||me.get(t[a],"globalEval"))}function g(e,t){var a,r,n,i,s,o,l,c;if(1===t.nodeType){if(me.hasData(e)&&(i=me.access(e),s=me.set(t,i),c=i.events)){delete s.handle,s.events={};for(n in c)for(a=0,r=c[n].length;r>a;a++)J.event.add(t,n,c[n][a])}ge.hasData(e)&&(o=ge.access(e),l=J.extend({},o),ge.set(t,l))}}function v(e,t){var a=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&J.nodeName(e,t)?J.merge([e],a):a}function A(e,t){var a=t.nodeName.toLowerCase();"input"===a&&we.test(e.type)?t.checked=e.checked:("input"===a||"textarea"===a)&&(t.defaultValue=e.defaultValue)}function y(t,a){var r,n=J(a.createElement(t)).appendTo(a.body),i=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(n[0]))?r.display:J.css(n[0],"display");return n.detach(),i}function b(e){var t=X,a=Oe[e];return a||("none"!==(a=y(e,t))&&a||(De=(De||J("