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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sio-group/ui-charts

v0.1.3

Published

![npm](https://img.shields.io/npm/v/@sio-group/ui-charts) ![TypeScript](https://img.shields.io/badge/types-Yes-brightgreen) [![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC)

Readme

@sio-group/ui-charts

npm TypeScript License: ISC

The charts package provides lightweight and composable data visualizations for dashboards, analytics interfaces and reporting tools.

All charts are:

  • 🎨 Themeable – supports semantic color tokens and custom CSS colors
  • Lightweight – pure React + SVG/CSS
  • Accessible – semantic labels and keyboard-safe rendering
  • 📦 TypeScript-first – fully typed APIs
  • 🧩 Composable – designed for design systems and dashboard layouts
  • 📱 Responsive – scales to container width

Installation

npm install @sio-group/ui-widgets

Peer dependencies

This package requires:

  • react ^19.0.0
  • react-dom ^19.0.0

Styling

Import the chart styles before using the components.

// All widget styling
import "@sio-group/ui-widgets/sio-widgets-style.css";

// Individual chart styles
import "@sio-group/ui-widgets/sio-bar-chart.css";
import "@sio-group/ui-widgets/sio-line-chart.css";
import "@sio-group/ui-widgets/sio-donut-chart.css";
import "@sio-group/ui-widgets/sio-gauge-chart.css";
import "@sio-group/ui-widgets/sio-stacked-bar.css";

Components

This package currently includes:

  • BarChart
  • DonutChart
  • GaugeChart
  • LineChart
  • StackedBar

BarChart

Displays vertical bar charts with support for:

  • simple bars
  • grouped bars
  • stacked bars

Example

import { BarChart } from "@sio-group/ui-widgets";

<BarChart 
    title="Participation" 
    labels={["Mon", "Tue", "Wed"]} 
    series={[
        {
            label: "Users", 
            values: [12, 18, 9], 
            color: "success"
        }
        ]}
/>

Variants

Simple

<BarChart variant="simple" />

Grouped

<BarChart variant="grouped" />

Stacked

<BarChart variant="stacked" />

BarChart API

| Prop | Type | Default | Description | |------------|------------------------------------------|---------|------------------------| | title | string | — | Optional chart title | | labels | string[] | — | X-axis labels | | series | BarSeries[] | — | Data series | | maxValue | number | auto | Fixed maximum Y-axis | | variant | "simple" | "grouped" | "stacked" | auto | Chart variant | | height | number | 140 | Chart height in px | | showValues | boolean | false | Displays values | | showLegend | boolean | true | Displays legend | | className | string | — | Additional CSS classes |


DonutChart

Displays proportional data distribution using circular SVG segments.


Example

import { DonutChart } from "@sio-group/ui-widgets";

<DonutChart 
    title="Status distribution" 
    slices={[
        { label: "Success", value: 72, color: "success" },
        { label: "Warning", value: 18, color: "warning" },
        { label: "Error", value: 10, color: "danger" },
    ]}
/>

DonutChart API

| Prop | Type | Default | Description | |----------------|-----------------|----------|------------------------| | title | string | — | Optional chart title | | slices | DonutSlice[] | — | Chart segments | | radius | number | 52 | Donut radius | | thickness | number | 18 | Ring thickness | | centerLabel | string | total | Center label | | centerSublabel | string | "totaal" | Center sublabel | | showLegend | boolean | true | Displays legend | | className | string | — | Additional CSS classes |


GaugeChart

Displays a semi-circular gauge with:

  • animated progress arc
  • directional needle
  • configurable ranges

Example

import { GaugeChart } from "@sio-group/ui-widgets";

<GaugeChart
    title="Wellbeing"
    value={72}
    min={0}
    max={100}
    color="success"
    unit="%"
/>

GaugeChart API

| Prop | Type | Default | Description | |-------------|--------------|-----------|------------------------| | title | string | — | Optional chart title | | value | number | — | Current value | | min | number | 0 | Minimum value | | max | number | 100 | Maximum value | | color | ColorValue | "default" | Gauge color | | unit | string | "" | Unit suffix | | centerLabel | string | computed | Custom center label | | size | number | 180 | SVG size | | thickness | number | 16 | Arc thickness | | className | string | — | Additional CSS classes |


LineChart

Displays responsive trend visualizations with support for:

  • multiple series
  • filled areas
  • interactive tooltips
  • grid lines
  • point markers

Example

import { LineChart } from "@sio-group/ui-widgets";

<LineChart
    title="Mood evolution"
    labels={["Mon", "Tue", "Wed", "Thu"]}
    minValue={0}
    maxValue={10}
    series={[
        {
        label: "Mood",
        values: [6, 7, 5, 8],
        color: "info",
        fill: true
        }
    ]}
/>

LineChart API

| Prop | Type | Default | Description | |-----------|----------------|---------|------------------------| | title | string | — | Optional chart title | | labels | string[] | — | X-axis labels | | series | LineSeries[] | — | Data series | | minValue | number | auto | Fixed minimum Y-axis | | maxValue | number | auto | Fixed maximum Y-axis | | height | number | 120 | SVG height | | gridLines | number | 4 | Grid line count | | showDots | boolean | true | Displays point markers | | className | string | — | Additional CSS classes |


StackedBar

Displays proportional horizontal distribution using stacked segments.


Example

import { StackedBar } from "@sio-group/ui-widgets";

<StackedBar
    title="Response breakdown"
    segments={[
        { label: "Positive", value: 62, color: "success" },
        { label: "Neutral", value: 24, color: "warning" },
        { label: "Negative", value: 14, color: "danger" },
    ]}
/>

StackedBar API

| Prop | Type | Default | Description | |-----------------|-----------------------|---------|------------------------| | title | string | — | Optional title | | segments | StackedBarSegment[] | — | Bar segments | | height | number | 24 | Bar height in px | | showLegend | boolean | true | Displays legend | | showPercentages | boolean | true | Displays percentages | | className | string | — | Additional CSS classes |


Accessibility

The charts include accessibility support where applicable:

  • semantic role="img"
  • descriptive aria-label
  • tooltip-safe interactions
  • keyboard-safe rendering

TypeScript

All components include full TypeScript definitions.

import {
    BarChart,
    DonutChart,
    GaugeChart,
    LineChart,
    StackedBar,
} from "@sio-group/ui-widgets";

Browser Support

Supports all modern browsers supporting:

  • ES modules
  • React 19+

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

This project is licensed under the ISC License - see the LICENSE file for details.