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

vizart

v2.0.1

Published

Artistic Data Visualization

Downloads

10

Readme

vizart

It is recommended to use vizart components.

Usage: Components

  1. Install a vizart component:
npm install vizart-basic --save
  1. import and use
import 'vizart-basic/dist/vizart-basic.css';
import { bar } from 'vizart-basic';

const chart = barar(domId, opt)....

Usage: vizart

With this approach, all charts are available.

  1. Install VizArt in your project
npm install vizart --save
  1. import and use
import 'vizart/dist/vizart.css';
import { bar } from 'vizart';

const chart = bar(domId, opt)....

Three steps to use a chart

  1. initialize a chart with domId and declarative options
const opt = {
  ...
};
const chart = bar('#chart', opt)

You only need to provide essential options. Demo is a good place to check essential options for all charts. You may check up Documentation of each component for full option spec so as to control more chart behaviours.

  1. Render a chart with data
chart.render(data) // this should be called only once
  1. Change a chart on the fly
// copy and update full options
const opt = chart.options();
opt.plots.opacityArea = o.4

// or in minimum
const opt = { plots: {opacityArea: 0.2 }};

// update options
chart.options(opt);
chart.update();

Resources

Components

Production ready:

Credits

My work is based on/inspired by other people's works. You can find links and author names of originals works at each sub module's home page as well as at vizart's demo page.

Thanks to Mike Bostock, the creator of d3.js. I create vizart on top of d3 modules. I also study d3 examples extensively.

License

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