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

@manufosela/radar-chart

v2.0.0

Published

SVG-based radar/spider chart web component

Readme

@manufosela/radar-chart

SVG-based radar/spider chart web component. Built with Lit.

Installation

npm install @manufosela/radar-chart

Usage

import '@manufosela/radar-chart';
<radar-chart
  .labels="${['Speed', 'Power', 'Defense', 'Magic', 'Luck']}"
  .series="${[{ name: 'Player', values: [80, 65, 90, 45, 70], color: '#3b82f6' }]}"
></radar-chart>

Features

  • Pure SVG rendering
  • Multiple data series support
  • Interactive tooltips
  • Click events on data points
  • Customizable colors and styling
  • Configurable grid levels
  • Optional legend
  • CSS custom properties for theming

Attributes

| Attribute | Type | Default | Description | | --------------- | ------- | -------- | --------------------------------- | | labels | Array | [] | Array of axis labels | | series | Array | [] | Array of data series | | max-value | Number | auto | Maximum scale value | | levels | Number | 5 | Number of grid rings | | show-dots | Boolean | true | Show data point circles | | show-legend | Boolean | true | Show legend below chart | | show-values | Boolean | true | Show tooltip on hover | | fill-opacity | Number | 0.25 | Fill opacity (0-1) | | size | Number | 300 | Chart size in pixels |

Series Format

Each series object can have:

{
  name: 'Series Name',    // Optional: displayed in legend
  values: [80, 60, 90],   // Required: data values
  color: '#3b82f6'        // Optional: series color
}

Events

| Event | Detail | Description | | ------------------ | ----------------------------------------- | ------------------------- | | data-point-click | {series, seriesIndex, label, pointIndex, value} | Fired on point click |

Examples

Single Series

<radar-chart
  .labels="${['HTML', 'CSS', 'JS', 'React', 'Node']}"
  .series="${[{
    name: 'Skills',
    values: [90, 85, 80, 75, 70],
    color: '#3b82f6'
  }]}"
></radar-chart>

Multiple Series Comparison

<radar-chart
  .labels="${['Strategy', 'Teamwork', 'Execution', 'Creativity']}"
  .series="${[
    { name: 'Team A', values: [85, 70, 95, 60], color: '#3b82f6' },
    { name: 'Team B', values: [60, 90, 75, 85], color: '#22c55e' }
  ]}"
></radar-chart>

Custom Styling

<radar-chart
  .labels="${['A', 'B', 'C', 'D', 'E']}"
  .series="${[{ values: [80, 60, 90, 70, 85] }]}"
  fill-opacity="0.4"
  levels="3"
  size="400"
></radar-chart>

Minimal (No Dots/Legend)

<radar-chart
  .labels="${['X', 'Y', 'Z']}"
  .series="${[{ values: [75, 80, 65] }]}"
  .showDots="${false}"
  .showLegend="${false}"
></radar-chart>

Handle Click Events

const chart = document.querySelector('radar-chart');
chart.addEventListener('data-point-click', (e) => {
  console.log(`${e.detail.series}: ${e.detail.label} = ${e.detail.value}`);
});

CSS Custom Properties

| Property | Default | Description | | --------------------- | ---------- | --------------------- | | --radar-size | 300px | Chart container size | | --radar-bg | #fff | Background color | | --radar-grid-color | #e2e8f0 | Grid line color | | --radar-axis-color | #94a3b8 | Axis line color | | --radar-label-color | #475569 | Label text color |

Styling Example

radar-chart {
  --radar-size: 350px;
  --radar-bg: #f8fafc;
  --radar-grid-color: #cbd5e1;
  --radar-axis-color: #64748b;
  --radar-label-color: #334155;
}

Use Cases

  • Skill assessment visualization
  • Product feature comparison
  • Team performance metrics
  • Game character stats
  • Survey results
  • Multi-dimensional analysis

License

Apache-2.0