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 🙏

© 2024 – Pkg Stats / Ryan Hefner

rawgraphs-versus

v0.4.3

Published

Versus visual model

Downloads

3

Readme

Versus: a custom RAWGraphs chart

This custom chart is intedend to be used in https://app.rawgraphs.io/.

The chart is inspired by a research done at DensityDesign Lab and then refined in a tool called PoliMatter.

The visual model displays bipartite graphs (composed by two kinds of nodes) in which one set acts as "attractors" and are dsitributed on a cicle, and the other set of nodes is disposed according to the strength of connections to the attractors.

The visual model works better with a lower amount of attractors (3 or 4), or with network whose strenghts are highly polarised.

Install

  • Scroll down the visual models list, click on Load yout chart
  • In the popup window Add a new custom chart, upload the versus.umd.js file
  • Click on Load your chart button.
  • A pop-up will inform you that you are loading an external piece of code, click on continue to load it.
  • You are now ready to use the chart.

Tutorial

In this tutorial we'll show wich keywords are used in design theses at Politecnico di Milano, and their usage across different MSc courses.

Dataset

In RAWgraphs interface, load the dataset you can find at this link. You can download it and upload in RAWGraphs interface, or load it derecly in RAWGraphs using the from URL section in the interface.

The dataset contains three columns: the age group, number of male people, and number of female people for that age group.

Chart Selection

select "Versus". If you don't see it, read the section Installation.

Mapping

Drag and drop the dimensions to the chart variables as it follows:

  • MSc Course on Groups
  • Keyword on Item
  • Number of theses on Strength

Customize

The chart offers some options to customize the chart.

In the Artboard section you can mange the overall artboard.

  • Increase Width and Height to 1000 px.

In the Chart section you can define the size of items and groups circles, apply an anti-overlapping algorithm, and set the padding.

  • Set Max items diameter to 30
  • Set Padding to 10

In the Color section you can define the color of the attractor groups

  • Click on Color Scheme and set it to Spectral discrete

Contribute

If you'd like to contribute, follow the RAWGraphs custom template guide.

Edit the code

Install dependencies

npm install

Run Sandbox

Modify the chart on your machine with livereload thanks to Webpack.

npm run sandbox

You can find your charts at http://localhost:9000

Build

Build the chart to use it in RAWGraphs.

npm run build