0.0.60 • Published 1 year ago

react-native-skia-charts v0.0.60

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-skia-charts

High-performance charts for react-native 🚀
npm version

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:

npm run example:ios

or

npm run example:android

Installation

Usage

import { LineChart, StackedBarChart } from 'react-native-skia-charts';
// ...
<LineChart
  datasets={[{
    label: 'Default line',
    color: '#DE5C9D',
    data: [
      {
        x: '2020-01-02',
        y: 10,
      },
      {
        x: '2020-01-03',
        y: 20,
      },
      ...
    ],
  }]}
  fontFile={require("../assets/fonts/Roboto-Regular.ttf")}
/>

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 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

0.0.44

1 year ago

0.0.45

1 year ago

0.0.46

1 year ago

0.0.47

1 year ago

0.0.60

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.43

1 year ago

0.0.42

1 year ago

0.0.41

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

1.0.0

1 year ago