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

creative-infographics

v1.0.3

Published

This is a library of interactive infographics react components for challenging data visualization.

Downloads

37

Readme

This is a library of interactive infographics React components for challenging data visualization.

npm package npm downloads npm size npm peer repo licence repo size repo lang git stars git watch git follow open source

⏬ Installation

Creative-Infographics is available as an npm package.

// with npm
npm  install creative-infographics

Usage

For each infographic component there is fixed data schema and reaquired props, see the followed documentation below.

Infographics

1) FlowerGraph

Edit Button

  • Import FlowerGraph
import { FlowerGraph } from "creative-infographics";

Data schema for FlowerGraph

  • following data schema is required to render this infographic.
data /* array_of_objects */ = [
    {
      /* key_for_label */ : /* label */,
      /* key_for_type */ : /* array of distinguished values of string|number */ [ "type_a", "type_b", ...]
      ...
    },
    ...
]
  • component schema
<FlowerGraph data={/* data */} label={/* key name of label */} term={/* key name of type */} />

Props

Using following props, Info-graphic can be customize as per required.

| props | type | Default values | Description | | -------------- | ----------------------------- | -------------- | ----------------------------------------------------------------------------------- | | data | array of objects | *required | This prop requires data as per shown in data schema | | label | string | *required | This is key name of text label inside objects | | term | string | *required | This is key name of array of types inside objects | | leafs | integer | 5 | Number of flower leafs | | leafR | integer | 55 | leafs Radius | | leafDeg | integer | 270 | Round cut off of leafs circle in degree | | flowerR | integer | 195 | Flower root Radius | | flowerDeg | integer | 360 | Round cut off of Flower circle in degree | | flowerRotation | integer | 0 | Rotation of Flower | | fontSize | integer | 6 | text size | | fadingOpacity | float | 0.02 | Opacity of other elements on mouse hover range : 0.0 to 1 | | luminosity | string ("bright" | "dark") | "bright" | "bright" : for white text and bright colors, "dark": for black text and dark colors | | tint | bool | string(colors_only) | false | false : random colors, "color_names" : gives shades of colors (red, blue, ..) |

License

This project is licensed under the terms of the ISC license.