{"_id":"@domoinc/gauge","_rev":"38-38bf073320009326dffb7f2835701d1f","name":"@domoinc/gauge","dist-tags":{"latest":"3.1.2"},"versions":{"3.1.0":{"name":"@domoinc/gauge","version":"3.1.0","keywords":["domo","app"],"author":{"name":"Domo Apps Team"},"license":"MIT","_id":"@domoinc/gauge@3.1.0","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"b0fcb3e1c18d7589bab3027c54cdc833bcd1aa36","tarball":"https://registry.npmjs.org/@domoinc/gauge/-/gauge-3.1.0.tgz","integrity":"sha512-mnzmwWHkLZQBBPsLQLBz6P5hGEk3ehBnljMDyi/4ayFUi6rxsfkzuK0LOXRxZFIZ47ATUeM7Hm/NduoFXtESCw==","signatures":[{"sig":"MEYCIQDzZB6uMvM2g0rynVXHTJ5KreiIsVmb+muumTcpI7N13QIhAK11ccygZ3YKiegdrgPHYSlg6DELcThrGvN/AeGBQhaN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"b0fcb3e1c18d7589bab3027c54cdc833bcd1aa36","gitHead":"2f235b50357f33039855c67f940975483f9789b5","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":"Gauge - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/da-theme":"^4.2.0","@domoinc/utilities":"^4.1.0","@domoinc/basewidget":"^1.2.1","@domoinc/summary-number":"^0.1.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"}},"3.1.1":{"name":"@domoinc/gauge","version":"3.1.1","author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/gauge@3.1.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":"d13ff4cddab74c966d932c9d12cb23d56fab9a26","tarball":"https://registry.npmjs.org/@domoinc/gauge/-/gauge-3.1.1.tgz","integrity":"sha512-E+8QjfqYdcsFoV3HLeGpFMlFVUh+Agx5Lb7QPVrTon4f8rsPsYDUQtXGd1Z7cC7f4uStoIVQcTIFcsFkAz/zoQ==","signatures":[{"sig":"MEQCICkxpqjqqlLqu8XtMi2U3mKqNR/S4fA/etTpOqsvNuHQAiB6XXG08+afDPPGEzguFQhtNdgE3O0m9X+41VRvbGZaSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"d13ff4cddab74c966d932c9d12cb23d56fab9a26","gitHead":"11022c9d66d7efc2c560d9ad9e0d46a0107a227c","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"Gauge - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/da-theme":"^4.2.1","@domoinc/utilities":"^4.2.1","@domoinc/basewidget":"^1.2.2","@domoinc/summary-number":"^0.1.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.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/gauge-3.1.1.tgz_1454388822835_0.6228446615859866","host":"packages-8-eu.internal.npmjs.com"}},"3.1.2":{"name":"@domoinc/gauge","version":"3.1.2","author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/gauge@3.1.2","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":"3cdafc38ed20ef1b1d0563a5d25ed3c59a4f7943","tarball":"https://registry.npmjs.org/@domoinc/gauge/-/gauge-3.1.2.tgz","integrity":"sha512-bSpsEGhEnOPar/5vTtWZCSLWOVK3l9WGvUSMy3xvCLi9g2uQSEOghQ38X73tztT90Rjc09KXZ+QuHAeJ+G/JTQ==","signatures":[{"sig":"MEUCIBYdy4sC2FaFuMUGL13H3yPFHtjRNRmn1JpTO5bo2qtjAiEAgj3sQGqNP3ZS4pQUckmfv8kDIV694tBBHo1twvqPplk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxHxCRA9TVsSAnZWagAAovYQAIAnXm7nLAz78UozVy96\nq1q9WdISs8Wb7gPYGTfb9W0Z5XFN2HAh0kytjebpLBQ6dZ/ma14uIQ6R8SMY\nxiCIYZixg7w49oE922L/jIcVCpkOd4uf3T2SdZzDoQSO7A+5/BsCEwVU4l5E\ncYNMmAsX6HgTmTEWnbzBYr7+S5/faRCnH2D5sUpQUoAIwdmebKrneLz4TNbZ\nMYVhTBLwFVt+FFOkYP7oWxn2Txy6VZKJ7QavToSTVLwP7I01gXRMjE4iDyjS\nlSNKdZ9WpOBDC4rePNlccW4zXbCUiuKCLDrjp47g7OKEhg8mPsF1jp3EyTDF\nh5EyrAks/PAuheuDY1A293ajw0In1Rdu9Gn5aFv30wg7xWI/R1i4gDceQ7hy\nCQ1RPHenZcWrDux5x2KOp9Va1OouVSEVV/+wXYVMIpxp4YX2iSVKnxVtsz3k\nfPMHoU3wjWzWcF+wSWu3cdcGQkFQnSt0sFpE83/xoa6BHrf34sbtXjJMTu7P\n6qz7JLlhFGWTYePn36k6YrxNfIy5P3VpnputC3IYoT0U1R60hgF0LdBsPhUt\nyXHB1V0bX0J3kLA4P5iz5374gGv8ee5qWbTqjw/CumPb/hroUvEkBOrKkXDq\ntNLY1a+cwdj5bj8MJ+UlUBdpDs/sZgZjFVQ0DYMfdSM0AC2/2MMXCUGljCI+\nR9+H\r\n=och8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"3cdafc38ed20ef1b1d0563a5d25ed3c59a4f7943","gitHead":"e9d87a55caeaf7fdd95d6733394ef229ab6e83e3","scripts":{},"_npmUser":{"name":"aharris88","email":"aharris88@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"Gauge - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.15","d3.chart":"^0.3.0","@domoinc/da-theme2":"^2.3.1","@domoinc/utilities":"^4.2.3","@domoinc/base-widget":"^1.5.2","@domoinc/summary-number":"^0.1.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/gauge-3.1.2.tgz_1455905477176_0.8134908855427057","host":"packages-9-west.internal.npmjs.com"}}},"time":{"created":"2016-01-29T22:28:58.935Z","modified":"2026-02-27T17:24:16.855Z","3.1.0":"2016-01-29T22:28:58.935Z","3.1.1":"2016-02-02T04:53:45.929Z","3.1.2":"2016-02-19T18:11:19.658Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git"},"description":"Gauge - 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":"# Gauge\n\nA radial filled gauge widget.\n\n\n\n## Configuration Options\n\n\n#### biggerIsBetter\nType: `boolean`  \nDefault: `true`  \n\nTrue if it is better for actual value to be larger than your target value\n\n#### chartName\nType: `string`  \nDefault: `\"Gauge\"`  \n\nA gauge for displaying min, max, target, and actual\n\n#### gaugeFillPrimaryColor\nType: `color`  \nDefault: `\"#73B0D7\"`  \n\nColor of the fill for the gauge\n\n#### gaugeNotFilledColor\nType: `color`  \nDefault: `\"#E4E5E5\"`  \n\nColor used to indicate the gauge is not filled\n\n#### generalFillBadColor\nType: `color`  \nDefault: `\"#E4584F\"`  \n\nColor of the goal arrow when the target is not reached\n\n#### generalFillGoodColor\nType: `color`  \nDefault: `\"#80C25D\"`  \n\nColor of the goal arrow when the target is reached\n\n#### height\nType: `number`  \nDefault: `250`  \nUnits: `px`\n\n\n\n#### innerRadius\nType: `number`  \nDefault: `170`  \n\nInner radius of the gauge\n\n#### label\nType: `string`  \nDefault: `\"Sales\"`  \n\nLabel for the center of the gauge\n\n#### max\nType: `number`  \nDefault: `100`  \n\nMaximum value of the gauge\n\n#### min\nType: `number`  \nDefault: `0`  \n\nMinimum value of the gauge\n\n#### minMaxSize\nType: `number`  \nDefault: `20`  \nUnits: `px`\n\nFont size of the min and max range labels\n\n#### outerRadius\nType: `number`  \nDefault: `235`  \n\nOuter radius of the gauge\n\n#### rangeLabelColor\nType: `color`  \nDefault: `\"#888888\"`  \n\nText color of the gauge labels for the min and max values\n\n#### shouldValidate\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off data validation\n\n#### target\nType: `number`  \nDefault: `75`  \n\nTarget value of the gauge\n\n#### targetLabelSize\nType: `number`  \nDefault: `14`  \nUnits: `px`\n\nFont size of the target label\n\n#### targetTextColor\nType: `color`  \nDefault: `\"#333\"`  \n\nText color of the target label and target value\n\n#### targetTextLabel\nType: `string`  \nDefault: `\"Target\"`  \n\nLabel for the target\n\n#### targetValueSize\nType: `number`  \nDefault: `20`  \nUnits: `px`\n\nFont size of the target value\n\n#### textFontFamily\nType: `string`  \nDefault: `\"Open Sans\"`  \n\nFont of all the labels and numbers\n\n#### updateSizeableConfigs\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off the mimic of illustrator's scale functionality\n\n#### valueLabelColor\nType: `color`  \nDefault: `\"#73B0D7\"`  \n\nColor of the gauge value text and its corresponding label\n\n#### valueLabelSize\nType: `number`  \nDefault: `14`  \nUnits: `px`\n\nFont size of the value label\n\n#### valueSize\nType: `number`  \nDefault: `48`  \nUnits: `px`\n\nFont size of the value\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) { return this.accessor(d) !== 'undefined'; }\n```\n\nDefault accessor:  \n```js\nfunction (line) { return String(line[0]); }\n```\n\n#### value\nType: `number`\n\nDefault validate:  \n```js\nfunction (d) { return !isNaN(this.accessor(d)) ; }\n```\n\nDefault accessor:  \n```js\nfunction (line) { return Number(line[1]); }\n```\n\n## Events\n\n\n#### Dispatch Events\n\n#### External Events\n\n\n## Example\n\n```js  \nvar data = [\n  ['label', 80]\n];\n\nvar aHeight = 400;\nvar aWidth = 400;\n\n\nvar chart = d3.select(\"#vis\")\n  .append(\"svg\")\n  .attr('height', 500)\n  .attr('width', 500)\n  .append(\"g\").attr(\"transform\", \"translate(\" + 50 + \",\" + 60 + \")\")\n  .chart(\"Gauge\")\n  .config({\n\t'height': aHeight,\n\t'width' : aWidth,\n  });\n\nchart._notifier.showMessage(true);\nchart.draw(data);\n\nsetTimeout(function(){\n chart.config({\n   'max': 200,\n   \"target\": 175,\n   //biggerIsBetter: false,\n });\n\n chart.draw([\n   ['label', 67]\n ]);\n}, 3000);\n\n\nsetTimeout(function(){\n chart\n   .c({\n     height: 400,\n     width: 400,\n   })\n   .draw(data);\n\n}, 6000);\n\n```\n\n","readmeFilename":"README.md"}