{"_id":"@adrian-sureshkumar/d3-donut-3d","_rev":"2-4bf7b6a95d3f0e54bd6ae75658ca08f4","name":"@adrian-sureshkumar/d3-donut-3d","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@adrian-sureshkumar/d3-donut-3d","version":"1.0.0","description":"Library for rendering 3D donut charts with D3 using X3DOM.","main":"lib/index.js","scripts":{"clean":"npm run clean:build && npm run clean:examples","clean:build":"rimraf lib","clean:examples":"rimraf examples/**/*.bundle.js","prebuild":"npm run clean:build","build":"tsc --project tsconfig.build.json","bundle:examples":"browserify -p tinyify examples/donut-3d-example.js -o examples/donut-3d-example.bundle.js","prepack":"npm run build","test":"jest","test:watch":"npm run test -- --watch","type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch"},"repository":{"type":"git","url":"git+https://github.com/adrian-sureshkumar/d3-donut-3d.git"},"keywords":["3d","chart","d3","donut","dougnut","x3d"],"author":{"name":"Adrian Sureshkumar","email":"npm@adrian-sureshkumar.com"},"license":"MIT","bugs":{"url":"https://github.com/adrian-sureshkumar/d3-donut-3d/issues"},"homepage":"https://github.com/adrian-sureshkumar/d3-donut-3d#readme","devDependencies":{"@types/faker":"^4.1.5","@types/jest":"^24.0.17","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","browserify":"^16.5.0","eslint":"^6.1.0","faker":"^4.1.0","jest":"^24.9.0","rimraf":"^3.0.0","tinyify":"^2.5.1","ts-jest":"^24.0.2","typescript":"^3.5.3"},"dependencies":{"@types/d3":"^5.7.2","d3":"^5.9.7"},"eslintConfig":{"parserOptions":{"ecmaVersion":2015},"env":{"es6":true},"overrides":[{"files":["*.ts"],"parser":"@typescript-eslint/parser","parserOptions":{"project":"./tsconfig.eslint.json"},"plugins":["@typescript-eslint"],"extends":["plugin:@typescript-eslint/recommended"],"rules":{"@typescript-eslint/no-use-before-define":["error",{"functions":false}]}}]},"eslintIgnore":["lib/**/*","examples/**/*.bundle.js"],"jest":{"preset":"ts-jest","rootDir":"src"},"gitHead":"9a4fe4505c19b5d1eba4564cc8628b2b2000f8e2","_id":"@adrian-sureshkumar/d3-donut-3d@1.0.0","_nodeVersion":"10.16.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-bQdsh93csG12FD8IV5xocqUryFgkc96JUc4aNxmYsajAte4ryPXWjv6mkGvCdUuBaKGft+dPUuW/r/YPc58YAQ==","shasum":"a419148a2f74c9d7aebec976303d67230deebc96","tarball":"https://registry.npmjs.org/@adrian-sureshkumar/d3-donut-3d/-/d3-donut-3d-1.0.0.tgz","fileCount":11,"unpackedSize":15332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJde5mVCRA9TVsSAnZWagAAbNoP/j9gZ9J/l2AgGnrfbyIs\ncnctTyCSbrLaGBrP/ViBnZL0zZfn8xjb2SCT84341XAu33qIO1inNAr7tm0u\nK5d6HXazKeLjnqhdIxnWE763kXDhsDuJdzWWRf3/UFlybo81lEzMU6B9zPts\nHZXXKZu4lygPdTsqH33uJGZwTxvWPwdiMEn+ntSoGDdWEsrPc4x94yGVUVSQ\n7lyCEMiWfbhpCDmd5H0T9ILEK+e0DJs1YA3u9DL5H9hZVls9xG8P9lDqhRmU\n7huhlcnrxCCHYha0jUWtZneqqt1Ne5D48BsTvbNhvG2Umm6lfAhSR6zQ+K+r\nzD9G7MY1/i5iUGhqcx+B7nW5CX+W3RCjNf6fvFnradDAWWDZLrawhlPWORP6\nnGqokLYQOD7ynLShar2r1LUMXgv4wzH0a+UnFtwrvlxiCsRlyN1IzB+3Em2D\n4zctiwAnsPOFgxkB93VlPJIuJ6wr7nAxsDpUxnOvoEwU2j/DMQTAZf01oBDG\n3+Fcg4U4IMETw9/uM98mMUNtBlEtC7NkIHB7wpXG1ylaJkyhJ8csgg2hCfNS\na9y0D3HpM5v9RaU4yVxZcjPj4tPsovRpgV2T3Mz/hjr2eS0YhJPXpFdOBhgE\nOGpE4RUuz6U8AdfC6fG4b9fBRCehiPAmWKop1X1CkrWqWb8ALD+mazA8c1zQ\nEX9y\r\n=Nr1d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpCIejv3EndfwznS1FZTHgWZValV9yEFUgSvHZudsnUAiAA6OuLW/As7IPwWiaNqQqF9Dm5M26RoGLheKBE/5+Z0g=="}]},"maintainers":[{"name":"adrian-sureshkumar","email":"npm@adrian-sureshkumar.com"}],"_npmUser":{"name":"adrian-sureshkumar","email":"npm@adrian-sureshkumar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-donut-3d_1.0.0_1568381333318_0.7184776462632121"},"_hasShrinkwrap":false},"1.0.1":{"name":"@adrian-sureshkumar/d3-donut-3d","version":"1.0.1","description":"Library for rendering 3D donut charts with D3 using X3DOM.","main":"lib/index.js","scripts":{"clean":"npm run clean:build && npm run clean:examples","clean:build":"rimraf lib","clean:examples":"rimraf examples/**/*.bundle.js","prebuild":"npm run clean:build","build":"tsc --project tsconfig.build.json","bundle:examples":"browserify -p tinyify examples/donut-3d-example.js -o examples/donut-3d-example.bundle.js","prepack":"npm run build","test":"jest","test:watch":"npm run test -- --watch","type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch"},"repository":{"type":"git","url":"git+https://github.com/adrian-sureshkumar/d3-donut-3d.git"},"keywords":["3d","chart","d3","donut","dougnut","x3d"],"author":{"name":"Adrian Sureshkumar","email":"npm@adrian-sureshkumar.com"},"license":"MIT","bugs":{"url":"https://github.com/adrian-sureshkumar/d3-donut-3d/issues"},"homepage":"https://github.com/adrian-sureshkumar/d3-donut-3d#readme","devDependencies":{"@types/faker":"^4.1.5","@types/jest":"^24.0.17","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","browserify":"^16.5.0","eslint":"^6.1.0","faker":"^4.1.0","jest":"^24.9.0","rimraf":"^3.0.0","tinyify":"^2.5.1","ts-jest":"^24.0.2","typescript":"^3.5.3"},"dependencies":{"@types/d3":"^5.7.2","d3":"^5.9.7"},"eslintConfig":{"parserOptions":{"ecmaVersion":2015},"env":{"es6":true},"overrides":[{"files":["*.ts"],"parser":"@typescript-eslint/parser","parserOptions":{"project":"./tsconfig.eslint.json"},"plugins":["@typescript-eslint"],"extends":["plugin:@typescript-eslint/recommended"],"rules":{"@typescript-eslint/no-use-before-define":["error",{"functions":false}]}}]},"eslintIgnore":["lib/**/*","examples/**/*.bundle.js"],"jest":{"preset":"ts-jest","rootDir":"src"},"gitHead":"628f1869207d3c5fb3f470930d5eea88c97b2d74","_id":"@adrian-sureshkumar/d3-donut-3d@1.0.1","_nodeVersion":"10.16.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-DJH8jQynaQmnKM1ImDmCU+n3W8CFYRbJu+Ik5PSrK6cmYGCK3nLOYoizOgfzIo6g6LHouqjYhckLA98YGvRm5w==","shasum":"e07babca4184904335f1c797a2d7c6b9006b1006","tarball":"https://registry.npmjs.org/@adrian-sureshkumar/d3-donut-3d/-/d3-donut-3d-1.0.1.tgz","fileCount":11,"unpackedSize":15350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJde5qpCRA9TVsSAnZWagAAen4P/jTjrmnlLecse4+TqDFw\nf/2P+Dgd/IvEei82ZXZhn0E6nRXW2A5ZLIuesOzSowRA8rLOUe4ALwbk9LDi\nv2eyWXI8LVGvUVLK3e3ztAUu2iYfCzIEGqZ04uJpAu6IeLS0g0BTg3Lutaii\nmEy2dIR0C76py+8YLAi67OiQBvHbms6bT6Wx8+6tjDh+CQsOOuBCx3w+brd3\nSpxoKGRgEqnOHmMFo6/OmI0nz6b/3GKQwMaM0DBqJW8n/2WlhQ7opBoaPS8H\nQbNUAjsL5PPFpxUJbujnHscs28HF2XWEv7vCihOPvpc+BKisSTs5LBxNW07d\niDprBMvNkUQyDN+nZ4WffFxw9OEW66VVPo+6EPQhRPiM9eEbzh3/dIU4qMWX\nFD+0wzNCWR/vgi2oA1i9zhNR89WOawGPmIfqGfmv28WmISVe7lRDHQXf73pu\nJL9c1YL9oE2MDFT89rC2Vw341WDx2aLEjjIAXCl+OI3ygdDobU6MQ2+MTxoo\n8ejzaGPiEo7aYnsQ33igY25YE2uOLlOQYHS9ZuJ2q9oQeLCMyBqFpwngtrzk\nI4z7Yoj0lX7gsqXuDlSzQofMyUXNEWKpVbt65x33cVwFRiCK8zsgqzKCDfyd\nIB3SVvtv9vGsFId2f+tsn8NWLsqE9gofuv9t984hPO4tqAsFIeQ9yrmBP2l8\n0Prx\r\n=AQZv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDy+8FNp6F6bpM8jYq08LkM56Yg2qzsHAE9bEolVtSwSAiEA4hAQFttY6jkCatjtvAkydW1NpdOX8EUU8evUDHvIcIk="}]},"maintainers":[{"name":"adrian-sureshkumar","email":"npm@adrian-sureshkumar.com"}],"_npmUser":{"name":"adrian-sureshkumar","email":"npm@adrian-sureshkumar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-donut-3d_1.0.1_1568381608655_0.5189244992848121"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-13T13:28:53.088Z","1.0.0":"2019-09-13T13:28:53.428Z","modified":"2022-04-04T11:37:06.051Z","1.0.1":"2019-09-13T13:33:28.825Z"},"maintainers":[{"name":"adrian-sureshkumar","email":"npm@adrian-sureshkumar.com"}],"description":"Library for rendering 3D donut charts with D3 using X3DOM.","homepage":"https://github.com/adrian-sureshkumar/d3-donut-3d#readme","keywords":["3d","chart","d3","donut","dougnut","x3d"],"repository":{"type":"git","url":"git+https://github.com/adrian-sureshkumar/d3-donut-3d.git"},"author":{"name":"Adrian Sureshkumar","email":"npm@adrian-sureshkumar.com"},"bugs":{"url":"https://github.com/adrian-sureshkumar/d3-donut-3d/issues"},"license":"MIT","readme":"# d3-donut-3d\r\nLibrary for rendering 3D donut charts with [D3](https://d3js.org/) using [X3DOM](https://www.x3dom.org/).\r\n\r\n## Getting Started\r\n\r\nInstall with npm: `npm install @adrian-sureshkumar/d3-donut-3d`\r\n\r\nInclude [X3DOM](https://www.x3dom.org/) in the head of your HTML:\r\n\r\n```\r\n<script src=\"http://www.x3dom.org/release/x3dom.js\"></script>\r\n<link rel=\"stylesheet\" href=\"http://www.x3dom.org/release/x3dom.css\">\r\n```\r\n\r\nInclude `donutChart3d` in your JavaScript code:\r\n\r\n```\r\n// CommonJS module syntax\r\nconst { donutChart3d } = require(\"@adrian-sureshkumar/d3-donut-3d\");\r\n\r\n// ES module syntax\r\nimport { donutChart3d } from \"@adrian-sureshkumar/d3-donut-3d\";\r\n```\r\n\r\nConfigure chart using `donutChart3d`:\r\n\r\n```\r\nconst chart = donutChart3d();\r\n\r\n// Series data\r\nconst data = [{\r\n    color: \"red\",\r\n    name: \"Red Series\",\r\n    value: 1\r\n}, {\r\n    color: \"rgb(0, 255, 0)\",\r\n    name: \"Green Series\",\r\n    value: 2\r\n}, {\r\n    color: d3.rgb(0, 0, 255),\r\n    name: \"Blue Series\",\r\n    value: 3\r\n}];\r\n\r\nchart.data(data);\r\n\r\n// Label format\r\n// - Defaults to showing no labels when not specified.\r\n// - Return an empty string to hide label for a particular series.\r\nfunction labelFormat(name, value, percentage) {\r\n    // e.g. Red Series: 1 (16.7%)\r\n    return `${name}: ${value} (${percentage.toFixed(1)}%)`\r\n}\r\n\r\nchart.labelFormat(labelFormat);\r\n\r\n// Duration of transition animations when data is updated\r\n// - Defaults to the D3 transition default when not specified.\r\n// - Can be set to 0 to disable animation.\r\nchart.transitionDuration(500)\r\n\r\n// Height and width\r\nchart.height(\"100%\")\r\nchart.width(\"100%\");\r\n```\r\n\r\nApply chart to a selection:\r\n\r\n```\r\nselection.call(chart);\r\n```\r\n\r\n## Building Examples\r\n\r\nClone the git repository:\r\n\r\n~~~\r\ngit clone https://github.com/adrian-sureshkumar/d3-donut-3d.git\r\n~~~\r\n\r\nInstall dependencies:\r\n\r\n~~~\r\nnpm install\r\n~~~\r\n\r\nBuild the code:\r\n\r\n~~~\r\nnpm run build\r\n~~~\r\n\r\nCreate JavaScript bundles for the examples:\r\n\r\n~~~\r\nnpm run bundle:examples\r\n~~~","readmeFilename":"README.md"}