{"_id":"@domoinc/range-gauge","_rev":"38-b011b6458d0130a56dfb27aa1fd48e49","name":"@domoinc/range-gauge","dist-tags":{"latest":"5.0.2"},"versions":{"5.0.0":{"name":"@domoinc/range-gauge","version":"5.0.0","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/range-gauge@5.0.0","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"017f4f06f79159847826708deb87eb62d6b0bf4f","tarball":"https://registry.npmjs.org/@domoinc/range-gauge/-/range-gauge-5.0.0.tgz","integrity":"sha512-/WNLn2BG3b1OChqYMGz2rsKZrEKYU6KezAqQfvHDmpL6vN0RtF1EkSjat+H18gn3qiZGvw3go0ZYZR/988/xJw==","signatures":[{"sig":"MEYCIQCHxRyDGBE1dGnc8s76xSZn3AAuI5s7SjZYpYut6amQ1AIhAKFzbgqc//E3uIVHEdBXRmKgHzvpdovqKiAUm/nws1sf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"017f4f06f79159847826708deb87eb62d6b0bf4f","gitHead":"d84b73a899aecb9f9450b14cc2d2cd21257e048a","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"RangeGauge - 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.2","@domoinc/base-widget":"^1.4.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/range-gauge-5.0.0.tgz_1454617321753_0.6720829182304442","host":"packages-5-east.internal.npmjs.com"}},"5.0.1":{"name":"@domoinc/range-gauge","version":"5.0.1","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/range-gauge@5.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":"38af781106067e6077261782889c4df1e3c0bf41","tarball":"https://registry.npmjs.org/@domoinc/range-gauge/-/range-gauge-5.0.1.tgz","integrity":"sha512-84FRVBo8TxwXFzg2ES9WOzilrbRqRnsY/HKMJPTfQg7gcki2hlu6+vOs+AF52swZ216JFtel+LTZFXUwF1PDUw==","signatures":[{"sig":"MEYCIQDh7+l2M7VltjgzilajuF/48q2APWyFV2bnLDPOD/L8WgIhAKc3sRB0sneqiGHS5BHUyjaMKYC2fe2+qQIqolbcyBou","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"38af781106067e6077261782889c4df1e3c0bf41","gitHead":"abfceca6797e2e390ca8fd9aec2dc386cb5ebcf0","scripts":{},"_npmUser":{"name":"excrispy","email":"excrispy@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.2","description":"RangeGauge - 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.2","@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/range-gauge-5.0.1.tgz_1457390824174_0.057611133903265","host":"packages-12-west.internal.npmjs.com"}},"5.0.2":{"name":"@domoinc/range-gauge","version":"5.0.2","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/range-gauge@5.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":"fdaafc720deb0b3eb9e97c9135024f6789ecb31c","tarball":"https://registry.npmjs.org/@domoinc/range-gauge/-/range-gauge-5.0.2.tgz","integrity":"sha512-BnZyC4TEV3LZZwMJ+IiZE4UQ6mxw0ozciOXf/gI3TV1XQReecUkTb8dnP7inNYw8iG3jO8qb2opBFmYFKMDNNw==","signatures":[{"sig":"MEQCIFUTgJZq2dg3UOuvzsOWVieqVvBqdo3WEOTD3jTn9xUzAiAq1ADwgoVSPiGvzaPov+P+hjwgh057Eiy+LAPhOFMraA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxJvCRA9TVsSAnZWagAAR3oP/2LzwRUxEM4xu0mdkQQ6\nyUMtm29oDEWOn9D9InSw0eYWgas0KADxAd24MdRySn2RKjNlDQ5VUKU6w5pb\nPKmTn+aIixRrju9I1ZS+4Rh0LF3bx2iwRdCYHCUNmjRcYPNvMNcJf4SHMB8w\nGWhOeSBlwcv0ajw1yPOMxbPOR0DrluWUGnhk9LIiNdD9c0xu2AmPJjLVfSd/\nDpCoVgi556K/zCW83xgQwr21ppIode5COHFs15Mx43mqvLH0iVfTHkp9EsbS\nau31dd9MqZWtMC7TVt/tC9DBlbtcV6GmB+OEok5DrBcVWPqjtErI+kPnO9Cf\nj3sBmGu0LJRt8JNhTYAyn/TM8DrIv2BIBLXWvHfs79dtlxRaYd7a/zLnH8Q5\nM2QGLPH7QMEOlzXuJlb0GT27xv5TNhlM522V27ErkaeITUxLX+pFezhZD53M\nOtGx2fzlehfVaLR+CtDCbU3BZvWlnWVDqKYdYuZatlFt2rIRDC6l2HMJZrF2\nvTHVZ3e4gQgjcQgau+9eBSr0p22ZjXIAFzwTF7MGthLZ6xn8aVXZACewm7GS\nlIImZcdmn1Tsh/IvfHJr1/FAfrUWUKcCSgSYdHHoRVD+//abuC7vS6WI2xiM\niD21yJMSNnmfPq/8b886wjNkccTbp67p5Y6iIn9okzbaCoQqoyDVe8B4+Miv\nqljy\r\n=N2Bx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"fdaafc720deb0b3eb9e97c9135024f6789ecb31c","gitHead":"35c62344371aa21b0cb43bca1032fcbbbd87ccd0","scripts":{},"_npmUser":{"name":"excrispy","email":"excrispy@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.2","description":"RangeGauge - 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.2","@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/range-gauge-5.0.2.tgz_1475187989443_0.06006350554525852","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2016-02-04T20:22:03.239Z","modified":"2026-02-27T17:28:47.001Z","5.0.0":"2016-02-04T20:22:03.239Z","5.0.1":"2016-03-07T22:47:06.217Z","5.0.2":"2016-09-29T22:26:31.729Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","keywords":["domo","app"],"repository":{"type":"git"},"description":"RangeGauge - 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":"# RangeGauge\n\nA gauge displaying a range, an average and a current value\n\n\n\n## Configuration Options\n\n\n#### caretWidth\nType: `number`  \nDefault: `8`  \nUnits: `px`\n\nundefined\n\n#### chartName\nType: `string`  \nDefault: `\"RangeGauge\"`  \n\nName of chart for reporting\n\n#### currentIndicatorFontSize\nType: `number`  \nDefault: `14`  \nUnits: `px`\n\nFont size for the value\n\n#### currentIndicatorPostfix\nType: `string`  \nDefault: `\"\"`  \n\nText added after the value\n\n#### currentIndicatorPrefix\nType: `string`  \nDefault: `\"\"`  \n\nText added before the value\n\n#### currentIndicatorTransitionDuration\nType: `number`  \nDefault: `500`  \n\nTransition time of the current indicator (in ms)\n\n#### generalFillBadColor\nType: `color`  \nDefault: `\"#E4584F\"`  \n\nThe range will start at this color\n\n#### generalFillGoodColor\nType: `color`  \nDefault: `\"#80C25D\"`  \n\nThe range will transition to this color from the middle to the end\n\n#### generalFillNeutralColor\nType: `color`  \nDefault: `\"#E5E5E5\"`  \n\nThe range will transition to this color from the start to the middle\n\n#### height\nType: `number`  \nDefault: `12`  \nUnits: `px`\n\nHeight of the bar\n\n#### isOnMobile\nType: `boolean`  \nDefault: `false`  \n\nIf true, it signals to the widget that it is running on a mobile device. Should be called before draw and then NEVER changed.\n\n#### markerFontSize\nType: `number`  \nDefault: `12`  \nUnits: `px`\n\nFont size for the indicator\n\n#### markerTextPrefix\nType: `string`  \nDefault: `\"AVG \"`  \n\nText added before the indicator\n\n#### markerTextSuffix\nType: `string`  \nDefault: `\"\"`  \n\nText added after the indicator\n\n#### minMaxFontSize\nType: `number`  \nDefault: `12`  \nUnits: `px`\n\nFont size for the range values\n\n#### minMaxPostfix\nType: `string`  \nDefault: `\"\"`  \n\nText added after the range values\n\n#### minMaxPrefix\nType: `string`  \nDefault: `\"\"`  \n\nText added before the range values\n\n#### shouldValidate\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off data validation\n\n#### showMarkerTextValue\nType: `select`  \nDefault: `{\"name\":\"Show\",\"value\":true}`  \n\nShow or hide the indicator value\n\n#### textColor\nType: `color`  \nDefault: `\"#333\"`  \n\nText color of all labels and values\n\n#### textFontFamily\nType: `string`  \nDefault: `\"Open Sans\"`  \n\n\n\n#### updateSizeableConfigs\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off the mimic of illustrator's scale functionality\n\n#### width\nType: `number`  \nDefault: `400`  \nUnits: `px`\n\nWidth of the bar\n\n## Data Definition\n\n\n#### Average\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[3]); }\n```\n\n#### CurrentValue\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[0]); }\n```\n\n#### RangeMax\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[2]); }\n```\n\n#### RangeMin\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  \n//Setup some fake data\nvar data = [\n\t['5000', 0, '10000', 7500]\n];\n\nvar height = 12;\nvar width = 400;\n\n//Initialze the widget\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(50,250)')\n\t.chart('RangeGauge')\n\t.c({\n\t\t'width': width,\n\t\t'height': height,\n\t});\n\n//Render the chart with data\nchart._notifier.showMessage(true);\nchart.draw(data[0]);\n\n// d3.select('svg').insert('rect', ':first-child')\n//   .attr('height', 500)\n//   .attr('width', 500)\n//   .attr('stroke', 'black')\n//   .style('fill', 'white')\n//   .style('fill-opacity', 0);\n\n// setTimeout(function() {\n// \tchart.draw(['2000', 0, 10000, 6000])\n// }, 2000);\n\n```\n\n","readmeFilename":"README.md"}