Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@shopify/polaris-viz
Advanced tools
Polaris Viz is a data visualization React component library. It was built to help Shopify merchants better understand their data.
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
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 inherit their sizes from their containers, so place your component inside an element with a width and height specified.
Viz | Use cases | Props |
---|---|---|
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. |
|
Sparkline
| Used in small sizes to give an overview of how a metric has performed over time. |
|
Line chart
| Used to show change over time, comparisons, and trends. |
|
Bar chart
| Shows comparison across categories. | |
Grouped bar chart
| Shows comparison of different types, across categories. |
|
Pull requests are welcome.
FAQs
Shopify’s viz component library
The npm package @shopify/polaris-viz receives a total of 12,489 weekly downloads. As such, @shopify/polaris-viz popularity was classified as popular.
We found that @shopify/polaris-viz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.