{"_id":"@domoinc/needle-gauge","_rev":"39-4e5d59f7a0c5e9b5fe85ab33f9b56c36","name":"@domoinc/needle-gauge","dist-tags":{"latest":"6.1.1"},"versions":{"6.0.2":{"name":"@domoinc/needle-gauge","version":"6.0.2","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/needle-gauge@6.0.2","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"d99211e464511eeaf1047903d405799a71385c7d","tarball":"https://registry.npmjs.org/@domoinc/needle-gauge/-/needle-gauge-6.0.2.tgz","integrity":"sha512-+5FDxY74TeGnN0z6F0YFZu/Kx7w4KaJKldOiiHEAavUVMTl17GhPBCUcuBV3UwMb1k01rgKUxa7t3VhFttyzKg==","signatures":[{"sig":"MEUCIQDyxoPFQ+Xl4jdA3LN9w6YwEAQWO3YhXXKB20TzTGUvQAIgeJqM6Ut47Z2ugqljQcZ3Z75319+QXC3DF8WrubIX9QQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"d99211e464511eeaf1047903d405799a71385c7d","gitHead":"215e571e9d8b413b9169e9e2105ca296554745e1","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"NeedleGauge - Domo Widget","directories":{},"_nodeVersion":"5.4.1","dependencies":{"d3":"^3.5.14","d3.chart":"^0.3.0","@domoinc/i18n":"^2.1.1","@domoinc/da-theme":"^4.2.1","@domoinc/utilities":"^4.2.1","@domoinc/basewidget":"^1.2.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/needle-gauge-6.0.2.tgz_1454393551087_0.07229618704877794","host":"packages-5-east.internal.npmjs.com"}},"6.0.3":{"name":"@domoinc/needle-gauge","version":"6.0.3","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/needle-gauge@6.0.3","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":"c43aac669f7ad92aea0e7fddc4c8a952dde158ce","tarball":"https://registry.npmjs.org/@domoinc/needle-gauge/-/needle-gauge-6.0.3.tgz","integrity":"sha512-uXSqcBXGfv85SysiE/ec0XLVDgiilir/bcSckd2P0QE9vJyimQieXMJLtC9ELQkLTgcq7UBDhGyGXHgk9vmnnQ==","signatures":[{"sig":"MEUCIG3BucTAiPnRHNWgai10vuv2VfzSVLRsa8zuuIQmLbeYAiEA9I4k7R4frHI0U4r26Fb9jyL5fIG/NrrACYrD/cvyTOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"c43aac669f7ad92aea0e7fddc4c8a952dde158ce","gitHead":"cf8db4d8229a714d2007486286b007b1fb3c37cb","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.6.0","description":"NeedleGauge - Domo Widget","directories":{},"_nodeVersion":"5.6.0","dependencies":{"d3":"^3.5.15","d3.chart":"^0.3.0","@domoinc/i18n":"^2.1.1","@domoinc/da-theme":"^4.2.1","@domoinc/utilities":"^4.2.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.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/needle-gauge-6.0.3.tgz_1455657569887_0.45367462770082057","host":"packages-9-west.internal.npmjs.com"}},"6.1.0":{"name":"@domoinc/needle-gauge","version":"6.1.0","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/needle-gauge@6.1.0","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":"191c598d2f68dca4db51dde58687e7856dcfca74","tarball":"https://registry.npmjs.org/@domoinc/needle-gauge/-/needle-gauge-6.1.0.tgz","integrity":"sha512-NnHLhvqzehmgMm6RQlBTn/D8K6FmU7QJx43noHWiPdeFEKF5k0sKox9N+gq6f2kEkde7rXzjYk6+UHpHjP8ktQ==","signatures":[{"sig":"MEQCICqDQlHmCgj7aUNMGwU4DdbdHDVTRts9cbcnB2C1xZH2AiA1RFdo9NvH36P9133Nx8+fZRJnktU7wLiQCEINHURpmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"191c598d2f68dca4db51dde58687e7856dcfca74","gitHead":"18e0944c777e79d157a51b92f8f34e46a8658d35","scripts":{},"_npmUser":{"name":"excrispy","email":"excrispy@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.2","description":"NeedleGauge - Domo Widget","directories":{},"_nodeVersion":"5.2.0","dependencies":{"d3":"^3.5.16","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.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/needle-gauge-6.1.0.tgz_1457386758542_0.21272547193802893","host":"packages-12-west.internal.npmjs.com"}},"6.1.1":{"name":"@domoinc/needle-gauge","version":"6.1.1","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/needle-gauge@6.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":"25fdbab3d047c88f2de4c59428738776426ecb07","tarball":"https://registry.npmjs.org/@domoinc/needle-gauge/-/needle-gauge-6.1.1.tgz","integrity":"sha512-EeqERuLPb36aIvO22vSnb5QQLxilBgaT0ICzDz6RcLwmOFaOKY4A5qMk627sjQvrI1V/f+w05+mkfyx4zXOzRQ==","signatures":[{"sig":"MEUCIDBaQZ29BY9NqFbK8VHRAF0NFgnqMnMsK9iXXVaQTcHaAiEAscGswfGgsoK4hRLS5FL5htH6+TMba6J+mqJHbGyyzyE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxJCCRA9TVsSAnZWagAAzkcP/32l2chjejRvO+IL37a3\n+YBh4C3aEIclpkUqv4bHhdvq94GJFcHllOWlXLATIN/YmMfTFrWfNB6WTkIi\ndfz3fXl39XK2scNA2zYQCJ9jdMdgYJ4s0TdI8PZImhYTLybZvGR78sRFmblu\nF7/XnsqYIjNssQ9cCo6BO10ZtA0V4BTrgPik7708D4epRIqlBxi/H1SoEB+6\nj96WczRObFEBx9PdfzgfT49JPuDSjnH87wvYvJWeSWUXaI/ejDTINTSjxo/M\nA4TX8nIQL7rwY/QzOfa46BTZO/CkNqynXsjI4tyXqJLqpdAhdBGtR6cfKfoi\nrA0Krtvm4miUndgYRfPV4veMYDssOz+jpNfT+PqHg8OMsJ4mRJyOrsTzfDwX\nJohDgwUKIoRvOLRl3Ved/NtSexCt7nXOBWNRli7es6+BzEpiVnsvqXaXFv+1\nfUJcQyxjINVhfuX3x1HE4WAQot1aNjjW5pDPpKirNPP4E5FmvA9REovjgRZ4\n2HhOxkBC2gfKgyJgCcUROzRhFBJ1MDhuIdFoXfv6VT31a4LomPe1xqU3KvRk\nyOXB0Wz3fe8+hDoC5xAbhfkVn9zwqThJPfPfeT9Icsjr00DTYlt5AcZIJg/L\nEnVB1YeP9U63X5AxbNcs5rhHEXDXMSUb+drElX3dCvoQMipn/PIxRo3Uwcfa\nbfZE\r\n=ty3y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"25fdbab3d047c88f2de4c59428738776426ecb07","gitHead":"a9b5afd54bcdcbbadf9f79e612c2abb44f39adfb","scripts":{},"_npmUser":{"name":"jaxry","email":"cabot696@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"NeedleGauge - Domo Widget","directories":{},"_nodeVersion":"5.1.0","dependencies":{"d3":"^3.5.16","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.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/needle-gauge-6.1.1.tgz_1460566253751_0.003420941298827529","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2016-02-02T06:12:33.587Z","modified":"2026-02-27T17:28:35.745Z","6.0.2":"2016-02-02T06:12:33.587Z","6.0.3":"2016-02-16T21:19:34.096Z","6.1.0":"2016-03-07T21:39:20.483Z","6.1.1":"2016-04-13T16:50:55.458Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","keywords":["domo","app"],"repository":{"type":"git"},"description":"NeedleGauge - 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":"# NeedleGauge\n\nA gauge that shows a value within ranges.\n\n\n\n## Configuration Options\n\n\n#### animationDuration\nType: `number`  \nDefault: `2000`  \nUnits: `milliseconds`\n\nDuration of the needle animation in milliseconds\n\n#### chartLabelColor\nType: `color`  \nDefault: `\"#888888\"`  \n\nColor for the minimum and maximum labels\n\n#### chartName\nType: `string`  \nDefault: `\"NeedleGauge\"`  \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#### gaugeFillPrimaryColor\nType: `color`  \nDefault: `\"#73B0D7\"`  \n\nColor for the value text and labels' color\n\n#### gaugeStrokeWidth\nType: `number`  \nDefault: `1`  \nUnits: `px`\n\nStroke width of the arcs\n\n#### gaugeWidth\nType: `number`  \nDefault: `63`  \nUnits: `px`\n\nWidth of the arcs\n\n#### generalSeparatorColor\nType: `color`  \nDefault: `\"#FFFFFF\"`  \n\nStroke color of the arcs\n\n#### height\nType: `number`  \nDefault: `250`  \nUnits: `px`\n\n\n\n#### label\nType: `string`  \nDefault: `\"Sales\"`  \n\nLabel for the gauge\n\n#### labelTextSize\nType: `number`  \nDefault: `22.5`  \nUnits: `px`\n\nText size for all labels\n\n#### needleColor\nType: `color`  \nDefault: `\"#333\"`  \n\nColor of the needle\n\n#### needleWidth\nType: `number`  \nDefault: `36`  \nUnits: `px`\n\nWidth of the needle indicator at the base\n\n#### outerRadius\nType: `number`  \nDefault: `225`  \nUnits: `px`\n\nRadius of the outside of the gauge.\n\n#### ranges\nType: `array`  \nDefault: `[[75,100],[25,50],[0,25],[50,75]]`  \n\nRange of the minimum and maximum values for the gauge\n\n#### shouldValidate\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off data validation\n\n#### textFontFamily\nType: `string`  \nDefault: `\"Open Sans\"`  \n\nFont family of all labels and values\n\n#### updateSizeableConfigs\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off the mimic of illustrator's scale functionality\n\n#### valueTextSize\nType: `number`  \nDefault: `45`  \nUnits: `px`\n\nText size for 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 line[0] === undefined ? undefined : 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 parseFloat(line[1]);\n\t        }\n```\n\n## Events\n\n\n#### Dispatch Events\n\n#### External Events\n\n\n## Example\n\n```js  \n//Setup some fake data\nvar data = [\n  ['Sales', 77]\n];\n\nvar aHeight = 500;\nvar aWidth = 500;\n//Initialze the widget\nvar chart = d3.select('#vis')\n  .append('svg')\n  .attr('width', aWidth)\n  .attr('height', aHeight)\n  .append('g')\n  .chart('NeedleGauge')\n  .c('label', 'Sales')\n  .c('height', aHeight)\n  .c('width', aWidth)\n  .c('ranges', [\n    [125, 150],\n    [100, 125],\n    [75, 100],\n    [50, 75],\n    [25, 50],\n    [0, 25]\n  ]);\n\n//Render the chart with data\nchart._notifier.showMessage(true);\nchart.draw(data);\n```\n\n","readmeFilename":"README.md"}