{"_id":"@domoinc/pie-with-legend","_rev":"38-401c3286a457ef5372dd9b834ff83664","name":"@domoinc/pie-with-legend","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@domoinc/pie-with-legend","version":"1.0.0","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/pie-with-legend@1.0.0","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"8b43165697d8be392bdcc4a93d5df0801280b132","tarball":"https://registry.npmjs.org/@domoinc/pie-with-legend/-/pie-with-legend-1.0.0.tgz","integrity":"sha512-7sQ4QNHffKMxAuq30pAEJGMY3S9cuz/Rw1XwscLjDo2mDHCtR5ngt0ffgHgCTjeDKjPK8sLvvAEVLnG/oryufQ==","signatures":[{"sig":"MEUCICOuHbA5XJSfS6pchla+htQ26W8ymcIo6PCig9dCp0gjAiEAsfmVUNNTU8K8WCZE7/IYzW7e/CKtCyD/gT8Rz9ZYcfI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"8b43165697d8be392bdcc4a93d5df0801280b132","gitHead":"c21aa67aec01d93aa42d22485f5839e90f407d3b","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"PieWithLegend - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/pie":"^4.0.1","@domoinc/legend":"^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-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/pie-with-legend-1.0.0.tgz_1454698072874_0.5943919171113521","host":"packages-5-east.internal.npmjs.com"}},"1.0.1":{"name":"@domoinc/pie-with-legend","version":"1.0.1","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/pie-with-legend@1.0.1","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":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"}],"dist":{"shasum":"86b2ace7fe4207bc19bd6ab18e166aa7a5d52f67","tarball":"https://registry.npmjs.org/@domoinc/pie-with-legend/-/pie-with-legend-1.0.1.tgz","integrity":"sha512-BNgANbGchWt/XG+A53sDzoYHEjABikDnZjXBPef3WAVYbLUqBpMSKpzX2EQIYAbw/z4onyPTGUvvtE0cEuc8pQ==","signatures":[{"sig":"MEQCIFXcWfMdwNDQEnKN+zouhB1AbVAyNG5kMube+1lyagc1AiA5yQMjzaBuOuMKTZ6rbFo525k8vOlJEG0Ual5qF/JfEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"86b2ace7fe4207bc19bd6ab18e166aa7a5d52f67","gitHead":"c4f2bc1106bb76c93c07647b3cb4704f56d99ffe","scripts":{},"_npmUser":{"name":"jonathan-law","email":"jonathan.q.law@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.8","description":"PieWithLegend - Domo Widget","directories":{},"_nodeVersion":"4.2.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/pie":"^4.0.6","@domoinc/legend":"^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-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/pie-with-legend-1.0.1.tgz_1457471891929_0.13409933471120894","host":"packages-13-west.internal.npmjs.com"}},"1.0.2":{"name":"@domoinc/pie-with-legend","version":"1.0.2","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/pie-with-legend@1.0.2","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":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"}],"dist":{"shasum":"51c259a8628f95bc4a79235f55bb67c9162fb0a3","tarball":"https://registry.npmjs.org/@domoinc/pie-with-legend/-/pie-with-legend-1.0.2.tgz","integrity":"sha512-ZkdK3GsGw1S3ZqDbGe/EL347nhHMpb0IDAN5WrKwEvUhpt8omjDBm9NAMTRp8/z/+yzASqHd29npo5/519X0QA==","signatures":[{"sig":"MEUCIQDIfwHiQ5k2GruY0llG48mxkkgqjJ+NLPqT5qjEGQxqogIgFwK3u0nS9BgXiYGkg9Qmm1YVFg6p451oVwQ7zuvNZHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxJsCRA9TVsSAnZWagAADF4P/1KNTyaRTBTOXQHQsxkO\n1042EegdFn+OAweeM9OzFu+ua65lmTjFTyoR/P9BjkRgKxTEphaIaTws5vuh\nOgPasC7u3P1yT55JZHzWfZRgqFXJ7Z/U0Gb+NqQTXUZQXvQveqWE5dAiBR0/\nKYfzNrHV9mOcIM8Ufw6xAmK+672N4xhcPEg+dwwcpxNS/GhqN7CQFQojJrPn\nOQQIS93WchvfQL+9HQ7MLKYds1tMvby0LFyJKGEa1hc/VRyi16awx9TyXQZD\nwEN5Zn3XSQfYsftmXVA88sZeiN6pgq6Ua6+1OsPeIcPkZjV/dt1L6m0RQQDL\noBkxJSuT2oTok7QyLIy74YzibDUodJ1vXeefnvj3akBTHLrXavqpBxxN/K3M\nfh4x98q5vGGkB3+cK5c58DrT5J5+jrnYuqLwfsoiyEzx89wToGXWO0fx5Nhq\n3IZpKUjV1osK77F7kqEL67Pk4xJemohDJAOsEnQcCxM4sG9KVVkLvw2rLook\nJ3wi4XzQQB9SSJAt3BXndz1W3DLaYDOHby9JPIzSPY3JZCc/gkNO+CW3px3n\niUtrSkanmPqx82zHDbzPXE5TvskMbalEFeDwabivvKSRL7uJbR6mwtEWqxiS\nh0YyJuux9MpvVa6LPZdVKnGN1qL3FsxYA3Eu996c5rViB6SFRcV4wUVOM2fS\npB2q\r\n=0aXc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"51c259a8628f95bc4a79235f55bb67c9162fb0a3","gitHead":"4b37ebf63f0d89334a30b2dcef4a9150db823e37","scripts":{},"_npmUser":{"name":"excrispy","email":"excrispy@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.2","description":"PieWithLegend - Domo Widget","directories":{},"_nodeVersion":"5.2.0","dependencies":{"d3":"^3.5.16","d3.chart":"^0.3.0","@domoinc/pie":"^4.0.6","@domoinc/legend":"^6.0.11","@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.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-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/pie-with-legend-1.0.2.tgz_1460998038165_0.8065428170375526","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2016-02-05T18:47:53.852Z","modified":"2026-02-27T17:28:43.614Z","1.0.0":"2016-02-05T18:47:53.852Z","1.0.1":"2016-03-08T21:18:15.082Z","1.0.2":"2016-04-18T16:47:19.506Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","keywords":["domo","app"],"repository":{"type":"git"},"description":"PieWithLegend - 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":"# PieWithLegend\n\nPie chart with a legend\n\n\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#### chartLabelColor\nType: `undefined`  \nDefault: `\"black\"`  \n\nundefined\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#### 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: `400`  \nUnits: `px`\n\nHeight of the widget\n\n#### innerCircleBackgroundFillColor\nType: `color`  \nDefault: `\"none\"`  \n\nFill color for the donut's inner circle background. None will hide the background.\n\n#### innerRadius\nType: `number`  \nDefault: `0`  \n\nRadius to the inside of the Donut\n\n#### innerTextPadding\nType: `number`  \nDefault: `20`  \n\nPadding for the inner text elements\n\n#### isOnMobile\nType: `boolean`  \nDefault: `false`  \n\nIf true, it signals to the widget that it is running on a mobile device.\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: `false`  \n\nShows/Hides the Text indicator in the center of the donut\n\n#### sliceStrokeWidth\nType: `number`  \nDefault: `0.5`  \nUnits: `px`\n\nStroke width of each donut slice\n\n#### sortData\nType: `boolean`  \nDefault: `false`  \n\nIf true it will sort the data in descending order\n\n#### textColor\nType: `undefined`  \nDefault: `\"black\"`  \n\nundefined\n\n#### textFontFamily\nType: `string`  \nDefault: `\"Open Sans\"`  \n\nTooltip text font family\n\n#### tooltipBackgroundColor\nType: `color`  \nDefault: `\"#555555\"`  \n\nBackground color of the tooltip\n\n#### tooltipTextColor\nType: `color`  \nDefault: `\"#FFFFFF\"`  \n\nColor of the tooltip text\n\n#### tooltipTextSize\nType: `number`  \nDefault: `12`  \nUnits: `px`\n\nText size in the tooltip\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: `400`  \nUnits: `px`\n\nWidth of the widget\n\n## Data Definition\n\n\n#### label\nType: `string`\n\nDefault validate:  \n```js\nfunction (d) {\n\t\t            return this.accessor(d) !== undefined;\n\t\t          }\n```\n\nDefault accessor:  \n```js\nfunction (line) {\n\t\t            return line[0] === undefined ? undefined : String(line[0]);\n\t\t          }\n```\n\n#### value\nType: `number`\n\nDefault validate:  \n```js\nfunction (d) {\n\t\t            return !isNaN(this.accessor(d)) && this.accessor(d) >= 0 && this.accessor(d);\n\t\t          }\n```\n\nDefault accessor:  \n```js\nfunction (line) {\n\t\t            return Number(line[1]);\n\t\t          }\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//Setup some fake data\nvar data = [\n  [\"North\", 5],\n  [\"South\", 7],\n  [\"East\", 12],\n  [\"West\", 3]\n];\n\n//Initialze the widget\nvar chartGroup = d3.select(\"#vis\")\n  .append(\"svg\")\n  .attr({\n    height: '500px',\n    width: '500px'\n  })\n  .append(\"g\")\n  .attr({\n    'transform': 'translate(65, 125)'\n  })\nvar chart = new PieWithLegend(chartGroup)\n  .c({\n    width: 250,\n    height: 250\n  });\n\n//Render the chart with data\nchart._notifier.showMessage(true);\nchart.draw(data);\n\n```\n\n","readmeFilename":"README.md"}