{"_id":"@domoinc/comparison-bar-chart","_rev":"39-1539f678933e471a3c66a809882bda64","name":"@domoinc/comparison-bar-chart","dist-tags":{"latest":"5.2.7"},"versions":{"5.2.5":{"name":"@domoinc/comparison-bar-chart","version":"5.2.5","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/comparison-bar-chart@5.2.5","maintainers":[{"name":"aharris88","email":"aharris88@gmail.com"}],"dist":{"shasum":"68009861d61fccbd5fafa0a9d0c98db2dc760bdd","tarball":"https://registry.npmjs.org/@domoinc/comparison-bar-chart/-/comparison-bar-chart-5.2.5.tgz","integrity":"sha512-wXth8eRe+foHWJ9EHKlKe7NFzgdPxqfbOUAmWnm4MA2/MvLTcgHolcbNfGK3q5FAujnw71yn9y/BAxWjTGrS/w==","signatures":[{"sig":"MEUCIHsGJQs6KBzPSs0Y9P/Qi5WNkc1ny4xqbV6NxhIgvvseAiEAgUB/ySPBKozOMd+xKQOBW9l+nszBeFjGL0J+wCnvgeE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"68009861d61fccbd5fafa0a9d0c98db2dc760bdd","gitHead":"6ad489434900d785bafe3b7c649de77b3d14e44c","scripts":{},"_npmUser":{"name":"aharris88","email":"aharris88@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"ComparisonBarChart - 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.3","@domoinc/base-widget":"^1.4.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/comparison-bar-chart-5.2.5.tgz_1455043759440_0.7937479873653501","host":"packages-6-west.internal.npmjs.com"}},"5.2.6":{"name":"@domoinc/comparison-bar-chart","version":"5.2.6","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/comparison-bar-chart@5.2.6","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":"c0bf02a163264da30dcdb3ae5ecfffaaaa9f5b88","tarball":"https://registry.npmjs.org/@domoinc/comparison-bar-chart/-/comparison-bar-chart-5.2.6.tgz","integrity":"sha512-tcKI5g7/QsP370polWG6a1GLmOWe9z0qhsgNFoAl0d/7dgt6LRHWcjazf9OPwjA9LRC8CfTaA8hqCBTlAj+6Pg==","signatures":[{"sig":"MEUCIQDgJZian2Wk9Q2UfK0H8UZr6XBFmGJWf1vOeb25rhAungIgOYE6orcc/syUd7wWMcxT3Q7+Lnw2nRS/v3nmrbgEYHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"c0bf02a163264da30dcdb3ae5ecfffaaaa9f5b88","gitHead":"6ab939ebfb5d169e3bc6b475d6270f30c1eb05fc","scripts":{},"_npmUser":{"name":"excrispy","email":"excrispy@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.2","description":"ComparisonBarChart - Domo Widget","directories":{},"_nodeVersion":"5.2.0","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.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/comparison-bar-chart-5.2.6.tgz_1455731390611_0.4334340845234692","host":"packages-9-west.internal.npmjs.com"}},"5.2.7":{"name":"@domoinc/comparison-bar-chart","version":"5.2.7","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/comparison-bar-chart@5.2.7","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":"cdc3cd98229ba6cd7b87e92bcd9c9e078716f619","tarball":"https://registry.npmjs.org/@domoinc/comparison-bar-chart/-/comparison-bar-chart-5.2.7.tgz","integrity":"sha512-TsDUup1tEVm6vukK0XweJh8ZhFWjhl52TjfUNOekEEYxMYfItLJNGp1K+ydWSg8xBAAd7ItU1I1Ew1D25v5HEA==","signatures":[{"sig":"MEUCIEJWLhuBf9dt+atskYuA6wFPsoLcBc+IdBRqyPfQXONKAiEAyXtR6OWXIDsWkeQE0xChh4vv4WsOnZ89P4UXmVd+VJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxGHCRA9TVsSAnZWagAAAs0QAKKvP9U0MFNBYH+ZrJg9\nTYvpnDUWk6OH8nxiqhdfLV2tt+iPgCtBk+/MCNoeAuVO6Q/PCwm2iZnDVAbs\nvZtp/15L+KQ5eu0a/JhLRCD61n26T/QGhQG8LMQM+yzRXwoC4rAzYc9sja+A\nISFQh+zPYyEft6qQimDdFDY0dUVm8cH0HBRWbFnFulgvkcZfbMiEPZwBbU23\ngYvgRA9MVmOm6dHs0VmS5/7L37U845a/xi47x6R0p3QzVR0DxvfTWSZ7xn+9\n7pMDJrSy8TCZ1EkA9ou88mZt5l9hIvyd0CoPUiMMRF/mCOe9Y/WChjtZhgaW\nFGh3SDy/uIDB9s0Q4GpgklXVh8wIHqa3y8JXwFIeGQ/f4Ix27zyalhtUWS6w\n8K5vA2ervaXQK9HJNCdZ3Ch/hmSGI3j6kA8nFhTUrQYrRmmBw15fl4gw/cGo\nADg+Br4tpgjKM4TDsiGI19mGHEinrnpv6NbJo5KLV9JIGIZwLeTUzzN3Kc4s\nLD2btTP9+LYqf74UvHRWdN93R7SimyQ/nin3ys2eGAwg49tbvSM68gWQnSrh\naPDRQzzqxzAgZr8E22Hf2JOxPCIani5Oaud7xRdEbOmmLosUY/7wJ6WXzkhR\nJSh+1SuliXtmGWaQAjJYjkfie8P/IHYMu0pNuecx/e0mkKwJwgRbGjBxOlNe\nKv6j\r\n=nB5/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"cdc3cd98229ba6cd7b87e92bcd9c9e078716f619","gitHead":"b081cf690280f00419a66b6244e761f77b7caaa2","scripts":{"build":"grunt build","start":"grunt","docGen":"grunt docGen","push:major":"grunt push:major","push:minor":"grunt push:minor","push:patch":"grunt push:patch"},"_npmUser":{"name":"aharris88","email":"aharris88@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"ComparisonBarChart - Domo Widget","directories":{},"_nodeVersion":"5.4.1","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","babel-core":"^6.5.2","babel-loader":"^6.2.3","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","babel-preset-es2015":"^6.5.0","grunt-contrib-clean":"^0.7.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"^1.0.0","grunt-contrib-connect":"^0.7.1","grunt-conventional-changelog":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/comparison-bar-chart-5.2.7.tgz_1457131167201_0.2297336352057755","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-02-09T18:49:22.972Z","modified":"2026-02-27T17:24:00.072Z","5.2.5":"2016-02-09T18:49:22.972Z","5.2.6":"2016-02-17T17:49:55.431Z","5.2.7":"2016-03-04T22:39:30.645Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","keywords":["domo","app"],"repository":{"type":"git"},"description":"ComparisonBarChart - 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":"# ComparisonBarChart\n\nBar chart that compares two labeled values\n\n\n\n## Configuration Options\n\n\n#### barHeight\nType: `number`  \nDefault: `30`  \nUnits: `px`\n\nHeight of the comparison bar.\n\n#### chartName\nType: `string`  \nDefault: `\"ComparisonBarChart\"`  \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#### generalWashoutColor\nType: `color`  \nDefault: `\"#E4E5E5\"`  \n\nColor used to indicate elements that are not being highlighted\n\n#### height\nType: `number`  \nDefault: `100`  \n\nHeight of the chart.\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#### labelColor\nType: `color`  \nDefault: `\"#888888\"`  \n\nColor for chart labels\n\n#### labelSize\nType: `number`  \nDefault: `12`  \n\nFont size of labels.\n\n#### shouldValidate\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off data validation\n\n#### showAnimations\nType: `boolean`  \nDefault: `true`  \n\nWhether or not to show animations\n\n#### textFontFamily\nType: `string`  \nDefault: `\"Open Sans\"`  \n\n\n\n#### textLabel\nType: `function`  \nDefault: `\"function (d, i) {\\n\\t          return _Chart.a('Label')(d) + ' ' + summaryNumber.summaryNumber(_Chart.a('Value')(d));\\n\\t        }\"`  \n\nThe function used for the text labels\n\n#### title\nType: `string`  \nDefault: `\"Tweets\"`  \n\nTitle on the top of the chart.\n\n#### titleColor\nType: `color`  \nDefault: `\"#333\"`  \n\nColor for the title text.\n\n#### titleSize\nType: `number`  \nDefault: `24`  \n\nFont size of the title.\n\n#### titleWeight\nType: `number`  \nDefault: `700`  \n\nFont weight for the title text.\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: `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 && this.accessor(d); }\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)) && this.accessor(d) >= 0 && 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\ndispatch:mouseenter  \ndispatch:mouseleave  \n#### External Events\n\nexternal:mouseover  \nexternal:mouseout  \n\n## Example\n\n```js  \n//Setup some fake data\nvar data = [\n  ['@BobBarker', 600000],\n  ['@AdamWilder', 100000]\n];\n\nvar aHeight = 500;\nvar aWidth = 500;\n\n//Initialze the widget\nvar chart = d3.select('#vis')\n  .append('svg')\n  .attr({\n    height: aHeight,\n    width: aWidth\n  })\n  .append('g')\n  // .attr('transform', 'translate(40,150)')\n  .attr('transform', 'translate(0,20)')\n  .chart('ComparisonBarChart')\n  .c('width', 400)\n  .c('barHeight', 50)\n  .c('title', 'Tweets')\n  .c('labelSize', 10)\n  .c('titleSize', 24)\n  .c({\n    'width': 400,\n    'title': 'Tweets'\n  });\n\n//Render the chart with data\nchart._notifier.showMessage(false);\nchart.draw(data);\n\n```\n\n","readmeFilename":"README.md"}