At Shopify, we tell a lot of stories through data visualization. This is the driving force behind business decisions—not only for our merchants, but also for teams within Shopify. With more than 10,000 Shopify employees, though, it is only natural that different teams started using different tools to display data.
Overview
This article discusses the creation of the Polaris Viz library at Shopify, aimed at standardizing data visualization across various teams. It highlights the challenges of visual inconsistencies and outlines the implementation of themes and a centralized provider to enhance accessibility and maintain a cohesive visual identity.
What You'll Learn
How to implement a centralized theme provider in a React library
Why consistent data visualization is crucial for business decisions
How to create and manage multiple themes for data visualization
When to apply accessibility standards in data visualization
Prerequisites & Requirements
- Basic understanding of React and theming concepts(optional)
- Familiarity with TypeScript and JavaScript
Key Questions Answered
What are the main reasons for visual inconsistencies in data visualization at Shopify?
How does the PolarisVizProvider enhance theme management in the library?
What features does the createTheme function provide?
How can series colors change according to data in Polaris Viz?
Technologies & Tools
Some links below are affiliate links. We may earn a commission if you make a purchase.
Key Actionable Insights
1Implement a centralized theme provider to streamline theme management across your React applications.This approach reduces visual inconsistencies and simplifies the process of applying themes, making it easier for teams to maintain a cohesive visual identity.
2Utilize the createTheme function to ensure all necessary properties are defined for your charts.By leveraging this function, you can avoid rendering issues that arise from missing theme properties, leading to a more reliable and visually appealing data visualization.
3Consider accessibility standards when designing your data visualizations.Ensuring that your visualizations are accessible not only broadens your audience but also aligns with best practices in design, making your data more impactful.