# react-native-skia-charts **Repository Path**: omiomi/react-native-skia-charts ## Basic Information - **Project Name**: react-native-skia-charts - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: feature/bar-charts-refactoring - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-07 - **Last Updated**: 2025-01-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-skia-charts **High-performance charts for react-native** 🚀 [![npm version](https://img.shields.io/npm/v/react-native-skia-charts.svg?style=flat)](https://www.npmjs.com/package/react-native-skia-charts) ### This library is under development and is not ready for production use. Yet. # Example
Clone the repo and run one of the following commands to run the example app: ```js npm run example:ios ``` or ```js npm run example:android ``` ## Installation
npm install d3-scale
npm install d3-shape
npm install d3-array
npm install dayjs
npm install react-native-reanimated
npm install react-native-gesture-handler
npm install @shopify/react-native-skia
npm install react-native-skia-charts
## Usage ```jsx import { LineChart, StackedBarChart } from 'react-native-skia-charts'; // ... // ... ``` ## Configuration props ### `datasets` (required) The data to be displayed in the chart. The data should be an array of objects with a `date` and `value` properties. ### `fontFile` (required) A font file to be used in the chart. Example: `require("../assets/fonts/Roboto-Regular.ttf")` ### `startDate` If not provided, `startDate` will be calculated from `data` prop. ### `endDate` If not provided, `endDate` will be calculated from `data` prop. ### `onTouchStart` ### `onTouchEnd` ### `fontSize` ### `chartColor` ### `yAxisMax` ### `tension` ### `labelsColor` ### `paddingVertical` ### `paddingHorizontal` ### `tooltip` ## Chart types - Line chart (draft state) - Tooltip (draft state) - Bar chart (draft state) - Stacked Bar chart (draft state) - Multiple lines chart (todo) - Donut chart (todo) ## Contributing See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. ## License MIT ### Contact me ryabinin.dev@gmail.com --- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)