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

react-d3-radviz

v1.0.0

Published

## radvizMapper.js Positioning function that calculates positions of points.

Readme

React Radviz Module

radvizMapper.js

Positioning function that calculates positions of points.

using radvizMapper.js

Radviz Mapper takes three parameters. Each parameter has to be provided in order for the graphic to work propely.

  1. The first parameter is a list of JS Object, each JS Object is a datapoing that will be plotted on the Radviz. A datapoint will consist of key value pairs, the key being the attribute of the datapoing and the value being the value for that attribute. let data = [{one: 0.5, two: 1.3, three: 0.9}, ..., {one: 1.2, two: 0, three: 4}]

  2. The second parameter is a JS Object. Each key value pair represent how the graphic will label that attribute of the data. For example attribute "one" will be labeled as "First-Anchor". let ANCHORS = {one: "First-Anchor", two: "Second-Anchor", three: Third-Anchor}

  3. THe third parameter is a JS Object. Each key value pair represents where the graphic will position that label on the circumfrence of the Radviz Circle. For example "one" will be positioned at 0 degress. let anchorAngles = {one: 0, two: 120, three: 240}

Passing all three parameters to the radvizMapper function will return an object with two variables "points" and "labels". Both of these values will later be passed to the RadvizD3 React component that will display them. let { points, labels } = radvizMapper(data, ANCHORS, anchorAngles);

Radivz.js

React component that implemneted using D3.

Passing these two values as props to the Radviz React component will result graph the points. <Radviz points={points} labels={labels} />

Link

Please checkout and share this React component. Also checkout the Observable notebook and play around with a demo.

DEMO: https://viz-research.herokuapp.com/

OBSERVABLE: https://observablehq.com/@gzakhar/radviz

EMAIL: [email protected]