{"_id":"@ald-life/outcome-graph","_rev":"4-ae5c6db3f0d2083dbee6a5b5b4239ebb","name":"@ald-life/outcome-graph","description":"Create radar charts to visualise numerous therapy sessions","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ald-life/outcome-graph","version":"1.0.0","description":"Create radar charts to visualise numerous therapy sessions","repository":{"type":"git","url":"git+https://github.com/ALDLife/outcome-graph.git"},"license":"MIT","main":"src/index.js","bugs":{"url":"https://github.com/ALDLife/outcome-graph/issues"},"homepage":"https://github.com/ALDLife/outcome-graph#readme","dependencies":{"chart.js":"2.5.0","chartjs-color":"2.1.0","distinct-colors":"1.0.4","moment":"2.18.1"},"devDependencies":{"babel-eslint":"6.1.2","browserify":"14.3.0","eslint":"3.19.0","eslint-config-airbnb-es5":"1.1.0","eslint-plugin-react":"6.10.3","rimraf":"2.6.1","uglifyjs":"2.4.10","watchify":"3.9.0"},"scripts":{"build:module":"browserify ./src/index.js --standalone outcomeGraph --ignore chart.js --ignore moment --ignore chartjs-color --ignore distinct-colors > ./dist/outcome-graph.js","build:bundle":"browserify ./src/index.js --standalone outcomeGraph > ./dist/outcome-graph.bundle.js","build:module-minified":"uglifyjs ./dist/outcome-graph.js -mc > ./dist/outcome-graph.min.js","build:bundle-minified":"uglifyjs ./dist/outcome-graph.bundle.js -mc > ./dist/outcome-graph.bundle.min.js","build:clean":"rimraf ./dist/*","lint":"eslint ./src/*.js","prebuild":"npm run build:clean","build":"npm run build:module && npm run build:module-minified && npm run build:bundle && npm run build:bundle-minified","watch:bundle":"watchify ./src/index.js --standalone outcomeGraph -o ./dist/outcome-graph.bundle.js -v"},"gitHead":"4552421bb0ea5e2192cb1a99996f7c3658b6cb61","_id":"@ald-life/outcome-graph@1.0.0","_shasum":"9417484bdacba4d2461bfba4d9272269e2dd2aaf","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"themakshter","email":"mohammad_ali93@live.com"},"dist":{"shasum":"9417484bdacba4d2461bfba4d9272269e2dd2aaf","tarball":"https://registry.npmjs.org/@ald-life/outcome-graph/-/outcome-graph-1.0.0.tgz","integrity":"sha512-Z6rnkFVCd7oliLDu2BSKsyPT73x3pviNhm8IG0Tz/2q13jz2mWk/ItSo+TGteuDWvkO6BBPsFoIepAd7UG1cRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClUpAd0VZNW8OCCZQVOl6/dh2cRKSz6ycoBkOeazHxzQIhAMtrvoAAz/rAtSJkyGszb260cK+e3ULN+N/psOTMHm+4"}]},"maintainers":[{"name":"themakshter","email":"mohammad_ali93@live.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/outcome-graph-1.0.0.tgz_1494796754434_0.7251617729198188"}},"1.0.1":{"name":"@ald-life/outcome-graph","version":"1.0.1","description":"Create radar charts to visualise numerous therapy sessions","repository":{"type":"git","url":"git+https://github.com/ALDLife/outcome-graph.git"},"license":"MIT","main":"src/index.js","bugs":{"url":"https://github.com/ALDLife/outcome-graph/issues"},"homepage":"https://github.com/ALDLife/outcome-graph#readme","dependencies":{"chart.js":"2.5.0","chartjs-color":"2.1.0","distinct-colors":"1.0.4","moment":"2.18.1"},"devDependencies":{"babel-eslint":"6.1.2","browserify":"14.3.0","eslint":"3.19.0","eslint-config-airbnb-es5":"1.1.0","eslint-plugin-react":"6.10.3","rimraf":"2.6.1","uglifyjs":"2.4.10","watchify":"3.9.0"},"scripts":{"build:module":"browserify ./src/index.js --standalone outcomeGraph --ignore chart.js --ignore moment --ignore chartjs-color --ignore distinct-colors > ./dist/outcome-graph.js","build:bundle":"browserify ./src/index.js --standalone outcomeGraph > ./dist/outcome-graph.bundle.js","build:module-minified":"uglifyjs ./dist/outcome-graph.js -mc > ./dist/outcome-graph.min.js","build:bundle-minified":"uglifyjs ./dist/outcome-graph.bundle.js -mc > ./dist/outcome-graph.bundle.min.js","build:clean":"rimraf ./dist/*","lint":"eslint ./src/*.js","prebuild":"npm run build:clean","build":"npm run build:module && npm run build:module-minified && npm run build:bundle && npm run build:bundle-minified","watch:bundle":"watchify ./src/index.js --standalone outcomeGraph -o ./dist/outcome-graph.bundle.js -v"},"gitHead":"5f96227208777b2a9d31a79f13dc4fc585583746","_id":"@ald-life/outcome-graph@1.0.1","_shasum":"7c3ae22057dfb1b2a65c54b311391511e26a0bb8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"themakshter","email":"mohammad_ali93@live.com"},"dist":{"shasum":"7c3ae22057dfb1b2a65c54b311391511e26a0bb8","tarball":"https://registry.npmjs.org/@ald-life/outcome-graph/-/outcome-graph-1.0.1.tgz","integrity":"sha512-vSYPvTZSOwTMhyMjo85P2oPR/MNGgHt5e9zb+cA0D0B0waTM9VvYtGnwkRc8p+cVm5mazAeB/hPgmBDxzkujzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0rlIXTgQ2lVYOWGasG+CPr7P7IUzAeTaYMjAHDwnUVgIhAIpHbzejdsXgv/nF9yMa0lJENTa7Aq+tZJYNLdNECrbx"}]},"maintainers":[{"email":"mohammad_ali93@live.com","name":"themakshter"},{"email":"danielallenreid@gmail.com","name":"dareid"},{"email":"info@aldlife.org","name":"ald_life"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/outcome-graph-1.0.1.tgz_1495049669977_0.13081928435713053"}}},"readme":"# Outcome Graph  \r\n\r\n[![npm](https://img.shields.io/npm/v/@ald-life/outcome-graph.svg)](http://www.npmjs.com/package/@ald-life/outcome-graph)\r\n\r\nLibrary using Chart.js to create radar chart for visualising numerous therapy sessions.\r\n\r\n## Getting started\r\n\r\nTo create a radar chart, you need to pass in the id of a canvas `div` element, a title for the chart and the session data to be displayed.\r\n\r\n```js\r\n\r\nvar outcomeGraph = require('@ald-life/outcome-graph');\r\n\r\nvar sessionChart = outcomeGraph.getOutcomeGraph(\"canvas\", \"Outcome Graph\", sessionData);\r\n\r\n```\r\n\r\n### Data format\r\n\r\nData will be expected as an array of therapy sessions. Each session is expected to have a timestamp for when it was conducted and will contain an array of outcomes. Each outcome item in this array will have a dimension, its value and possible notes related to this value.  \r\n\r\nAn example of the test data format is as follows: \r\n\r\n```json\r\n\r\n[{\r\n  \"timestamp\": \"2017-02-18T14:58:54.026Z\",\r\n  \"outcomes\": [{\r\n    \"outcome\": \"Happiness\",\r\n    \"value\": 8,\r\n    \"notes\": \"I am pretty happy\"\r\n  }, {\r\n    \"outcome\": \"Loneliness\",\r\n    \"value\": 1,\r\n    \"notes\": \"I am isolated\"\r\n  }, {\r\n    \"outcome\": \"Health\",\r\n    \"value\": 5\r\n  }, {\r\n    \"outcome\": \"Managing at Home\",\r\n    \"value\": 2\r\n  }, {\r\n    \"outcome\": \"Finances\",\r\n    \"value\": 4\r\n  }, {\r\n    \"outcome\": \"Work\",\r\n    \"value\": 10\r\n  }],\r\n  \"notes\": \"Agreed the session went well\"\r\n}, {\r\n  \"timestamp\": \"2017-03-18T20:58:54.026Z\",\r\n  \"outcomes\": [{\r\n    \"outcome\": \"Happiness\",\r\n    \"value\": 10,\r\n    \"notes\": \"Joined social club\"\r\n  }, {\r\n    \"outcome\": \"Loneliness\",\r\n    \"value\": 3\r\n  }, {\r\n    \"outcome\": \"Health\",\r\n    \"value\": 4\r\n  }, {\r\n    \"outcome\": \"Managing at Home\",\r\n    \"value\": 3\r\n  }, {\r\n    \"outcome\": \"Finances\",\r\n    \"value\": 5\r\n  }, {\r\n    \"outcome\": \"Work\",\r\n    \"value\": 8,\r\n    \"notes\": \"Was late one day\"\r\n  }]\r\n}, {\r\n  \"timestamp\": \"2017-04-15T08:58:54.026Z\",\r\n  \"outcomes\": [{\r\n    \"outcome\": \"Happiness\",\r\n    \"value\": 10\r\n  }, {\r\n    \"outcome\": \"Loneliness\",\r\n    \"value\": 4\r\n  }, {\r\n    \"outcome\": \"Health\",\r\n    \"value\": 5\r\n  }, {\r\n    \"outcome\": \"Managing at Home\",\r\n    \"value\": 4\r\n  }, {\r\n    \"outcome\": \"Finances\",\r\n    \"value\": 8,\r\n    \"notes\": \"Won at bingo\"\r\n  }, {\r\n    \"outcome\": \"Work\",\r\n    \"value\": 9\r\n  }, {\r\n    \"outcome\": \"Relationships\",\r\n    \"value\": 7\r\n  }],\r\n  \"notes\": \"Discharged\"\r\n}]\r\n\r\n```\r\n\r\n## Contributing\r\n\r\nBefore submitting a pull request, please take a moment to look over the [contributing guidelines](CONTRIBUTING.md) first.\r\n\r\n## License\r\n\r\n`@ald-life/outcome-graph` is available under the [MIT License](https://opensource.org/licenses/MIT)\r\n","maintainers":[{"email":"mohammad_ali93@live.com","name":"themakshter"},{"email":"danielallenreid@gmail.com","name":"dareid"},{"email":"info@aldlife.org","name":"ald_life"}],"time":{"modified":"2022-06-12T14:27:45.561Z","created":"2017-05-14T21:19:16.339Z","1.0.0":"2017-05-14T21:19:16.339Z","1.0.1":"2017-05-17T19:34:32.401Z"},"homepage":"https://github.com/ALDLife/outcome-graph#readme","repository":{"type":"git","url":"git+https://github.com/ALDLife/outcome-graph.git"},"bugs":{"url":"https://github.com/ALDLife/outcome-graph/issues"},"license":"MIT","readmeFilename":"README.md"}