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

ng2-vizabi

v4.0.9

Published

angular2 vizabi component

Downloads

87

Readme

ng2-vizabi

Native Angular2 directive for Vizabi component.

Vizabi is a framework for building visual data exploration tools freely provided by Gapminder. WARNING: Vizabi is in alpha. Don't expect too much!


Quick start

  1. A recommended way to install ng2-vizabi is through npm package manager using the following command:

npm i ng2-vizabi --save

Alternatively, you can download it in a ZIP file.

  1. More information regarding using of ng2-vizabi is located in demo and demo sources.

To view the demo: clone the repo, run npm i, npm run build, npm start

API

Inputs (Properties)

  • order (?number) - tab order could be useful to indicate tab number in set of tabs
  • readerModuleObject (?any) - object (separate module that contains method to get reader's object); undefined by default
  • readerGetMethod (?string) - method name (to get reader's object) in readerModuleObject; undefined by default
  • readerPlugins (?any[]) - parameters for readerGetMethod as different kind of objects depending on reader functionality
  • readerName (?string) - reader's name; undefined by default
  • chartType (string) - chart type for current Vizabi instance
  • stopUrlRedirect (?boolean) - prevents any window.location` activity
  • model (any) - model for current Vizabi instance
  • modelHash (?string) - hash (url encoded) with extra data for model; undefined by default
  • active (?boolean`) - this flag could be useful to indicate active tab of many tabs
  • language (?string) - current language, it might be passed to Vizabi` as-is
  • additionalItems (?any[]) - additional items that should be added as data_... section of model: it will be an additional csv file or DDF folder
  • reloadTime (?number) - put reload time, after that current chart will be reloaded
  • restoreAfterReload (?boolean) - current chart state will be restored after reloadTime activity

Outputs (Events)

  • onCreated - it fires during Vizabi based chart was created successfully
  • onChanged - it fires during Vizabi based chart was changed (additional data was added, for example)
  • onReadyOnce - happens once on the load when both DOM and MODEL are ready
  • onClick - it fires during click was occurred on Vizabi based chart
  • onError - it fires during an error was occurred on Vizabi based chart

NPM Publishing

npm run build
cd dist
npm publish

Important note. Don't publish this project from root directory.

gh-pages

If you need to publish demo examples to gh-pages you should follow next steps:

npm run build
npm run demo.build
cd demo/dist

Put content from demo/dist to your gh-pages branch.

Troubleshooting

Known problems:

npm run build cp is not recognized as an internal or external command, operable program or batch file.

You are using windows command prompt that sucks. Cygwin solves it. Or use git bash. Or use linux/mac.

npm run build fails

try updating your node/npm. Last time i checked the app it was working and i had node v6.10.2, npm v3.10.10

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!