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

@shopify/polaris-viz

Package Overview
Dependencies
Maintainers
19
Versions
348
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.17-beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-4.66%
Maintainers
19
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 library:

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

Components

Components inherit their sizes from their containers, so place your component inside an element with a width and height specified.

  1. Normalized stacked bar chart
  2. Sparkline

Normalized stacked bar chart

Used for positive datasets with two to four items.

View documentation →

Sparkline

Used in small sizes to give an overview of how a metric has performed over time.

View documentation →

Line chart

Used to show change over time, comparisons, and trends.

View documentation →

Bar chart

Used to show comparison across categories.

View documentation →

Grouped bar chart

Used to show comparison of different types, across categories.

View documentation →

Stacked area chart

Used to compare multiple series of data and display the total value.

View documentation →

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 02 Oct 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