{"_id":"@domoinc/donut-with-legend","_rev":"39-402c90405ee8f330497510f67d1b5301","name":"@domoinc/donut-with-legend","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.2":{"name":"@domoinc/donut-with-legend","version":"1.0.2","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/donut-with-legend@1.0.2","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"e8e304396d2c2cd11f96390279c8afb06dad4ea9","tarball":"https://registry.npmjs.org/@domoinc/donut-with-legend/-/donut-with-legend-1.0.2.tgz","integrity":"sha512-ZE5gEY5HGUewoVuRzrXhEz7/xWtU1CvXj9R6Df8yHBhHzThcldS2/mt5oRFv2AYvT4GmAtTfN6hC5214ECQbRQ==","signatures":[{"sig":"MEQCIFk3yWxpCLBkdwcx42bkoKKqAFJ/l7DQcWJslSZ1pIFhAiBxtY7cTEFOAN47uPzXzS9DtlmGfpfWYZ9rMHJ3laqyBg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"e8e304396d2c2cd11f96390279c8afb06dad4ea9","gitHead":"ff54927b5add81a4eba97fd2cca2fe9782f33417","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.1","description":"DonutWithLegend - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/donut":"^6.0.5","@domoinc/legend":"^6.0.4","@domoinc/da-theme2":"^2.3.1","@domoinc/base-widget":"^1.5.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.13.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-clean":"^0.7.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.2","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/donut-with-legend-1.0.2.tgz_1455732560201_0.9196938783861697","host":"packages-5-east.internal.npmjs.com"}},"1.0.3":{"name":"@domoinc/donut-with-legend","version":"1.0.3","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/donut-with-legend@1.0.3","maintainers":[{"name":"aharris88","email":"aharris88@gmail.com"},{"name":"andrewjensen","email":"andrewjensen90@gmail.com"},{"name":"bkingery","email":"brian.kingery@gmail.com"},{"name":"bmbarker-domo","email":"ben.barker@domo.com"},{"name":"clm","email":"chris.clm09@gmail.com"},{"name":"dallasnorton","email":"dallaslandonnorton@gmail.com"},{"name":"excrispy","email":"excrispy@gmail.com"},{"name":"freakaziod210","email":"freakaziod210@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":"lcwright21","email":"lance.wright@hotmail.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"},{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"}],"dist":{"shasum":"89e78628f3d8c3ea008faa929273ec5bed6ef50e","tarball":"https://registry.npmjs.org/@domoinc/donut-with-legend/-/donut-with-legend-1.0.3.tgz","integrity":"sha512-v5YqaAdYWuBn8h+cUvM48YLiifGHuU42RdD/HXgLTaeNvQ4W42bL+dKvUh9koJaYKMz8+aOtXPexgQJrLabNLA==","signatures":[{"sig":"MEYCIQD5dyEgbiBqK4GLz/5++CwVZExi1DMmMO1jhKGZNyYMkQIhAPRMHoIVJ+jJseMuayrb4UBzouq6Cc6/ObAkgRWxAptQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"89e78628f3d8c3ea008faa929273ec5bed6ef50e","gitHead":"1d992d464d3e795f863d199d2e720169daa7c46b","scripts":{},"_npmUser":{"name":"jonathan-law","email":"jonathan.q.law@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.8","description":"DonutWithLegend - Domo Widget","directories":{},"_nodeVersion":"4.2.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/donut":"^7.0.6","@domoinc/legend":"^6.0.4","@domoinc/da-theme2":"^2.3.1"},"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.13.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-clean":"^0.7.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.2","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/donut-with-legend-1.0.3.tgz_1457462118284_0.08163660299032927","host":"packages-12-west.internal.npmjs.com"}},"1.0.4":{"name":"@domoinc/donut-with-legend","version":"1.0.4","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/donut-with-legend@1.0.4","maintainers":[{"name":"aharris88","email":"aharris88@gmail.com"},{"name":"andrewjensen","email":"andrewjensen90@gmail.com"},{"name":"bkingery","email":"brian.kingery@gmail.com"},{"name":"bmbarker-domo","email":"ben.barker@domo.com"},{"name":"clm","email":"chris.clm09@gmail.com"},{"name":"dallasnorton","email":"dallaslandonnorton@gmail.com"},{"name":"excrispy","email":"excrispy@gmail.com"},{"name":"freakaziod210","email":"freakaziod210@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":"lcwright21","email":"lance.wright@hotmail.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"},{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"}],"dist":{"shasum":"067e70b8955a1bfaa5b92cef5b11731d694be8ef","tarball":"https://registry.npmjs.org/@domoinc/donut-with-legend/-/donut-with-legend-1.0.4.tgz","integrity":"sha512-xJ9TAFp+exooB0+ysDfm0wvkS3e87kg8zumI7J+XhqPQevgNXxLQvEJ9v3o8r0g0amvDD2tdGpdrbKEe08w1cA==","signatures":[{"sig":"MEUCIQD0M5R5bWKoBwTH/gFd1qI3T6h5iI6CUED8oyqqbzhfygIgIuUwzJlepYjgU7UHYB8smzJSRTg+sryWCUsO4RC9098=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"067e70b8955a1bfaa5b92cef5b11731d694be8ef","gitHead":"35768eaa2074438196f3bfb175c71b568afbd311","scripts":{},"_npmUser":{"name":"jaxry","email":"cabot696@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"DonutWithLegend - Domo Widget","directories":{},"_nodeVersion":"5.1.0","dependencies":{"d3":"^3.5.16","d3.chart":"^0.3.0","@domoinc/donut":"^7.0.6","@domoinc/legend":"^6.0.11","@domoinc/da-theme2":"^2.3.1","@domoinc/base-widget":"^1.5.2"},"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.13.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-clean":"^0.7.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.2","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/donut-with-legend-1.0.4.tgz_1460740118922_0.1532235813792795","host":"packages-16-east.internal.npmjs.com"}},"1.0.5":{"name":"@domoinc/donut-with-legend","version":"1.0.5","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/donut-with-legend@1.0.5","maintainers":[{"name":"walex","email":"w.alexnelson@gmail.com"},{"name":"jpumford","email":"jpumford@gmail.com"},{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"},{"name":"freakaziod210","email":"freakaziod210@gmail.com"},{"name":"bmbarker-domo","email":"ben.barker@domo.com"},{"name":"bkingery","email":"brian.kingery@gmail.com"},{"name":"excrispy","email":"excrispy@gmail.com"},{"name":"clm","email":"chris.clm09@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"},{"name":"k4paul","email":"kellie.morgan@domo.com"},{"name":"andrewjensen","email":"andrewjensen90@gmail.com"},{"name":"jgalb","email":"jakegpv@gmail.com"},{"name":"dallasnorton","email":"dallaslandonnorton@gmail.com"},{"name":"jonathan-law","email":"jonathan.q.law@gmail.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"89514f5c8e0b45ae9179dbab9cb2e8b90d3ce12f","tarball":"https://registry.npmjs.org/@domoinc/donut-with-legend/-/donut-with-legend-1.0.5.tgz","integrity":"sha512-5+UQRdKHssEo2xjZoisE2ll+HmIv5RKctqbn0m41duPJMn+XBFBfkk4TC5n2CxHV/I9yqPSGnQrwP4nx9k7lmA==","signatures":[{"sig":"MEQCIA5HE1PO36hxGJ93MkmWLsPOQmEgE+ZWPFM7HJiXDw+xAiBuQTS9R9Tra4MQz/73yAVm94Q1Co3K/R/00N7a/LVbWA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2EL4CRA9TVsSAnZWagAAZ7wP/0vKV5T7rm6HH5H/Us6v\nUlTRHopup99OiLY+8rrlmv5Px0ddimNvcIv3TCEKM5cwGRKE1j65GXdbPgv7\nNQcA+WYHQTdUiCnDTRI1vh85jguGuC3Dzxfx4wtW1pIhHdhjdKUYgJQz5PiI\na6xh7axBL8z9ctnt1ARQCvtgBLSU+e9hQP9/4HEW1Vu+Hb21ra/zSurdr4hj\ndN/MJPZ3uWbVxF0MKZm1S20hwZ50GqzKm+mUpMS0rahzv3o3WuQbKRC8Mz4Z\nvBuLQGyHtzKdEFRBqp6MtqCvVadS5TzK5KFbP7SvoPAStbR5QY1Qigr8czzD\nRUaPLD96bk0vdNsrL7MOw2qDjzILtJ7iWBHBVfrUeV0fj9ECe97C2VlNvJWH\nORvMOHpLMNfCCUunshboMsiNHuy+CJzlXdkR9UEDRJcAZ3WRjyNcn6pxHCea\n53YKO2QtlPN0ulu0MwEZR+PQ6ivvD5MGBY8O1XJ47yjckg7lR+NK73TCwusn\npaVvFcK0EF7MyQoDgDX58xjQxRIaYycuKPPYp6Jzf2tee21X5muveJnqya6y\nDrLchjY5CBEwipDcmRQ5HyHaPzRSQHjlQcoxhWH4ZUrKuenHC8cpgocbuj3W\nczP1Bs/zTXO2Ng8uHMUdTfV1QNdtopC1h2e3t5/k5gTqYYf6GU4aNm9blLhf\nXmlK\r\n=68rW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"89514f5c8e0b45ae9179dbab9cb2e8b90d3ce12f","gitHead":"f3c0581173abcc1cb01fe29f77e72263a18e7e59","scripts":{},"_npmUser":{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"},"repository":{"type":"git"},"_npmVersion":"3.8.6","description":"DonutWithLegend - Domo Widget","directories":{},"_nodeVersion":"5.12.0","dependencies":{"d3":"^3.5.16","d3.chart":"^0.3.0","@domoinc/donut":"^7.0.6","@domoinc/legend":"^6.0.11","@domoinc/da-theme2":"^2.3.1","@domoinc/base-widget":"^1.5.2"},"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.13.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-clean":"^0.7.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.2","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/donut-with-legend-1.0.5.tgz_1502839937938_0.6277761089149863","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-02-17T18:09:22.638Z","modified":"2026-02-27T17:28:11.146Z","1.0.2":"2016-02-17T18:09:22.638Z","1.0.3":"2016-03-08T18:35:23.441Z","1.0.4":"2016-04-15T17:08:42.494Z","1.0.5":"2017-08-15T23:32:18.167Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","keywords":["domo","app"],"repository":{"type":"git"},"description":"DonutWithLegend - 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":"# DonutWithLegend\n\nDonut with center text and a legend\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: `PieWithLegend`  \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#### legendFontColor\nType: `color`  \nDefault: `#8A8D8F`  \n\nFont color for the legend\n\n#### legendRowHeight\nType: `number`  \nDefault: `15`  \n\nHeight of the legend rows\n\n#### legendSeparatorColor\nType: `color`  \nDefault: `#E4E4E5`  \n\nColor for the dividing lines in the legend\n\n#### legendWashoutColor\nType: `color`  \nDefault: `#E4E4E5`  \n\nColor used to indicate elements that are not being highlighted\n\n#### legendWidth\nType: `number`  \nDefault: `100`  \n\nWidth of the legend\n\n#### outerRadius\nType: `number`  \nDefault: `273.5`  \n\nRadius to the outside of the Donut\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#### 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#### 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#### 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\nexternal:mouseover  \nexternal:mouseout  \n\n## Example\n\n```js  \n/*----------------------------------------------------------------------------------\n Create Widget -> index.html\n\n © 2011 - 2015 DOMO, INC.\n ----------------------------------------------------------------------------------*/\n\n//Setup some fake data\nvar data = [\n  ['North', 5],\n  ['South', 7],\n  ['East', 3],\n  ['West', 6]\n];\n\nvar chart = d3.select('#vis')\n\t.append('svg')\n\t.attr({\n\t\twidth: 500,\n\t\theight: 500,\n\t})\n\t.append('g')\n\t.attr('transform', 'translate(40, 102)')\n\t.chart('DonutWithLegend')\n\t.c({\n\t\theight: 300,\n\t\twidth: 300,\n\t});\n\n//Render the chart with data\nchart._notifier.showMessage(true);\nchart.draw(data);\n\nvar d1 = {data: data[1]};\nvar d2 = {data: data[3]};\n\nsetTimeout(function() {\n  chart.trigger('dispatch:mouseover', d1);\n}, 2000)\n\nsetTimeout(function() {\n  chart.trigger('dispatch:mouseover', d2);\n}, 3000)\n\nsetTimeout(function() {\n  chart.trigger('dispatch:mouseout');\n}, 4000)\n```\n\n","readmeFilename":"README.md"}