{"_id":"@anacouto/superset-chart-doughnut","name":"@anacouto/superset-chart-doughnut","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anacouto/superset-chart-doughnut","version":"0.1.0","description":"Pie chart to BVS","sideEffects":false,"main":"lib/index.js","module":"esm/index.js","scripts":{"build":"npm run build-cjs && npm run build-esm && npm run ts-types","build-cjs":"babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir lib","build-clean":"npm run clean && npm run build","build-esm":"BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir esm","dev":"BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --watch --copy-files --out-dir esm","prebuild":"rimraf {lib,esm,tsconfig.tsbuildinfo}","postbuild":"npm run test","ts-types":"tsc --build","test":"jest"},"author":{"name":"My Name"},"license":"Apache-2.0","publishConfig":{"access":"public"},"dependencies":{"@ant-design/charts":"^1.3.2","chart.js":"^4.4.0","process":"^0.11.10","react-chartjs-2":"^5.2.0"},"peerDependencies":{"@superset-ui/chart-controls":"*","@superset-ui/core":"*","react":"^16.13.1"},"devDependencies":{"@airbnb/config-babel":"^2.0.1","@babel/cli":"^7.16.0","@types/jest":"^26.0.4","jest":"^26.6.3","rimraf":"^3.0.2","typescript":"^4.1.2"},"types":"./lib/index.d.ts","_id":"@anacouto/superset-chart-doughnut@0.1.0","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-EKKBFrcRFQunlwPy0aLiRt6y03n7yhF+Swyrq/tCuUxipbY8ed5QC9zLK39PDc0WK9O4EmOp9jlIhekmgzln+Q==","shasum":"7d87fb373d4702bf543a86698e2eb7c3974eb7b7","tarball":"https://registry.npmjs.org/@anacouto/superset-chart-doughnut/-/superset-chart-doughnut-0.1.0.tgz","fileCount":33,"unpackedSize":57833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFm0ONJzdIXcI7Q30iaoBnQBSJFXWJPGGaG7Lp/KswdAiEA9jeJp6BoQFIuoeSxUpZUnOKFZ64Jy9TzK5a7oJ85ChE="}]},"_npmUser":{"name":"poowerllz","email":"safilhoelzevirsafilho@gmail.com"},"directories":{},"maintainers":[{"name":"poowerllz","email":"safilhoelzevirsafilho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/superset-chart-doughnut_0.1.0_1697927452374_0.8188751770545926"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-21T22:30:52.289Z","0.1.0":"2023-10-21T22:30:52.618Z","modified":"2023-10-21T22:30:52.876Z"},"maintainers":[{"name":"poowerllz","email":"safilhoelzevirsafilho@gmail.com"}],"description":"Pie chart to BVS","author":{"name":"My Name"},"license":"Apache-2.0","readme":"# piechart-bvs\n\nThis is the Pie chart to BVS Superset Chart Plugin.\n\n### Usage\n\nTo build the plugin, run the following commands:\n\n```\nnpm ci\nnpm run build\n```\n\nAlternatively, to run the plugin in development mode (=rebuilding whenever changes are made), start the dev server with the following command:\n\n```\nnpm run dev\n```\n\nTo add the package to Superset, go to the `superset-frontend` subdirectory in your Superset source folder (assuming both the `piechart-bvs` plugin and `superset` repos are in the same root directory) and run\n```\nnpm i -S ../../piechart-bvs\n```\n\nIf your Superset plugin exists in the `superset-frontend` directory and you wish to resolve TypeScript errors about `@superset-ui/core` not being resolved correctly, add the following to your `tsconfig.json` file:\n\n```\n\"references\": [\n  {\n    \"path\": \"../../packages/superset-ui-chart-controls\"\n  },\n  {\n    \"path\": \"../../packages/superset-ui-core\"\n  }\n]\n```\n\nYou may also wish to add the following to the `include` array in `tsconfig.json` to make Superset types available to your plugin:\n\n```\n\"../../types/**/*\"\n```\n\nFinally, if you wish to ensure your plugin `tsconfig.json` is aligned with the root Superset project, you may add the following to your `tsconfig.json` file:\n\n```\n\"extends\": \"../../tsconfig.json\",\n```\n\nAfter this edit the `superset-frontend/src/visualizations/presets/MainPreset.js` and make the following changes:\n\n```js\nimport { PiechartBvs } from 'piechart-bvs';\n```\n\nto import the plugin and later add the following to the array that's passed to the `plugins` property:\n```js\nnew PiechartBvs().configure({ key: 'piechart-bvs' }),\n```\n\nAfter that the plugin should show up when you run Superset, e.g. the development server:\n\n```\nnpm run dev-server\n```\n","readmeFilename":"README.md"}