{"_id":"@domoinc/budgetdonut","_rev":"38-02d05b248d3321394f331fee3432427a","name":"@domoinc/budgetdonut","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@domoinc/budgetdonut","version":"2.0.0","keywords":["domo","app"],"author":{"name":"Domo Apps Team"},"license":"MIT","_id":"@domoinc/budgetdonut@2.0.0","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"648ffdfa8c7f4a07adc149f3b4316221c08c2a97","tarball":"https://registry.npmjs.org/@domoinc/budgetdonut/-/budgetdonut-2.0.0.tgz","integrity":"sha512-CY7NFLqeyNWBjPVVS4tqZbnXpF+LJAOrke5Rb1v0d0x8rhN8ob5jVLb3jg0sVNBwowi94RnM0CKdBKVq7gN/UQ==","signatures":[{"sig":"MEUCIQCKxhWv5FzR46ar8zB/UrIOQRbybVQv+Yns5dCx07h/RwIgB/JzDkTj3/53nHHPlbZNRfbYl/dwHX8fm4BKZEyOeII=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"648ffdfa8c7f4a07adc149f3b4316221c08c2a97","gitHead":"e48210e8bf1680e86f55d145e193a8f2763d4773","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"url":"https://git.empdev.domo.com/DA/yoWidget","type":"git"},"_npmVersion":"3.3.12","description":"BudgetDonut - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/i18n":"^2.1.0","@domoinc/da-theme2":"^2.1.0","@domoinc/donutvtwo":"^6.0.0"},"devDependencies":{"grunt":"~0.4.2","request":"^2.40.0","shelljs":"^0.2.6","webpack":"^1.12.12","grunt-notify":"^0.3.0","grunt-prompt":"^1.1.0","grunt-release":"^0.10.0","grunt-webpack":"^1.0.11","jshint-stylish":"^0.1.5","grunt-port-pick":"^1.5.0","load-grunt-tasks":"^3.4.0","webpack-dev-server":"^1.14.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.2","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"}},"2.0.1":{"name":"@domoinc/budgetdonut","version":"2.0.1","keywords":["domo","app"],"author":{"name":"Domo Apps Team"},"license":"MIT","_id":"@domoinc/budgetdonut@2.0.1","maintainers":[{"name":"aharris88","email":"aharris88@gmail.com"},{"name":"andrewjensen","email":"andrewjensen90@gmail.com"},{"name":"bkingery","email":"brian.kingery@gmail.com"},{"name":"clm","email":"chris.clm09@gmail.com"},{"name":"dallasnorton","email":"dallaslandonnorton@gmail.com"},{"name":"excrispy","email":"excrispy@gmail.com"},{"name":"jaxry","email":"cabot696@gmail.com"},{"name":"jgalb","email":"jakegpv@gmail.com"},{"name":"jmstewart","email":"james.stewart42@gmail.com"},{"name":"jonathan-law","email":"jonathan.q.law@gmail.com"},{"name":"k4paul","email":"kellie.morgan@domo.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"}],"dist":{"shasum":"ed12381d0d8e7629c7502152e1469d894dfb4c09","tarball":"https://registry.npmjs.org/@domoinc/budgetdonut/-/budgetdonut-2.0.1.tgz","integrity":"sha512-QdZj69I9qyy356s+y0eboWg9dYzZ103uBBZ4gq6Y19KYN47QWfJIWVCezgF4h1U1stmgl1pUQgLtLrT+IN1mCQ==","signatures":[{"sig":"MEYCIQDp91R5vmYHTPfKwqKSX/fTN7TqP+dFy9HIVw827KJHYwIhAPs2woCcYcr4QPlybuFdgVrCrr9v8l0nceAR7DHR+V83","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxE4CRA9TVsSAnZWagAAJgcP/0CfhJgW7vo1eHv9jfen\nxdtdTFLQdSIrJEm6XSWx4/iuGlQ15ENI8fiXU6OiCcIoHMJ/6by9xtBsKhQ0\nYcVY8N57MVXDPwHyZ/+KAnVCXqBtEWL5yOaTEi9j6t4/A+KDZc+gv930Q+VO\nnIFCTsaVe38di+N029xUdqkPHaPVQAVY2RmsppBDjSj17ExRFFDwIqzIAxyu\nf7Sr/lUG5BcaRQlMTPW0g/irKR0M+M6Tp1vJwZqhWJo/G0fVRHeJ8hwZsO2W\nJwC/GR8go4/JYdbpbdEF07s0vCNGRJaR6H0vwz+jYEVtOtUQ81uTqdAc06JN\nG+K8hOvoOTztLNFsQkvca0ctynKHmznhSaDb8p+lqA9BfR3v19oo2Vh1zauV\nx3wWR12oPWIF0uLUVCCLuuPX9J8Rae0XsmUP3MlyIQIEghjN/QOf0QMP8uno\nxpV81G/EpSWVLAs6uJqQ5JhJ/0Qth/mbzzpPjWLKiB1pg4xHBiAzYgrfFqOy\n4Yk2EeqgifDMwmVSv4+eZ8lwoqXzbRp42vZFFxHOXwW/I/5/WL3VKbZ/ueMV\nPDo9SN8TOcYu4zTPpIijaRczrKL6EDNSiSRC5g+cytKflPvgNoVyrY+Kibth\nspuFq1Z046nEgIX3AfDZlCLWmYo2NqLb7VxZ3PBRRfv6h5ZrkjEeJLggS7Pl\nP5tx\r\n=KUNw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"ed12381d0d8e7629c7502152e1469d894dfb4c09","gitHead":"315c963a6e851dd4849d4e353592ef5fcf4bd31a","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"url":"https://git.empdev.domo.com/DA/yoWidget","type":"git"},"_npmVersion":"3.3.12","description":"BudgetDonut - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/i18n":"^2.1.0","@domoinc/da-theme2":"^2.1.0","@domoinc/donutvtwo":"^6.0.0"},"devDependencies":{"grunt":"~0.4.2","request":"^2.40.0","shelljs":"^0.2.6","webpack":"^1.12.12","grunt-notify":"^0.3.0","grunt-prompt":"^1.1.0","grunt-release":"^0.10.0","grunt-webpack":"^1.0.11","jshint-stylish":"^0.1.5","grunt-port-pick":"^1.5.0","load-grunt-tasks":"^3.4.0","webpack-dev-server":"^1.14.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.2","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"}}},"time":{"created":"2016-02-01T04:36:16.506Z","modified":"2026-02-27T17:23:47.597Z","2.0.0":"2016-02-01T04:36:16.506Z","2.0.1":"2016-02-01T07:29:29.104Z"},"author":{"name":"Domo Apps Team"},"license":"MIT","keywords":["domo","app"],"repository":{"url":"https://git.empdev.domo.com/DA/yoWidget","type":"git"},"description":"BudgetDonut - Domo Widget","maintainers":[{"email":"trevor.tingey@domo.com","name":"ttingey"},{"email":"morganjohn12@gmail.com","name":"morganjohn12"},{"email":"jeff.smith@domo.com","name":"jeff.smith"},{"email":"cgrieb9@gmail.com","name":"congrieb"},{"email":"spencer@myweb-host.net","name":"th3uiguy"},{"email":"jason.hansen@domo.com","name":"domo_json"},{"email":"jon.tiritilli@domo.com","name":"jontiritilli-domo"}],"readme":"# BudgetDonut\n\nA donut with a budget arc appearing on hover\n\n<img src=media/widget.png height=500 width=500> \n\n## Configuration Options\n\n\n#### bounceOutPercent\nType: `number`  \nDefault: `1.05`  \n\nPercent of the inner - outer radius to bounce out on hover\n\n#### chartName\nType: `string`  \nDefault: `BudgetDonut`  \n\nName of chart for reporting\n\n#### chartPrimarySeriesColors\nType: `colorArray`  \nDefault: `#D9EBFD,#B7DAF5,#90c4e4,#73B0D7,#4E8CBA,#31689B,#DDF4BA,#BBE491,#A0D771,#80C25D,#559E38,#387B26,#FDECAD,#FCCF84,#FBAD56,#FB8D34,#E45621,#A43724,#F3E4FE,#DDC8EF,#C5ACDE,#B391CA,#8F6DC0,#7940A1,#FCD7E6,#FBB6DD,#F395CD,#EE76BF,#CF51AC,#A62A92,#D8F4DE,#ABE4CA,#8DD5BE,#68BEA8,#46998A,#227872,#FDDDDD,#FCBCB7,#FD9A93,#FD7F76,#e45850,#c92e25`  \n\nThe primary colors used to represent series data\n\n#### colorScale\nType: `function`  \nDefault: ``  \n\nundefined\n\n#### generalSeparatorColor\nType: `color`  \nDefault: `#FFFFFF`  \n\nColor of each slice's stroke (separator)\n\n#### generalWashoutColor\nType: `color`  \nDefault: `#E4E5E5`  \n\nFill color of any donut slice that is not being hovered\n\n#### height\nType: `number`  \nDefault: `250`  \nUnits: `px`\n\n\n\n#### innerRadius\nType: `number`  \nDefault: `166.25`  \n\nRadius to the inside of the Donut\n\n#### innerTextPadding\nType: `number`  \nDefault: `20`  \n\nPadding for the inner text elements\n\n#### labelFontSize\nType: `number`  \nDefault: `50`  \nUnits: `px`\n\nThe font size used for the label text\n\n#### labelTextColor\nType: `color`  \nDefault: `#888888`  \n\nText color of the label displayed in the center of the donut\n\n#### outerRadius\nType: `number`  \nDefault: `273.5`  \n\nRadius to the outside of the Donut\n\n#### overBudgetColor\nType: `color`  \nDefault: `#E4584F`  \n\nColor of budget arc and percent text color when spending is over budget\n\n#### percentTextSize\nType: `undefined`  \nDefault: `14`  \n\nText size of the percent text\n\n#### percentageTextPadding\nType: `number`  \nDefault: `110`  \nUnits: `px`\n\nHow far out to move the percentage text\n\n#### shouldValidate\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off data validation\n\n#### showInnerTextIndicator\nType: `boolean`  \nDefault: `true`  \n\nShows/Hides the text indicator in the center of the donut\n\n#### sliceStrokeWidth\nType: `number`  \nDefault: `1`  \nUnits: `px`\n\nStroke width of each donut slice\n\n#### sortData\nType: `boolean`  \nDefault: `true`  \n\nIf true it will sort the data in descending order\n\n#### textFontFamily\nType: `string`  \nDefault: `Open Sans`  \n\nTooltip text font family\n\n#### underBudgetColor\nType: `color`  \nDefault: `#80C25D`  \n\nColor of budget arc and percent text color when spending is under budget\n\n#### updateSizeableConfigs\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off the mimic of illustrator's scale functionality\n\n#### valueFontSize\nType: `number`  \nDefault: `48`  \nUnits: `px`\n\nThe font size used for the value text\n\n#### valueTextColor\nType: `color`  \nDefault: `#333`  \n\nText color of the value displayed in the center of the donut\n\n#### width\nType: `number`  \nDefault: `250`  \nUnits: `px`\n\n\n\n## Data Definition\n\n\n#### actual\nType: `number`\n\nDefault validate:  \n```js\nfunction (d) { return !isNaN(this.accessor(d)) && this.accessor(d) >= 0; }\n```\n\nDefault accessor:  \n```js\nfunction (line) { return Number(line[1]); }\n```\n\n#### budget\nType: `number`\n\nDefault validate:  \n```js\nfunction (d) { return !isNaN(this.accessor(d)) && this.accessor(d) >= 0; }\n```\n\nDefault accessor:  \n```js\nfunction (line) { return Number(line[2]); }\n```\n\n#### label\nType: `string`\n\nDefault validate:  \n```js\nfunction (d) {\n            return this.accessor(d) !== undefined;\n          }\n```\n\nDefault accessor:  \n```js\nfunction (line) {\n            return line[0] === undefined ? undefined : String(line[0]);\n          }\n```\n\n#### name\nType: `string`\n\nDefault validate:  \n```js\nfunction (d) { return this.accessor(d) !== undefined; }\n```\n\nDefault accessor:  \n```js\nfunction (line) { return line[0] === undefined ? undefined : String(line[0]); }\n```\n\n#### value\nType: `number`\n\nDefault validate:  \n```js\nfunction (d) {\n            return !isNaN(this.accessor(d)) && this.accessor(d) >= 0 && this.accessor(d);\n          }\n```\n\nDefault accessor:  \n```js\nfunction (line) {\n            return Number(line[1]);\n          }\n```\n\n## Events\n\n\n#### Dispatch Events\n\ndispatch:mouseover  \ndispatch:mouseout  \n#### External Events\n\n\n## Example\n\n```js  \n//Setup some fake data\nvar data = [\n\t['North', 40,  50  ],\n\t['South', 100, 30\t ],\n\t['East', \t80,  10\t ],\n\t['West', \t100, 100 ],\n];\n\nvar aHeight = 400;\nvar aWidth = 400;\n\n//Initialze the widget\nvar chart = d3.select('#vis')\n\t.append('svg')\n\t.attr('width', 500 + 'px')\n\t.attr('height', 500 + 'px')\n\t.append('g')\n\t.attr('transform', 'translate(50,50)')\n\t.chart('BudgetDonut')\n\t.c({\n\t\t'width': aWidth,\n\t\t'height': aHeight,\n\t});\n\n//Render the chart with data\nchart._notifier.showMessage(true);\nchart.draw(data);\n\nvar dataObjNorth = {\n\tdata: ['North', 100, 50],\n\tname: 'North',\n\tseries: 'North',\n\ttotalData: {\n\t\tdata: ['North', 100, 50],\n\t\tendAngle: 1.6534698176788387,\n\t\tstartAngle: 0,\n\t\tvalue: 100,\n\t}\n};\n\nvar dataObjSouth = {\n\tdata: ['South', 100, 30],\n\tname: 'South',\n\tseries: 'South',\n\ttotalData: {\n\t\tdata: ['South', 100, 50],\n\t\tendAngle: 3.3069396353576774,\n\t\tstartAngle: 1.6534698176788387,\n\t\tvalue: 100,\n\t}\n};\n\nsetTimeout(function(d) {\n\tchart.trigger('dispatch:mouseover', dataObjNorth);\n\tchart.trigger('external:mouseover', dataObjNorth);\n}, 2000);\n\nsetTimeout(function(d) {\n\tchart.trigger('dispatch:mouseover', dataObjSouth);\n\tchart.trigger('external:mouseover', dataObjSouth);\n}, 3000);\n\nsetTimeout(function(d) {\n\tchart.trigger('dispatch:mouseout');\n\tchart.trigger('external:mouseout');\n}, 4000);\n\n```\n\n","readmeFilename":"README.md"}