{"_id":"@domoinc/us-cartogram","_rev":"36-f8c2aef4887ae91e7ead1e3d5b188f68","name":"@domoinc/us-cartogram","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@domoinc/us-cartogram","version":"1.0.1","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/us-cartogram@1.0.1","maintainers":[{"name":"jmstewart","email":"james.stewart42@gmail.com"}],"dist":{"shasum":"9c4de2354446a734a0f83dbc8524354f5c9785cb","tarball":"https://registry.npmjs.org/@domoinc/us-cartogram/-/us-cartogram-1.0.1.tgz","integrity":"sha512-TloKqZiJ3N7iNUoza0mJpegVzQ/HNJnGuXAdXuNgQo/JCB6i6+EFg5/y+1vaIxDA4vRb7x9i4W6m0HPZMOQvLA==","signatures":[{"sig":"MEYCIQCx7PQDT9s5CeCdOCV+3E8ylEhM/WyRPUbICODZYkvTnAIhAP0ZupI5lHzSoW+5RCKIabCpVpb/XMyKA1epU4h2+nZq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"9c4de2354446a734a0f83dbc8524354f5c9785cb","gitHead":"8ca1023797244e48bb7f3b2fa41d8acf0c237c85","scripts":{},"_npmUser":{"name":"jmstewart","email":"james.stewart42@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.6.0","description":"USCartogram - Domo Widget","directories":{},"_nodeVersion":"5.6.0","dependencies":{"d3":"^3.5.16","d3.chart":"^0.3.0","topojson":"^1.6.24","@domoinc/legend":"^6.0.4","@domoinc/da-theme2":"^2.3.1","@domoinc/base-widget":"^1.5.2","@domoinc/domo-tooltip":"^5.1.10","@domoinc/radius-legend":"^1.0.2","@domoinc/us-data-no-great-lakes":"^1.0.0","@domoinc/us-state-abbrev-to-state-name-map":"^1.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.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/us-cartogram-1.0.1.tgz_1457386182647_0.5721813510172069","host":"packages-13-west.internal.npmjs.com"}},"1.0.2":{"name":"@domoinc/us-cartogram","version":"1.0.2","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/us-cartogram@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":"lcwright21","email":"lance.wright@hotmail.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"},{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"}],"dist":{"shasum":"cf1616fe5f0a5e4a4e547478657fe7e13b2fee0b","tarball":"https://registry.npmjs.org/@domoinc/us-cartogram/-/us-cartogram-1.0.2.tgz","integrity":"sha512-0CGwuyFWJpU21ws5B10HnQVK8cQVbsJDucin9HG/8I9wJ8FWgEDl9+GfbReLwmR9QeTuCOPObZOyW/jKJxbbNg==","signatures":[{"sig":"MEQCIAxsv6hCQ3zqi/SnpyFP4+Fo01Udj0M/L4mRGiIqrq4TAiBy/DLYLa3cNR0ro+tK0Fozl4FOjy5JnLnOReft/Ga5wg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundle.js","_from":".","_shasum":"cf1616fe5f0a5e4a4e547478657fe7e13b2fee0b","gitHead":"ef8c0c37dad2bd1977e73d980f91d10d4eb077c1","scripts":{},"_npmUser":{"name":"excrispy","email":"excrispy@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.7.2","description":"USCartogram - Domo Widget","directories":{},"_nodeVersion":"5.2.0","dependencies":{"d3":"^3.5.16","d3.chart":"^0.3.0","topojson":"^1.6.24","@domoinc/legend":"^6.0.11","@domoinc/da-theme2":"^2.3.1","@domoinc/base-widget":"^1.5.2","@domoinc/domo-tooltip":"^5.1.10","@domoinc/radius-legend":"^1.0.2","@domoinc/us-data-no-great-lakes":"^1.0.0","@domoinc/us-state-abbrev-to-state-name-map":"^1.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.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/us-cartogram-1.0.2.tgz_1459286925708_0.8320767651312053","host":"packages-12-west.internal.npmjs.com"}},"1.0.3":{"name":"@domoinc/us-cartogram","version":"1.0.3","keywords":["domo","app"],"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","_id":"@domoinc/us-cartogram@1.0.3","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":"lcwright21","email":"lance.wright@hotmail.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"nicksrandall","email":"nicksrandall@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"},{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"}],"dist":{"shasum":"93fb775242e6ba3a2cb45de69d041f21ac414dca","tarball":"https://registry.npmjs.org/@domoinc/us-cartogram/-/us-cartogram-1.0.3.tgz","integrity":"sha512-52AeLV6xoqtX3A43hmiq8P7Or/r4LZ5XXnNgSrukvH0yMD/BwedeR92NIZFm3xvymUilA/Cfsm9ySpjLWWyQMA==","signatures":[{"sig":"MEYCIQDNHt/+Ir7cq0UWKZoFXcd6v3ec2y6vDLXtLlUw58f7QwIhAKVfec6wh7/9fIHUHtNWRkeY1aKpStsC8mIAHL9MI43m","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzxKlCRA9TVsSAnZWagAAySEP/AoJwd7whDQqHArfV3EM\n6TbwXsSgeE2Z2nuRCe6Qia3/k039BqANs3D6YuSqTECk8KyVisqNMQnOb115\njZUN6MffNAEHGtcnoxmQJAkVeJgCUiV9m6TPDXRD51gSSL9XoHwYgo283b49\na9eNXRgL1bsWFZguxCDoQnGEPlef7raaWS7E4Br8EOqtxOcaNJvOvchFZmc2\nlQ7TvuLXIustLaKkr8LrOYwlQ2AI1/PPqkna1PY60I0CBv+ZK6MOoOfFR+Zk\nErqne+HoCnqcRjIf3VWo3tJ+JQXsW28DJMWPXf60NFHpoIq1vLiJRjUHtqvF\nVJVUbYY52rubCP/NKI/9wYboM+pSsBLQR/FeQ/xbdsWdJoXhA/Fn+PsSDms5\nEvQ1GlfH01icovpLMgt9AEJ2j+AmBYbmlCxgVn3JwI1dllD1EU6ZUkhC1r+Y\nYCe1xHSIiNyrlH4JxxKShCjmPGbdSUX77O3x/yTzGVKUT0/T9GemXkwfB+C4\nkUrJh1c6vaTTLQc/SJHeutPBkhCDSBcje1pnqfHeZX9OlsvxlU8KNxANrflZ\nsodjC/XV/IySTpR7AEfA5h4tM5UkmbwjZW3R2FwcmZEmNA6+YJiJgrdqC6je\npdg0jyQOkJgUa4WsbW/JAG0DV+ZBWlEpW3ecACyefgyoENAs/J+8INFTsSzB\ntgD2\r\n=GQwY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bundle.js","_from":".","_shasum":"93fb775242e6ba3a2cb45de69d041f21ac414dca","gitHead":"1221581a5b5103b5824e76007f9b5fca982c6bfc","scripts":{},"_npmUser":{"name":"jonathan-law","email":"jonathan.q.law@gmail.com"},"repository":{"type":"git"},"_npmVersion":"3.3.12","description":"USCartogram - Domo Widget","directories":{},"_nodeVersion":"5.2.0","dependencies":{"d3":"^3.5.16","d3.chart":"^0.3.0","topojson":"^1.6.24","@domoinc/legend":"^6.0.11","@domoinc/da-theme2":"^2.3.1","@domoinc/base-widget":"^1.5.2","@domoinc/domo-tooltip":"^5.1.10","@domoinc/radius-legend":"^1.0.2","@domoinc/us-data-no-great-lakes":"^1.0.0","@domoinc/us-state-abbrev-to-state-name-map":"^1.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.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/us-cartogram-1.0.3.tgz_1474999618575_0.7577361688017845","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2016-03-07T21:29:47.449Z","modified":"2026-02-27T17:29:02.717Z","1.0.1":"2016-03-07T21:29:47.449Z","1.0.2":"2016-03-29T21:28:46.122Z","1.0.3":"2016-09-27T18:06:59.292Z"},"author":{"name":"Domo Inc."},"license":"SEE LICENSE IN LICENSE","keywords":["domo","app"],"repository":{"type":"git"},"description":"USCartogram - 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":"# USCartogram\n\nUS Cartogram with colored circles representing data and a legend\n\n\n\n## Configuration Options\n\n\n#### chartName\nType: `string`  \nDefault: `\"USCartogram\"`  \n\nName of chart for Reporting.\n\n#### colorTheme\nType: `undefined`  \nDefault: `{\"name\":\"Orange\",\"value\":[\"#FDECAD\",\"#FCCF84\",\"#FBAD56\",\"#FB8D34\",\"#E45621\",\"#A43724\"]}`  \n\n\n\n#### height\nType: `number`  \nDefault: `400`  \nUnits: `px`\n\nHeight of the widget\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#### labelTextSize\nType: `number`  \nDefault: `12`  \nUnits: `px`\n\nThe max text size of the labels in the circles (if the text is too big for the circle, it will shrink to a minimum size of 10)\n\n#### legendFontColor\nType: `color`  \nDefault: `\"#999999\"`  \n\nFont color for the legend\n\n#### legendLabelSpacing\nType: `number`  \nDefault: `30`  \nUnits: `px`\n\nPadding between the icons and text\n\n#### legendRangeMax\nType: `number`  \nDefault: `100`  \n\nMaximum value for the legend\n\n#### legendRangeMin\nType: `number`  \nDefault: `0`  \n\nMinimum value for the legend\n\n#### legendRowHeight\nType: `number`  \nDefault: `30`  \n\nHeight of the legend rows\n\n#### legendWidth\nType: `number`  \nDefault: `100`  \nUnits: `px`\n\nLegend width, which will determine length of the dividing lines\n\n#### maxRadius\nType: `number`  \nDefault: `20`  \nUnits: `px`\n\nThe maximum radius size for the circle with the largest value\n\n#### minRadius\nType: `number`  \nDefault: `0`  \nUnits: `px`\n\nThe minimum radius size for the circle with the smallest value\n\n#### numDistribution\nType: `number`  \nDefault: `7`  \n\nNumber of colors used to distribute the data into ranges (i.g. if the data values range from 0 to 100 and there are four colors, color 1 represents the data values for 0-25, color 2 for 26-50, color 3 for 51-75, and color 4 for 76-100)\n\n#### padding\nType: `number`  \nDefault: `6`  \nUnits: `px`\n\nPadding between each circle\n\n#### shouldValidate\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off data validation\n\n#### textFontFamily\nType: `string`  \nDefault: `\"Open Sans\"`  \n\n\n\n#### tooltipBackgroundColor\nType: `color`  \nDefault: `\"#555555\"`  \n\nBackground color for the tooltip\n\n#### tooltipTextColor\nType: `color`  \nDefault: `\"#FFFFFF\"`  \n\nFont color for the tooltip text\n\n#### tooltipTextSize\nType: `number`  \nDefault: `14`  \nUnits: `px`\n\nundefined\n\n#### updateSizeableConfigs\nType: `boolean`  \nDefault: `true`  \n\nFlag for turning off the mimic of illustrator's scale functionality\n\n#### usingStateAbbr\nType: `boolean`  \nDefault: `{\"name\":\"Full Form\",\"value\":false}`  \n\nSet the expected data format for the states to be either written out or abbreviated (i.g. California vs CA)\n\n#### width\nType: `number`  \nDefault: `400`  \nUnits: `px`\n\nWidth of the widget\n\n## Data Definition\n\n\n#### Percent\nType: `number`\n\nDefault validate:  \n```js\nfunction (d) { return !isNaN(this.accessor(d)) && this.accessor(d) >= 0; }\n```\n\nDefault accessor:  \n```js\nfunction (line) { return line[2] === null ? null : Number(line[2]); }\n```\n\n#### State\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)) && this.accessor(d) >= 0; }\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\nexternal:mouseover  \nexternal:mouseout  \n\n## Example\n\n```js  \n/*----------------------------------------------------------------------------------\n Create Widget -> index.html\n\n © 2011 - 2015 DOMO, INC.\n ----------------------------------------------------------------------------------*/\n\n//Setup some fake data\nvar data = [\n  //state            value    percent\n  ['Alaska',         375135,  0.82],\n  ['Hawaii',         564268,  0.82],\n  ['California',     999999,  0.10],\n  ['Colorado',       215869,  0.89],\n  ['Connecticut',    235208,  0.91],\n  ['Delaware',       696908,  0.35],\n  ['Florida',        161146,  0.10],\n  ['Georgia',        416345,  0.13],\n  ['Iowa',           583482,  0.44],\n  ['Idaho',          273991,  0.13],\n  ['Illinois',       142835,  0.68],\n  ['Indiana',        160836,  0.67],\n  ['Kansas',         761592,  0.63],\n  ['Kentucky',       357259,  0.99],\n  ['Louisiana',      499651,  0.28],\n  ['Massachusetts',  770616,  0.51],\n  ['Maryland',       319129,  0.94],\n  ['Maine',          987348,  0.17],\n  ['Michigan',       741533,  0.80],\n  ['Minnesota',      82273,   0.80],\n  ['Missouri',       354202,  0.84],\n  ['Mississippi',    14454,   0.13],\n  ['Montana',        632269,  0.80],\n  ['North Carolina', 709175,  0.70],\n  ['North Dakota',   463617,  0.50],\n  ['Nebraska',       43521,   0.94],\n  ['New Hampshire',  758294,  0.48],\n  ['New Jersey',     899938,  0.81],\n  ['New Mexico',     998101,  0.33],\n  ['Nevada',         858081,  null],\n  ['New York',       420986,  0.92],\n  ['Ohio',           410490,  0.40],\n  ['Oklahoma',       10446,   0.48],\n  ['Oregon',         292265,  0.85],\n  ['Pennsylvania',   298992,  0.15],\n  ['Rhode Island',   702667,  0.50],\n  ['South Carolina', 897403,  0.73],\n  ['South Dakota',   313546,  0.93],\n  ['Tennessee',      329780,  0.59],\n  ['Texas',          892539,  0.24],\n  ['Utah',           448973,  0.39],\n  ['Virginia',       982638,  0.32],\n  ['Vermont',        41539,   0.92],\n  ['Washington',     136003,  0.27],\n  ['Wisconsin',      120048,  0.21],\n  ['West Virginia',  374730,  0.19],\n  ['Wyoming',        330937,  0.16],\n];\n\nvar data3 = [\n  //state            value    percent\n\n  // ['California',    null,  0.10],\n  ['Nevada',        161146,  null],\n  // ['New Mexico',    null,  null],\n\n];\n\nvar data2 = [\n  ['AL', 375135, 0.82],\n  ['AK', 564268, 0.82],\n  ['AZ', 999999, 0.10],\n  ['AR', 215869, 0.89],\n  ['CA', 235208, 0.91],\n  ['CO', 696908, 0.35],\n  ['CT', 161146, 0.10],\n  ['DE', 416345, 0.13],\n  ['FL', 583482, 0.44],\n  ['GA', 273991, 0.13],\n  ['HI', 142835, 0.68],\n  ['ID', 160836, 0.67],\n  ['IL', 761592, 0.63],\n  ['IN', 357259, 0.99],\n  ['IA', 499651, 0.28],\n  ['KS', 770616, 0.51],\n  ['KY', 319129, 0.94],\n  ['LA', 987348, 0.17],\n  ['ME', 741533, 0.80],\n  ['MD', 82273,  0.80],\n  ['MA', 354202, 0.84],\n  ['MI', 14454,  0.13],\n  ['MN', 632269, 0.80],\n  ['MS', 709175, 0.70],\n  ['MO', 463617, 0.50],\n  ['MT', 43521,  0.94],\n  ['NE', 758294, 0.48],\n  ['NV', 899938, 0.81],\n  ['NH', 998101, 0.33],\n  ['NJ', 858081, 0.75],\n  ['NM', 420986, 0.92],\n  ['NY', 410490, 0.40],\n  ['NC', 10446,  0.48],\n  ['ND', 292265, 0.85],\n  ['OH', 298992, 0.15],\n  ['OK', 702667, 0.50],\n  ['OR', 897403, 0.73],\n  ['PA', 313546, 0.93],\n  ['RI', 329780, 0.59],\n  ['SC', 892539, 0.24],\n  ['SD', 448973, 0.39],\n  ['TN', 982638, 0.32],\n  ['TX', 41539,  0.92],\n  ['UT', 136003, 0.27],\n  ['VT', 120048, 0.21],\n  ['VA', 374730, 0.19],\n  ['WA', 330937, 0.16],\n  ['WV', 330937, 0.16],\n  ['WI', 330937, 0.16],\n  ['WY', 330937, 0.16],\n]\n\nvar aWidth = 400;\nvar aHeight = 265;\n\n//Initialze the widget\nvar chart = d3.select('#vis')\n  .append('svg')\n  .attr({\n    width: 1000,\n    height: 1000,\n  })\n  .append('g')\n  .attr('transform', 'translate(0,115)')\n  .chart('USCartogram')\n  .c({\n    width: aWidth,\n    height: aHeight,\n    // maxRadius: 30,\n    // usingStateAbbr: true,\n  });\n\n//Render the chart with data\nchart._notifier.showMessage(true);\n\nchart.draw(data);\n// chart.draw(data3);\n// chart.draw(data2);\n\n```\n\n","readmeFilename":"README.md"}