Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/polaris-viz

Package Overview
Dependencies
Maintainers
13
Versions
343
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/polaris-viz

Shopify’s viz component library

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-1.26%
Maintainers
13
Weekly downloads
 
Created
Source

Polaris Viz

Polaris Viz is a data visualization React component library. It was built to help Shopify merchants better understand their data.

Installation

Run the following command using npm:

npm install @shopify/polaris-viz --save

If you prefer Yarn, use the following command instead:

yarn add @shopify/polaris-viz

Usage

If your app is set up to consume esnext builds, import components where you want to use them and the styles will automatically be applied.

If your app is not set up for esnext, import the styles where you import components from the libary:

import '@shopify/polaris-viz/styles.css';

Components

VizUse casesProps
Normalized stacked bar chart

Used for positive datasets with two to four items. If your dataset has more than four items, consider grouping the fourth item and the remainder into an “other” category before passing data to the component.
  • data (required): {formattedValue: string, value: number, label: string}[]
  • accessibilityLabel: string
  • size: small | medium | large
  • orientation: vertical | horizontal
  • colors: colors[] | ColorScheme

Contributing

Pull requests are welcome.

Licenses

  • Source code is under a custom license based on MIT. The license restricts Polaris Viz usage to applications that integrate or interoperate with Shopify software or services, with additional restrictions for external, stand-alone applications.

FAQs

Package last updated on 04 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc