{"_id":"@chencheng0924/react-native-gifted-charts","name":"@chencheng0924/react-native-gifted-charts","dist-tags":{"latest":"1.3.11"},"versions":{"1.3.11":{"name":"@chencheng0924/react-native-gifted-charts","version":"1.3.11","description":"The most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.","main":"src/index.tsx","scripts":{"android":"react-native run-android","ios":"react-native run-ios","start":"react-native start","test":"jest","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts.git"},"author":{"name":"Abhinandan Kushwaha","email":"kushabhi5@gmail.com","url":"https://github.com/Abhinandan-Kushwaha"},"license":"MIT","bugs":{"url":"https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues"},"homepage":"https://gifted-charts.web.app/","publishConfig":{"registry":"https://registry.npmjs.org/"},"dependencies":{},"devDependencies":{"@babel/core":"^7.22.5","@babel/runtime":"^7.22.5","@react-native-community/eslint-config":"^3.2.0","@types/jest":"^29.5.2","@types/node":"^20.3.3","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/react-native":"^0.72.2","babel-jest":"^29.5.0","eslint":"^8.44.0","jest":"^29.5.0","metro-react-native-babel-preset":"^0.76.7","react-test-renderer":"18.2.0","ts-jest":"^29.1.1","typescript":"^5.1.6"},"peerDependencies":{"react":"*","react-native":"*","react-native-linear-gradient":"*","react-native-svg":"*"},"keywords":["chart","charts","graph","data visualization","bar","pie","donut","area","line","react","react native","react-native"],"_id":"@chencheng0924/react-native-gifted-charts@1.3.11","gitHead":"0fccb606c2cf577dc9e403e63796cd1ef0d44d50","_nodeVersion":"16.9.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-IED1TeZnVa2Tlwh4XVQY0+Jp8OQtnQxApaZrRRUS+dvH0dvYJBSZo3rU7wqE38JWwI7FMNR/y2YQVOg/R0oLeg==","shasum":"a7d1afc5e962fc08f7ccce7a797ac65c4f973d48","tarball":"https://registry.npmjs.org/@chencheng0924/react-native-gifted-charts/-/react-native-gifted-charts-1.3.11.tgz","fileCount":31,"unpackedSize":356537,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCan3qIeC7Qk/G8BhChhjGtrCECWi9PM+YzWhmIpBdgmwIgN+148PoCfz86C9wgOeldmBCBJlrb2KuUTQbIrcka5rg="}]},"_npmUser":{"name":"chencheng0924","email":"abs255667@gmail.com"},"directories":{},"maintainers":[{"name":"chencheng0924","email":"abs255667@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gifted-charts_1.3.11_1697622995855_0.44882716682348334"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-18T09:56:35.769Z","1.3.11":"2023-10-18T09:56:36.058Z","modified":"2023-10-18T09:56:36.333Z"},"maintainers":[{"name":"chencheng0924","email":"abs255667@gmail.com"}],"description":"The most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.","homepage":"https://gifted-charts.web.app/","keywords":["chart","charts","graph","data visualization","bar","pie","donut","area","line","react","react native","react-native"],"repository":{"type":"git","url":"git+https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts.git"},"author":{"name":"Abhinandan Kushwaha","email":"kushabhi5@gmail.com","url":"https://github.com/Abhinandan-Kushwaha"},"bugs":{"url":"https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues"},"license":"MIT","readme":"# react-native-gifted-charts [![Rate on Openbase](https://badges.openbase.com/js/rating/react-native-gifted-charts.svg)](https://openbase.com/js/react-native-gifted-charts?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)\n\nThe most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.\n\n### Yet another chart library? Why?\n\n**_To bring Life to your data_**\n\n1. Plenty of features with minimal code\n2. Apply animations to your charts on load and on value change, just by adding a prop\n3. Smooth animations implemented using LayoutAnimation\n4. Clickable and scrollable\n5. Three-D and gradient effects\n6. Fully customizable (see the [props](docs/docs.md))\n7. Detailed [documentation](https://gifted-charts.web.app/) with examples\n8. Support for **_combined_** Bar and Line charts\n\n**Alert:**\n\nThis library doesn't support web apps yet. Use this library if you are planning mobile first.</br>\nHowever, we are planning to add support for web which will be available soon.\n\n<img src='/demos/bars.png' alt=''/>\n<img src='/demos/lineArea.png' alt=''/>\n<img src='/demos/blues.png' alt=''/>\n<table>\n  <tr>\n    <td><img src='/demos/scrollLine.gif' alt='' width=320 height=280/></td>\n    <td><img src='/demos/animatedDataLine.gif' alt='' width=320 height=260/></td>\n  </tr>\n  \n  <tr>\n    <td><img src='/demos/movingBars.gif' alt='' width=270 height=300/></td>\n    <td><img src='/demos/pielabbelled.svg' alt='' height=280 width=270/></td>\n  </tr>\n</table>\n\n---\n\n## Installation\n```sh\nnpm install react-native-gifted-charts react-native-linear-gradient react-native-svg\n```\n\nFor iOS-\n\n```sh\ncd ios && pod install\n```\nPlease note that `react-native-svg` and `react-native-linear-gradient` are needed for the library to work, so make sure they are installed in your project.\n\n# Docs\n\n[Documentation and gallery](https://gifted-charts.web.app/)\n\n## Usage\n\nThe simplest usage of various types of charts can be done as below-\n\n```js\nimport { BarChart, LineChart, PieChart } from \"react-native-gifted-charts\";\n\n// ...\nconst data=[ {value:50}, {value:80}, {value:90}, {value:70} ]\n\n<BarChart data = {data} />\n<LineChart data = {data} />\n<PieChart data = {data} />\n\n// For Horizontal Bar chart, just add the prop horizontal to the <BarChart/> component\n\n<BarChart data = {data} horizontal />\n\n// For Area chart, just add the prop areaChart to the <LineChart/> component\n\n<LineChart data = {data} areaChart />\n\n// For Donut chart, just add the prop donut to the <PieChart/> component\n\n<PieChart data = {data} donut />\n```\n\n## Props tables\n\n**[1. BarChart, Horizontal BarChart and Stacked Bar Chart props](docs/BarChart/BarChartProps.md)** \\\n**[2. LineChart and AreaChart props](docs/LineChart/LineChartProps.md)** \\\n**[3. PieChart and DonutChart props](docs/PieChart/PieChartProps.md)**\n\n## Contributing\n\n_Dear developers_! Your small contribution can make someone's day 😊\n\nOne of the ways you can contribute is to address an [open issue](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues).\n\nSometimes people report issues which don't exist, or request for features which are already present. Such issues can be addressed without pushing any code to the repo. Just show them in the comments how to do it.\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## [Release notes 🎉](release-notes/release-notes.md)\n\n## Common issues\n\n| Issue                                                                                                                        | Solution                                                                                                                                                                    |\n| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| BarChart- [Value and section line don't match](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues/35) | [Comment](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues/35#issuecomment-972673281) by the owner                                                   |\n| Setting `height`, `maxValue`, `stepValue`, `stepHeight`, or `noOfSections` breaks the chart                                  | Please make sure that<br/> `maxValue = noOfSections * stepValue;` <br/>is followed. [See this](https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/issues/71) |\n\n## To-dos\n\n[To do list](./src/todos.md)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}