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

@mitevpi/v3

v0.3.0

Published

Interactive & customizable D3 data visualization components for Vue.js.

Downloads

8

Readme

V3.js (D3 + Vue Data Visualization Components)

Generic badge Generic badge Generic badge

npm npm bundle size npm npm2

GitHub issues David GitHub last commit

Azure DevOps builds Azure DevOps Tests

A collection of customizable, interactive, and reusable data visualization components built using D3 and Vue.js: v3.js.

Usage

To use this module, install locally using the command below, or clone this repository and import the .vue files directly from source. Full documentation can be found on the GitHub Pages Site for this project. Editable example usages and component demos can be found on CodeSandbox, and a deployed demo is also available.

npm i @mitevpi/v3

Importing

In-Component Import

For single use in a component or small set of components.

Static import using the compiled .js file.

// component.vue
import { BarChart } from "@mitevpi/v3";

export default {
  name: "Tester",
  components: {
    BarChart
  }
};

Chunked import using the source .vue file.

// component.vue
export default {
  name: "Tester",
  components: {
    BarChart: () => import("@mitevpi/v3/src/components/BarChart"),
  }
};

Global

Importing the single file .vue components directly. (If using Vue CLI 3 with Babel or TypeScript, it's recommended that you import its src directory. This will minimize the size of your application by preventing duplicate or unnecessary polyfills.)

Importing source .vue file.

// main.js
import BarChart from "@mitevpi/v3/src/components";
Vue.use(BarChart);

Importing the bundled .js.

// main.js
import BarChart from "@mitevpi/v3";
Vue.use(BarChart);

Documentation

Full documentation can be found on the GitHub Pages Site for this project.Editable example usages and component demos can be found on CodeSandbox, and a deployed demo is also available.

Developer Documentation

Building

In order to contribute to this project, fork/clone this repository locally. After cloning is completed, you can install dependencies and start a development server by running the commands below in the root directory of this repository. Once the development server is running, view localhost:8080 using Chrome and Vue.js Dev Tools.

npm i
npm run serve

The served "app" is a simple container for the individual components which make up the library. It's only used for testing/visualizing components, and will not be included in the final library build and distribution.

Commands

The following commands are used to develop the project:

  1. npm run build - Build the package distribution bundle.
  2. npm run serve - Start a development server with live-reloading on changes. (Used for previewing individual components.)
  3. npm run lint - Lint code using ESLint and Vue, AirBnB, and Prettier configs.
  4. npm test - Run unit tests for the individual components in the package.
  5. vuese gen - Generate components documentation through the Vuese CLI. Must have the CLI installed globally on your machine, as it is not included as a dev dependency here.