Overview

Data visualization refers to the graphical representation of data. In Pinterest products, data is generally visualized in charts via symbols like lines and bars. However, visual representations of data can also appear as sparklines, mini-bars and mini-donuts inside table cells, cards and other UI elements.

Principles

Accurate

Although aesthetics are important, data visualizations should be primarily accurate. Any visual treatments should reinforce the accuracy and veracity of data so that people can take the correct action.

Purposeful

Data should be visualized in a way that is readable, digestible and actionable depending on a person’s role and situation. For example, a busy campaign manager should be able to quickly read data in order to understand how a campaign is doing. A data scientist should be able to go into deeper, more complex visualizations and do the same.

Responsive

Data visualizations should be accurate and coherent on desktop and mobile screens. Even on desktop, a data set should respond to large, medium and small views.

Use cases

While data visualization can be an effective way for people to analyze, interpret and act on data, it isn’t always the best way to represent data in UIs.

When to use
  • When comparing, explaining or monitoring data can be done faster by using a graphical representation
  • For people who can process data visually
When not to use
  • If data can be more simply stated by using text
  • For people who may have cognitive or other impairments that make it hard to process graphical representations of data. Use tabular data instead.

To analyze

Data visualizations can be used to help someone explore, review and analyze various data sets to get a general understanding of how things are going. An example is an advertising insights dashboard with a chart and micro-visualizations that tell an overall story.

Desktop screen showing a line graph used to analyze metrics.

To monitor

Administrators may use data visualizations to monitor the health of a system and check for errors, budget usage or other issues.

Desktop screen showing a dashboard with various line graphs that show warning, error states.

Similarly, an Advertiser or Creator may use a mobile app to monitor ads and content on the go.

A mobile screen with align graph showing how ad impressions are going.
Data visualization can also be used to explain, but this is generally done via custom, hand-curated reports that aren’t automated. This isn’t part of our product UI or design system, but data visualizations in our products can help people create custom reports for presentations, blog posts and reports.

Visualizing data in product dashboards

People may rely on a product dashboard to analyze and gain insights or to come up with a sales and advertising strategy. Regardless of the intent, the layout should be structured starting with the most significant and ending with the least significant details, depending on the viewer’s role. For example, a campaign manager might see a dashboard as follows:

  1. Show the significant details first. This is usually done with a chart or graph.
  2. Next, provide scannable details in a table, that can then be drilled into further if needed.
  3. End with secondary background information. Here, we often find a combination of tables, lists and smaller visualizations.
Desktop screen showing a dashboard with an overview graph, followed by a table, followed by more graphs.