npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@avi99/rn-charts

v0.1.0

Published

react native chart library

Readme

@avi99/rn-charts

react native chart library

Installation

npm install @avi99/rn-charts

Usage

import { LineChart, type LineChartProps } from '@avi99/rn-charts';

const lineChartData: LineChartProps = {
    title: "Profit/Loss (Thousands)",
    data : [
      {
        name: "Kandy",
        points: [
          { label: 'January', value: 0 },
          { label: 'February', value: 10 },
          { label: 'March', value: 40 },
          { label: 'April', value: 30 },
          { label: 'May', value: -40 },
          { label: 'June', value: 60 },
          { label: 'July', value: 100 },
          { label: 'August', value: 98 },
          { label: 'September', value: 130 },
          { label: 'October', value: 13 },
          { label: 'November', value: 160 },
          { label: 'December', value: 160 }
        ]
      },
      {
        name: "Gampaha",
        points: [
          { label: 'January', value:120 },
          { label: 'February', value: 150 },
          { label: 'March', value: 140 },
          { label: 'April', value: 70 },
          { label: 'May', value: -90 },
          { label: 'June', value: 60 },
          { label: 'July', value: 110 },
          { label: 'August', value: 45 },
          { label: 'September', value: 546 },
          { label: 'October', value: 13 },
          { label: 'November', value: 160 },
          { label: 'December', value: 160 }
        ]
      }
    ]
  };

<LineChart {...lineChartData} />

4.Components

Line Chart

import { LineChart, type LineChartProps } from '@avi99/rn-charts';

const lineChartData: LineChartProps = {
    title: "Profit/Loss (Thousands)",
    data : [
      {
        name: "Kandy",
        points: [
          { label: 'January', value: 0 },
          { label: 'February', value: 10 },
          { label: 'March', value: 40 },
          { label: 'April', value: 30 },
          { label: 'May', value: -40 },
          { label: 'June', value: 60 },
          { label: 'July', value: 100 },
          { label: 'August', value: 98 },
          { label: 'September', value: 130 },
          { label: 'October', value: 13 },
          { label: 'November', value: 160 },
          { label: 'December', value: 160 }
        ]
      },
      {
        name: "Gampaha",
        points: [
          { label: 'January', value:120 },
          { label: 'February', value: 150 },
          { label: 'March', value: 140 },
          { label: 'April', value: 70 },
          { label: 'May', value: -90 },
          { label: 'June', value: 60 },
          { label: 'July', value: 110 },
          { label: 'August', value: 45 },
          { label: 'September', value: 546 },
          { label: 'October', value: 13 },
          { label: 'November', value: 160 },
          { label: 'December', value: 160 }
        ]
      }
    ]
  };

<LineChart {...lineChartData} />

Bar Chart

import { BarChart, type BarChartProps } from '@avi99/rn-charts';

const barChartData: BarChartProps = {
    title: "Car Sales (June 2025)",
    data: [
      { label: 'Kandy', value: 147 },
      { label: 'Galle', value: 346 },
      { label: 'Colombo', value: 440 },
      { label: 'Matara', value: 399 },
      { label: 'Hambantota', value: 500 },
      { label: 'Nuwara Eliya', value: 60 },
      { label: 'Anuradhapura', value: 100 },
      { label: 'Jaffna', value: 98 },
      { label: 'Trincomalee', value: 600 },
      { label: 'Batticaloa', value: 253 },
      { label: 'Polonnaruwa', value: 160 },
      { label: 'Vavuniya', value: 100 },
      { label: 'Mannar', value: 98 },
      { label: 'Mulathivu', value: 130 },
      { label: 'Kilinochchi', value: 245 },
      { label: 'Ampara', value: 160 }
    ],
  };


<BarChart {...barChartData} />

Nightingale Chart

import { NightingaleChart, type PieChartProps } from '@avi99/rn-charts';

const nightingaleChartData: PieChartProps = {
    title: "Car Sales (June 2025)",
    data: [
      { label: 'Kandy', value: 147 },
      { label: 'Galle', value: 346 },
      { label: 'Colombo', value: 440 },
      { label: 'Matara', value: 399 },
      { label: 'Hambantota', value: 500 },
      { label: 'Nuwara Eliya', value: 60 },
      { label: 'Anuradhapura', value: 100 },
      { label: 'Jaffna', value: 98 },
      { label: 'Trincomalee', value: 600 },
      { label: 'Batticaloa', value: 253 },
      { label: 'Polonnaruwa', value: 160 },
      { label: 'Vavuniya', value: 100 },
      { label: 'Mannar', value: 98 },
      { label: 'Mulathivu', value: 130 },
      { label: 'Kilinochchi', value: 245 },
      { label: 'Ampara', value: 160 }
    ],
  };


<NightingaleChart {...nightingaleChartData} />

Pie Chart

import { PieChart, type PieChartProps } from '@avi99/rn-charts';

const pieChartData: PieChartProps = {
    title: "Car Sales (June 2025)",
    data: [
      { label: 'Kandy', value: 147 },
      { label: 'Galle', value: 346 },
      { label: 'Colombo', value: 440 },
      { label: 'Matara', value: 399 },
      { label: 'Hambantota', value: 500 },
      { label: 'Nuwara Eliya', value: 60 },
      { label: 'Anuradhapura', value: 100 },
      { label: 'Jaffna', value: 98 },
      { label: 'Trincomalee', value: 600 },
      { label: 'Batticaloa', value: 253 },
      { label: 'Polonnaruwa', value: 160 },
      { label: 'Vavuniya', value: 100 },
      { label: 'Mannar', value: 98 },
      { label: 'Mulathivu', value: 130 },
      { label: 'Kilinochchi', value: 245 },
      { label: 'Ampara', value: 160 }
    ],
  };


<PieChart {...pieChartData} />

Population Chart

import { PopulationChart, type PopulationChartProps } from '@avi99/rn-charts';

const populationData: PopulationChartProps = {
    chartTitle: "Population Distribution by Age - 2025",
    leftLabel: "Male Population",
    rightLabel: "Female Population",
    data: [
      { category: "0-9", leftValue: 4200, rightValue: 4000 },
      { category: "10-19", leftValue: 3900, rightValue: 4100 },
      { category: "20-29", leftValue: 4500, rightValue: 4500 },
      { category: "30-39", leftValue: 4300, rightValue: 4400 },
      { category: "40-49", leftValue: 3800, rightValue: 4000 },
      { category: "50-59", leftValue: 3100, rightValue: 3300 },
      { category: "60-69", leftValue: 2500, rightValue: 2700 },
      { category: "70-79", leftValue: 1800, rightValue: 2000 },
      { category: "80+", leftValue: 900, rightValue: 1200 },
    ],
  };


<PopulationChart {...populationData} />

Column Chart

import { ColumnChart, type BarChartProps } from '@avi99/rn-charts';

const columnChartData: BarChartProps = {
    title: "Car Sales (June 2025)",
    data: [
      { label: 'Kandy', value: 147 },
      { label: 'Galle', value: 346 },
      { label: 'Colombo', value: 440 },
      { label: 'Matara', value: 399 },
      { label: 'Hambantota', value: 500 },
      { label: 'Nuwara Eliya', value: 60 },
      { label: 'Anuradhapura', value: 100 },
      { label: 'Jaffna', value: 98 },
      { label: 'Trincomalee', value: 600 },
      { label: 'Batticaloa', value: 253 },
      { label: 'Polonnaruwa', value: 160 },
      { label: 'Vavuniya', value: 100 },
      { label: 'Mannar', value: 98 },
      { label: 'Mulathivu', value: 130 },
      { label: 'Kilinochchi', value: 245 },
      { label: 'Ampara', value: 160 }
    ],
  };


<ColumnChart {...columnChartData} />

Circular Bar Chart

import { CircularBarChart, type BarChartProps } from '@avi99/rn-charts';

const circularChartData: BarChartProps = {
    title: "Car Sales (June 2025)",
    data: [
      { label: 'Kandy', value: 147 },
      { label: 'Galle', value: 346 },
      { label: 'Colombo', value: 440 },
      { label: 'Matara', value: 399 },
      { label: 'Hambantota', value: 500 },
      { label: 'Nuwara Eliya', value: 60 },
      { label: 'Anuradhapura', value: 100 },
      { label: 'Jaffna', value: 98 },
      { label: 'Trincomalee', value: 600 },
      { label: 'Batticaloa', value: 253 },
      { label: 'Polonnaruwa', value: 160 },
      { label: 'Vavuniya', value: 100 },
      { label: 'Mannar', value: 98 },
      { label: 'Mulathivu', value: 130 },
      { label: 'Kilinochchi', value: 245 },
      { label: 'Ampara', value: 160 }
    ],
  };


<CircularBarChart {...circularChartData} />

Slope Chart

import { SlopeChart, type SlopeChartProps } from '@avi99/rn-charts';

const slopeChartData: SlopeChartProps = {
    title: "Sales Comparison",
    label_1: "2020 Sales",
    label_2: "2024 Sales",
    values: [
      {
        y1: 120, y2: 180, label: 'Honda civic' },
      { y1: 200, y2: 150, label: 'Nissan leaf' },
      { y1: 80, y2: 130, label: 'Toyota yaris' }, 
      { y1: 160, y2: 190, label: 'Mitsubishi lancer' }, 
      { y1: 100, y2: 90, label: 'Suzuki swift' }, 
    ],
  };

<SlopeChart {...slopeChartData} />

Lollipop Chart

import { LollipopChart, type LollipopChartProps } from '@avi99/rn-charts';

const lollipopChartData: LollipopChartProps = {
    name: "Monthly Sales",
    subtitle: "January to December",
    data: [
      { label: "January", value: 30 },
      { label: "February", value: 10 },
      { label: "March", value: 40 },
      { label: "April", value: 30 },
      { label: "May", value: 40 },
      { label: "June", value: 60 },
      { label: "July", value: 100 },
      { label: "August", value: 98 },
      { label: "September", value: 65 },
      { label: "October", value: 13 },
      { label: "November", value: 58 },
      { label: "December", value: 65 }
    ],
  };

<LollipopChart {...lollipopChartData} />

Contributing

License

MIT


Made with create-react-native-library