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

cloudvisio

v0.8.3

Published

Visual Representation of cloud data

Downloads

36

Readme

Cloudvisio

A javascript library that parses raw data (from a database or api) and generates meaningful visualizations.

In essence, the scope of Cloudvisio is to allow for the easy generation of "axis" based on the raw data.

For the technical person Cloudvisio may resemble a javascript template engine for graphs.

For the artistic mind Cloudvisio may open up the possibility to play with the data in creative ways.

Powered by D3.

Features

  • D3 integration
  • Structure agnostic approach
  • Live filtering of data

Examples

This is the kind of charts you can create right now:

As the library is enhanced with more methods, we expect "smarter" use cases to emerge.

Install

For client-side processing you can install with bower:

bower install cloudvisio

For server-side processing you can use npm (still work in progress):

npm install cloudvisio

Usage

For either client-side or server-side processing the API is the same. For instance:

var chart = new Cloudvisio({ layout: "stack" });
chart.parse( data );

In the above example, where 'data' is a known javascript object with pre-caclulated axis. If the data is a raw collection we can filter it first by creating the axis out of conditions we create:

var chart = new Cloudvisio({ layout: "stack" });
chart.data( data );
chart.axis("name");
chart.group(["USA"], "address");

After the data is processed we compile the new chart with the method render() which will output the required markup.

var html = chart.render();

Look into the examples folder for more specific implementations of the (server-side) logic.

Options

  • layout: "string", the type of chart we want to render. Review the layout section for the available options
  • chart: { object }, options related with the rendering of the chart - which differ for every layout. ...

Methods

The api is trying to use the most obvious conventions every experienced web developer is already familiar with, and thus it is greatly inspired by vanilla js, jquery, backbone and of course the d3 library itself.

data( json )

Pass a raw object to the library that will be used for further analysis.

parse( models )

Add a normalized dataset ( with pre-calculated axis ) to the models.

set( object )

Update the visualization's options dynamically. Accepts an object of updated values.

queries( query )

Apply a query on the data with either filter, exclude or group sorting.

group([array], axis) deprecated

Use an axis as a basis to group the parsed models into groups, with their labels specified in the array.

Layouts

Cloudvisio supports some of D3 layouts out of the box.

  • Stack
  • Pie
  • Force ...

In addition, Cloudvisio can accept custom layouts using the chart() method.

Credits

Created by Makis Tracend

Distributed through Makesites.org

Released under the Apache License v2.0