{"_id":"d-barchart-vanilla","_rev":"6-8cfeb78351f8dcde9a9984db4fc7d216","name":"d-barchart-vanilla","description":"Example bar chart Derby component with pure js","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"d-barchart-vanilla","description":"Example bar chart Derby component with pure js","version":"0.0.1","main":"index.js","keywords":["derby","component","datavis"],"repository":{"type":"git","url":"git://github.com/codeparty/d-barchart-vanilla.git"},"bugs":{"url":"https://github.com/codeparty/d-barchart-vanilla/issues"},"author":{"name":"Ian Johnson"},"license":"MIT","dependencies":{},"devDependencies":{},"homepage":"https://github.com/codeparty/d-barchart-vanilla","_id":"d-barchart-vanilla@0.0.1","dist":{"shasum":"9268c6b66fda2ba9b8ec20e773ea6c26b4c578e3","tarball":"https://registry.npmjs.org/d-barchart-vanilla/-/d-barchart-vanilla-0.0.1.tgz","integrity":"sha512-oaLU23ibNWeLSTh63/Gyi6GuqwpW54HQuFu/KnJj++3lVaE1bIk+MxDPEpkBQeb36EYf35hg/mtkNVb/qLeGPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhxOYUhmS3YJAs2RA6VLN17pnga9GA4gKcRCBTok+q1AiAJ9hG0PMU0XC+zkw+eWvNlSLyrUGU62GzWIIAbnSAiPQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"enjalot","email":"enjalot@gmail.com"},"maintainers":[{"name":"enjalot","email":"enjalot@gmail.com"}]},"0.1.0":{"name":"d-barchart-vanilla","description":"Example bar chart Derby component with pure js","version":"0.1.0","main":"index.js","keywords":["derby","component","datavis"],"repository":{"type":"git","url":"git://github.com/codeparty/d-barchart-vanilla.git"},"bugs":{"url":"https://github.com/codeparty/d-barchart-vanilla/issues"},"author":{"name":"Ian Johnson"},"license":"MIT","dependencies":{},"devDependencies":{},"homepage":"https://github.com/codeparty/d-barchart-vanilla","_id":"d-barchart-vanilla@0.1.0","dist":{"shasum":"00272dc3b7eac068243fa331643ce5ccde661cfb","tarball":"https://registry.npmjs.org/d-barchart-vanilla/-/d-barchart-vanilla-0.1.0.tgz","integrity":"sha512-qeMaLZu6LhEw7pwlZlf5z5tNKuEotR6NQaFTd7X2w02bTCyOedkJ/PGb+QQEaf0VccxSreLibwP1Q82JCxnB0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCymCrozASTfcR35z+OcBXqgmao44SSSIxuSLJbs/guiQIgRmNok1CnqPJN4eQZbxUYCaTVSxDjzLOJ4EnQxFKFufw="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"enjalot","email":"enjalot@gmail.com"},"maintainers":[{"name":"enjalot","email":"enjalot@gmail.com"}]}},"readme":"d-barchart-vanilla\n==================\n\nExample Bar chart Derby component built in vanilla JS (with no d3) to illustrate the difference.  \nsee also:  \n[d-barchart](http://github.com/codeparty/d-barchart)  \n[d-d3-barchart](http://github.com/codeparty/d-d3-barchart)  \n\n# Usage\n[Example usage](http://github.com/codeparty/derby-examples/charts)\n\n## In your template\n```\n<view name=\"d-barchart\" data={{_page.data}} width=300 height=200></view>\n```\nsome optional arguments\n```\n<view name=\"d-barchart\" data={{_page.data}} margins={{_page.margins}}></view>\n```\n\n\n## Your data\n```\nmodel.set(\"_page.data\", [ { value: 1 }, { value: 10 } ]);\n```\n\nOptional data\n```\nmodel.set(\"_page.margins\", {top: 0, right: 20, bottom: 0, left: 20 });\n```\n\n## Implementation pattern\n\nIn this example we take advantage of derby's bindings to associate our data with the DOM.  \nWe use the __layout__ pattern where we transform input data into layout data, and then render the layout data.  \nWe don't use any d3 to both show a more bare-bones Derby example, as well as show what d3 makes more convenient regarding laying out data.\n","maintainers":[{"name":"enjalot","email":"enjalot@gmail.com"}],"time":{"modified":"2022-06-14T07:24:39.896Z","created":"2014-04-07T15:16:13.195Z","0.0.1":"2014-04-07T15:16:13.195Z","0.1.0":"2014-04-11T02:26:23.466Z"},"homepage":"https://github.com/codeparty/d-barchart-vanilla","keywords":["derby","component","datavis"],"repository":{"type":"git","url":"git://github.com/codeparty/d-barchart-vanilla.git"},"author":{"name":"Ian Johnson"},"bugs":{"url":"https://github.com/codeparty/d-barchart-vanilla/issues"},"license":"MIT","readmeFilename":"README.md"}