{"_id":"@camdenblatchly/easy-d3-annotate","_rev":"2-3385de24bebd7d2f6faa57971a3789f8","name":"@camdenblatchly/easy-d3-annotate","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@camdenblatchly/easy-d3-annotate","version":"1.0.0","description":"Easily add annotations to d3 SVG graphics","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/camdenblatchly/easy-d3-annotate.git"},"keywords":["d3","annotation"],"author":{"name":"Camden Blatchly"},"license":"ISC","bugs":{"url":"https://github.com/camdenblatchly/easy-d3-annotate/issues"},"homepage":"https://github.com/camdenblatchly/easy-d3-annotate#readme","dependencies":{"d3":"^7.8.5"},"_id":"@camdenblatchly/easy-d3-annotate@1.0.0","gitHead":"ac0ec5a5358a1cae227d5d384e093f293cb2f355","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-I+Yqmoo0EXuZVwF8OiDwfA12R28bnLqx+tvI3BuI1rQb/v+vZlBHgwZlQrKOZH5zg8/L5BMw3ce93jIQZspFpA==","shasum":"cc6be001ad86fb26bb88d1f0df88a57d104632ea","tarball":"https://registry.npmjs.org/@camdenblatchly/easy-d3-annotate/-/easy-d3-annotate-1.0.0.tgz","fileCount":5,"unpackedSize":14131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCXTN5v26U0LmL4NI1G22LxcMWsduvKBsfmuV554L7OAiEA/NT+0B+ML5nQLJbZ/ijQUcIKrMBNspOXR2+shM6kVMM="}]},"_npmUser":{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"},"directories":{},"maintainers":[{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-d3-annotate_1.0.0_1692328004282_0.4058032338334676"},"_hasShrinkwrap":false},"1.0.1":{"name":"@camdenblatchly/easy-d3-annotate","version":"1.0.1","description":"Easily add annotations to d3 SVG graphics","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/camdenblatchly/easy-d3-annotate.git"},"keywords":["d3","annotation"],"author":{"name":"Camden Blatchly"},"license":"ISC","bugs":{"url":"https://github.com/camdenblatchly/easy-d3-annotate/issues"},"homepage":"https://github.com/camdenblatchly/easy-d3-annotate#readme","dependencies":{"d3":"^7.8.5"},"_id":"@camdenblatchly/easy-d3-annotate@1.0.1","gitHead":"0d55fd804b93a0895e6e75f2512674b7c9772bfc","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-azXTzBgXv+juWhrYE9q32osjiBMuzJLC7qsFVU8oqnhIBhnvZa20u3nBs3lRp8YALivjpG82rK9XJt27jiZxug==","shasum":"35f749ea9c5894fe0ca7ca4bea2b274e8918ee14","tarball":"https://registry.npmjs.org/@camdenblatchly/easy-d3-annotate/-/easy-d3-annotate-1.0.1.tgz","fileCount":5,"unpackedSize":14131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLkrduG4SYb4LSu5gOgbf74d2BSZ4IacAcl9tDACpmYAiA0zUS1rND/ZnPrVeA2gF1VUK7wLcLXZMNFJQAciiBgCA=="}]},"_npmUser":{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"},"directories":{},"maintainers":[{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-d3-annotate_1.0.1_1692328320667_0.34423822075840027"},"_hasShrinkwrap":false},"1.0.2":{"name":"@camdenblatchly/easy-d3-annotate","version":"1.0.2","description":"Easily add annotations to d3 SVG graphics","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/camdenblatchly/easy-d3-annotate.git"},"keywords":["d3","annotation"],"author":{"name":"Camden Blatchly"},"license":"ISC","bugs":{"url":"https://github.com/camdenblatchly/easy-d3-annotate/issues"},"homepage":"https://github.com/camdenblatchly/easy-d3-annotate#readme","dependencies":{"d3":"^7.8.5"},"_id":"@camdenblatchly/easy-d3-annotate@1.0.2","gitHead":"728bc1c7ba88dda994fe38e6cb2c64ae2cf856c4","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-3iSX+ZZh/FzsHNd/Yz+TA840+Pm0x82Dei3j8iGtJYlT3TdbANy+VdkXXEt+k5Jn3/SyNnO2H4bzbe95r44Dgw==","shasum":"a6ff71c54cb1103ec39d788898f1e477e58f6488","tarball":"https://registry.npmjs.org/@camdenblatchly/easy-d3-annotate/-/easy-d3-annotate-1.0.2.tgz","fileCount":6,"unpackedSize":15549,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsIJFo8ElxcgDUQiGV+DbVNvEHASgh8ASwyCjxDPPY2wIgN/AUNc+juJDYBp9xz35Oa2a2wRiRFln0JEHSLT6IZWg="}]},"_npmUser":{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"},"directories":{},"maintainers":[{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-d3-annotate_1.0.2_1692328917959_0.740614655418083"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-18T03:06:44.217Z","1.0.0":"2023-08-18T03:06:44.522Z","modified":"2023-08-18T03:21:58.510Z","1.0.1":"2023-08-18T03:12:00.907Z","1.0.2":"2023-08-18T03:21:58.315Z"},"maintainers":[{"name":"camdenblatchly","email":"camdenblatchly@gmail.com"}],"description":"Easily add annotations to d3 SVG graphics","homepage":"https://github.com/camdenblatchly/easy-d3-annotate#readme","keywords":["d3","annotation"],"repository":{"type":"git","url":"git+https://github.com/camdenblatchly/easy-d3-annotate.git"},"author":{"name":"Camden Blatchly"},"bugs":{"url":"https://github.com/camdenblatchly/easy-d3-annotate/issues"},"license":"ISC","readme":"# easy-d3-annotate\nSimple annotations for d3 graphics\n\n## [Demo and documentation](https://camdenblatchly.github.io/easy-d3-annotate/)\n\n### Quick Setup\n\nInclude [d3](https://d3js.org/) before including your annotation script.\n\nTo add `easy-d3-annotate` as a node module run `npm i @camdenblatchly/easy-d3-annotate`.\n\nHere is an example of an annotation definition:\n\n```\nlet annotation = {\n    note: \"Boston, MA\", // Whatever you want your note to say. Accepts HTML.\n    data: [ \n      // The coordinates of the annotation subject go first\n      { x: +x(max_cty.pct_ba_higher), y: y(+max_cty.pci) }, \n      // You can optionally define an intermediary point for the line to pass through\n      { x: x(0.4), y: y(45000) }, \n      // The coordinates of the annotation note go last\n      { x: x(0.42), y: y(35000) }, \n    ], \n    width: 100,\n    height: 55, \n    // You can optionally specify an id for CSS styling\n    id: 'max-anno',\n    // Or a class\n    class: 'annotation',\n    // Use arrow_offset to offset the position of the arrow from its subject\n    arrow_offset: { x: 0, y: dot_radius * 1.5 }, \n    // Specify where the line should connect to the note\n    line_start: 'top', \n    // Lines can either have linear (straight) or normal (swoopy) curves \n    curve_type: 'normal'\n  }\n```    \n\nYou can then add your annotation by running `svg.call(addAnnotation, annotation)` at the end of your script.\n","readmeFilename":"README.md"}