{"_id":"google-charts","_rev":"7-4702bfc3e6fed28c076cf9e20ea53abd","name":"google-charts","description":"ES6 Google Charts Module that allows asynchronous loading","dist-tags":{"latest":"2.0.0"},"versions":{"0.5.0":{"name":"google-charts","version":"0.5.0","description":"ES6 Google Charts Module that allows asynchronous loading","main":"googleCharts.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"keywords":["ES6","google","charts","react","vuejs","vue","preact"],"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"homepage":"https://github.com/mmathias01/google-charts#readme","gitHead":"61df5171bfbf30daefac211b44bf5c91f9e2f542","_id":"google-charts@0.5.0","_npmVersion":"5.0.3","_nodeVersion":"7.10.0","_npmUser":{"name":"mmathias01","email":"mmathias01@gmail.com"},"dist":{"integrity":"sha512-LHWmKjg0GtIqEYLba+s80X2ohU6M6uYt2cx3Lo8qCEmJAhPxSO7yQDLG/WHWpHfhyvemQPaoI4AWGMF+6jrY0Q==","shasum":"688d7d59a960ac39dce911125b5449de7832153e","tarball":"https://registry.npmjs.org/google-charts/-/google-charts-0.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKUZQ1/HJzL+NH8NpQtrGIhy2cR7BP1/9j0QB9Pb51lAiEAi39s60HDQCEWEj0TA3NT9sfsDaM8HXgGvWeRpuGjt+w="}]},"maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-charts-0.5.0.tgz_1500591053516_0.9121039067395031"},"directories":{}},"0.5.1":{"name":"google-charts","version":"0.5.1","description":"ES6 Google Charts Module that allows asynchronous loading","main":"googleCharts.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"keywords":["ES6","google","charts","react","vuejs","vue","preact"],"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"homepage":"https://github.com/mmathias01/google-charts#readme","gitHead":"468120fad8234798473852424916bd771aa84c81","_id":"google-charts@0.5.1","_npmVersion":"5.0.3","_nodeVersion":"7.10.0","_npmUser":{"name":"mmathias01","email":"mmathias01@gmail.com"},"dist":{"integrity":"sha512-tURxDATNHg9XuhHrjAJMHMa+Wr1GXzAgMvhl0LCDAf8zIZ2BjgE7N09WMERinxfFg9+v0BcTb9gWFCkd6k4acA==","shasum":"c8bdd9730375919813f4c265586a54342dab790b","tarball":"https://registry.npmjs.org/google-charts/-/google-charts-0.5.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLZfErmeMc71zfzya8ONsOZMbYDm5EPzDSvoedUGiZoAIgRDH5gbtHMjli38gEKc/IcrxYSnuwGoPhPupww/TzhB8="}]},"maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-charts-0.5.1.tgz_1500592558204_0.8949081697501242"},"directories":{}},"1.0.0":{"name":"google-charts","version":"1.0.0","description":"ES6 Google Charts Module that allows asynchronous loading","main":"googleCharts.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"keywords":["ES6","google","charts","react","vuejs","vue","preact"],"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"homepage":"https://github.com/mmathias01/google-charts#readme","gitHead":"15c818dbd17056b65852c6564dd2d5ec8f3d5414","_id":"google-charts@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"7.10.0","_npmUser":{"name":"mmathias01","email":"mmathias01@gmail.com"},"dist":{"integrity":"sha512-izw7IA5laY2s/nWkuvhftdrRDu9A5k55jrPXxWe2XLiUL4P0jvHUuMBX3QSv5mV9OQWB9HRBtdxLEA1ZMs7d1Q==","shasum":"a7c49ae8940f35ad21182757e6552c99a5e44632","tarball":"https://registry.npmjs.org/google-charts/-/google-charts-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUUVLHTqDWlZziiMEtOiHKSK4WVIqH2OxNpKqzSP0XHAIgSXFAz+2k8wo8nBqshhWtIrRFczzDmqd28NG5LwkCn4E="}]},"maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-charts-1.0.0.tgz_1504629120394_0.6172475868370384"},"directories":{}},"1.1.0":{"name":"google-charts","version":"1.1.0","description":"ES6 Google Charts Module that allows asynchronous loading","main":"googleCharts.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"keywords":["ES6","google","charts","react","vuejs","vue","preact"],"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"homepage":"https://github.com/mmathias01/google-charts#readme","gitHead":"a1f7aa2d2a0d96ea4685e2d84f518fcbf844ef50","_id":"google-charts@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mmathias01","email":"mmathias01@gmail.com"},"dist":{"integrity":"sha512-ABW2h1Qart4C5O2tC0GKMjYf/omJzbLjx89GUhR3iNLsvGBcvrR6N9nMUjkPgv/0w/QpH/C8lnVc5qUWH91NTQ==","shasum":"d785ee9397bab07a3db069e986a845057935ecd8","tarball":"https://registry.npmjs.org/google-charts/-/google-charts-1.1.0.tgz","fileCount":4,"unpackedSize":7371,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDF57PqI8XrsELBRRT3oSTmNQY97hAa2og9+6TYjvUaPAiEAzUAnM4ejk8Gg/T6PVx67+yGj4C/bDxm8M1Lg/cz6v8I="}]},"maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-charts_1.1.0_1522793376499_0.37812100674087423"},"_hasShrinkwrap":false},"1.5.0":{"name":"google-charts","version":"1.5.0","description":"ES6 Google Charts Module that allows asynchronous loading","main":"googleCharts.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"keywords":["ES6","google","charts","react","vuejs","vue","preact"],"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"homepage":"https://github.com/mmathias01/google-charts#readme","gitHead":"9e0740eec61be64e6d0261b453d77c3273d38061","_id":"google-charts@1.5.0","_npmVersion":"6.1.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mmathias01","email":"mmathias01@gmail.com"},"dist":{"integrity":"sha512-UAMin1C4/nCMZw/STjNisi+S8qVOAVJa7O4/hbMFPca3eqr2SNhSMlD5hikpk9M8DgWUvBcx2LJqi6E3an9Rpg==","shasum":"acf1412a10991e8b2d6e5eb53619f8136dc73e05","tarball":"https://registry.npmjs.org/google-charts/-/google-charts-1.5.0.tgz","fileCount":4,"unpackedSize":7716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRvGVCRA9TVsSAnZWagAAvmUP/ihR2FqvBn7R8qZ9on6Z\nHEERWXz+aPX0gQzLEzMFpqv6ShSyP+bRZCExz2gHTCQYOmrQfqQawj3vmcjf\n1ldtY7G6DAHT83g+h9CJ/dng4elFzVvs9cUr1pDq00z2CPL3m+Iald9dEAO9\nmozSe5aG514Ut4T9KBQkzdwPikPhJRgf2YwGj63UJ9yDRp2ZNoWPMrmv6EMC\ndpFDTcVYNzez89hrFKbm96LhuuuaVikoqmmlSXCSnYe9+Xw+3jvSDuMSEZXh\nojIQUrDWTy0lHVn8DisfcCJjuo3y5yORt+zA+ebhAoab11LfMLZxmkcchtNC\nhCNKv5c0F0potKwR+uEuM0hzzY8vNsX5QWoVnfSo9pQz1iRUjv1+a3CFr5/2\n1OrpiP7m8nAs9VK4lku3X35jqPz21K8/DOdsONlMo9W1pxhLJc/SJ70e1fC2\nsiXtFPhZezGWkIjU8NXibkU93OD2MFZdlWkeGEtrWjNyAocM5GOeJetb8He9\nhCYSbogppZVSr6F8RlRLYdegyjRWXFe4ZujX0J/DQmCCXIHVswuXoLBkVSAv\ng23ENXi1r85D/gSCobKjLrRASWQ+SBErXprcL/4qldmz0b9d3v9S6gjmjlXu\niA0w2viEnA8qUeGPluTakCnBDtn7n1jRx55VV3P8dGLhPybqGiJ7nuaH3b7p\nzn1q\r\n=cPc/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPDnJIWsMXhrSKLp58j3053Uh7AscDNqCH5THlAoJjCQIhAJxzbzBhMQU3wDRlbHLxNyKhBzRGRsqJ4swiTkwBanfT"}]},"maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-charts_1.5.0_1531376021869_0.6845508962055133"},"_hasShrinkwrap":false},"2.0.0":{"name":"google-charts","version":"2.0.0","description":"ES6 Google Charts Module that allows asynchronous loading","main":"dist/googleCharts.js","module":"dist/googleCharts.esm.js","scripts":{"build":"rollup -c","test":"mocha --require lib/compile-tests.js","bump:patch":"npm run build && npm version patch -m \"v%s\"","bump:minor":"npm run build && npm version minor -m \"v%s\"","bump:major":"npm run build && npm version major -m \"v%s\"","bump":"npm run bump:patch"},"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"keywords":["ES6","google","google-charts","charts","react","vuejs","vue","preact"],"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"license":"MIT","licenses":[{"type":"MIT","url":"https://github.com/mmathias01/google-charts/blob/master/LICENSE"}],"devDependencies":{"@babel/core":"^7.2.2","@babel/polyfill":"^7.2.5","@babel/preset-env":"^7.2.3","@babel/register":"^7.0.0","chai":"^4.2.0","eslint":"^5.11.1","eslint-plugin-import":"^2.14.0","mocha":"^5.2.0","rollup":"^1.0.0","rollup-plugin-babel":"^4.1.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-conditional":"^2.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-terser":"^3.0.0","sinon":"^7.2.2","terser":"^3.14.0-beta"},"bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"homepage":"https://github.com/mmathias01/google-charts#readme","browserslist":["last 2 version","> 1%","not dead","not ie <= 10"],"gitHead":"33f915ec764d3ea404439053dbfc8bbe5daec41a","_id":"google-charts@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"mmathias01","email":"mmathias01@gmail.com"},"dist":{"integrity":"sha512-wxtwJTvA9MhFGCkMtUYtM+b1gQ8R6zSdQOxflRTAGr83+sd0bRDfrn1HaPIpxnqI75cImQBDp0ZTUXuwLhgPzA==","shasum":"29cf307f2e250c743daf5161816f14d0df2c6498","tarball":"https://registry.npmjs.org/google-charts/-/google-charts-2.0.0.tgz","fileCount":6,"unpackedSize":76901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKUzGCRA9TVsSAnZWagAA5r4P/3VdTDOlcRhpnLK9D9bX\nWXcrM0R6b9ZYgSnwNGqiAn/5Bqoy/WmVO6sDToOiltDIRoUL8EP0mDGShBL9\nbI/fedeZi/02Rcu5/Dspg3805ZZlNZi7ygB0tlSmkjD3Jh45BV8gdqCzetwe\nGlk6E5+e8fY2dCJJYSpVGIIzY/5886YVvR++q8UYrf03hGhbpWX7hL+RQThm\nxYJcCJZXBMnGSVhnObTw+q8ipRaiJ/0nKm20ADgbzAdRFCpNdsU3CNtVwfdH\nsUO0/4CKxU/zVpfE1zJpsrHZWJUJ72SSM4oaC9nDsCZD9WM8ZfwD3aLdUI1x\nxxjBa9W/hOzYGN3xUpji3saqfhQfDDL3NY3xEKc3NdzM9fdQLA6Lw0Bj2x0+\nEbbAuJ8iGG9kpG0U9+xG52UxRifzAHJwvB72ufX6+wjkoxRKNGP56y9+cRne\nloCg5KJa7sJ7EtuNuvG40HMteimch3AJaelDwkwEPmtZxJA4WJ1C1loVwrDZ\n/SbTD7QUiiRO1wBcSzhk+gy0ufvaUzoAKR+fEMzgzIjsmHRmrTnUQJSecNVd\n2usRJPsID0Phn6bJ1KkWF5ZAjyxyJI85Qewp9oXTyvMUBlKiPXiD0nSBtBYE\nR0sEEBoO6s2EjFoUrm3i7eKgD8YY/7HNBZw9te/suAQQJEAiAW9coTL7p1KS\nV/7H\r\n=hgW5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDYxeWrXY+SucxOAfCKjbXPk7RJcVgFJAnsGBx0NuzSQIgFQBKuiTxd5KFoACS/+IhSAXgBxv5BJr8wuSUAWWdDtU="}]},"maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-charts_2.0.0_1546210501463_0.6234667367746862"},"_hasShrinkwrap":false}},"readme":"# google-charts\n\n[![NPM](https://nodei.co/npm/google-charts.png?downloads=true&downloadRank=true)](https://npmjs.org/package/google-charts)\n\nES6 Google Charts Module that allows asynchronous loading\n\n## Installation\n\n```\nyarn add -D google-charts\n```\n\nor \n\n```\nnpm i -D google-charts\n```\n\n## Quick Start\n\n```javascript\nimport {GoogleCharts} from 'google-charts';\n\n//Load the charts library with a callback\nGoogleCharts.load(drawChart);\n\nfunction drawChart() {\n\n    // Standard google charts functionality is available as GoogleCharts.api after load\n    const data = GoogleCharts.api.visualization.arrayToDataTable([\n        ['Chart thing', 'Chart amount'],\n        ['Lorem ipsum', 60],\n        ['Dolor sit', 22],\n        ['Sit amet', 18]\n    ]);\n    const pie_1_chart = new GoogleCharts.api.visualization.PieChart(document.getElementById('chart1'));\n    pie_1_chart.draw(data);\n}\n````\n## Advanced Usage\n\n```javascript\nimport {GoogleCharts} from 'google-charts';\n\n//Load the 'corecharts'. You do not need to provide that as a type.\nGoogleCharts.load(drawCharts);\n\n/* \n* Load a specific type(s) of chart(s). You can call this as many times as you need from anywhere in your app\n* GoogleCharts is a singleton and will not allow the script to be loaded more than once\n* The mapsApiKey is only required for certain GeoCharts\n*/\nGoogleCharts.load(drawGeoChart, {\n    'packages': ['geochart'],\n    'mapsApiKey': 'YOUR_API_KEY'\n});\n\nfunction drawCharts() {\n\n    /* Pie chart 1 */\n    const pie_1_data = GoogleCharts.api.visualization.arrayToDataTable([\n        ['Chart thing', 'Chart amount'],\n        ['Lorem ipsum', 60],\n        ['Dolor sit', 22],\n        ['Sit amet', 18]\n    ]);\n    const pie_1_options = {\n        pieHole: 0.8,\n        pieSliceTextStyle: {\n            color: 'black',\n        },\n        slices: {\n            0: {color: '#7ec252'},\n            1: {color: '#a4ce57'},\n            2: {color: '#cfe4ad'}\n        },\n        legend: {\n            position: 'bottom',\n            textStyle: {\n                color: 'black',\n                fontSize: 13,\n                fontName: 'EncodeSans'\n            }\n        },\n        title: 'Chart 1',\n        titleTextStyle: {\n            color: 'black',\n            fontSize: 13,\n            fontName: 'EncodeSans'\n        },\n        chartArea: {left: 0, top: 0, width: '100%', height: '80%'},\n        pieSliceText: 'none'\n    };\n    const pie_1_chart = new GoogleCharts.api.visualization.PieChart(document.getElementById('chart1'));\n    pie_1_chart.draw(pie_1_data, pie_1_options);\n\n    /* Column chart 1 */\n    const col_1_data = GoogleCharts.api.visualization.arrayToDataTable([\n        ['Chart 1', 'Lorem ipsum', 'Dolor sit', 'Sit amet'],\n        ['Chart 1', 22, 10, 68]\n    ]);\n    \n    const col_1_options = {\n        legend: {\n            position: 'bottom',\n            textStyle: {\n                color: 'black',\n                fontSize: 13,\n                fontName: 'EncodeSans'\n            }\n        },\n        bar: {groupWidth: '25%'},\n        colors: ['#808e97', '#b9c3ca', '#dde4e8'],\n        isStacked: true,\n        chartArea: {left: 0, top: 0, width: '100%', height: '80%'},\n        axisTitlesPosition: 'none',\n        hAxis: {textPosition: 'none', gridlines: {color: 'transparent'}, baselineColor: 'transparent'},\n        vAxis: {textPosition: 'none', gridlines: {color: 'transparent'}, baselineColor: 'transparent'},\n    };\n    \n    const col_1_chart = new GoogleCharts.api.visualization.ColumnChart(document.getElementById('chart2'));\n    col_1_chart.draw(col_1_data, col_1_options);\n}\n\nfunction drawGeoChart() {\n\n    /* Geo Chart */\n    const geo_1_data = GoogleCharts.api.visualization.arrayToDataTable([\n        ['State', 'Spend'],\n        ['ID', {v:120000, f: '$120,000'}],\n        ['CO', {v:567135, f: '$567,135'}],\n        ['FL', {v:220000, f: '$220,000'}],\n        ['NY', {v:1120000, f: '$1,120,000'}],\n        ['CA', {v:5120000, f: '$5,120,000'}],\n        ['AK', {v:101000, f: '$101,000'}],\n        ['AZ', {v:311030, f: '$311,030'}]\n    ]);\n    const geo_1_options = {\n        region: 'US',\n        resolution: 'provinces',\n        is3D: true,\n        legend: {\n            numberFormat:'$###,###'\n        }\n    }\n    const geo_1_chart = new GoogleCharts.api.visualization.GeoChart(document.getElementById('geo_1_chart'));\n    geo_1_chart.draw(geo_1_data, geo_1_options);\n}\n```\n","maintainers":[{"name":"mmathias01","email":"mmathias01@gmail.com"}],"time":{"modified":"2022-05-04T00:24:01.279Z","created":"2017-07-20T22:50:54.536Z","0.5.0":"2017-07-20T22:50:54.536Z","0.5.1":"2017-07-20T23:15:59.605Z","1.0.0":"2017-09-05T16:32:01.418Z","1.1.0":"2018-04-03T22:09:36.558Z","1.5.0":"2018-07-12T06:13:41.985Z","2.0.0":"2018-12-30T22:55:01.618Z"},"homepage":"https://github.com/mmathias01/google-charts#readme","keywords":["ES6","google","google-charts","charts","react","vuejs","vue","preact"],"repository":{"type":"git","url":"git+https://github.com/mmathias01/google-charts.git"},"author":{"name":"Matthew Mathias","email":"mmathias01@gmail.com"},"bugs":{"url":"https://github.com/mmathias01/google-charts/issues"},"license":"MIT","readmeFilename":"README.md"}