Читать книгу The Big Book of Dashboards - Shaffer Jeffrey - Страница 10
PART I
A STRONG FOUNDATION
Chapter 1
Data Visualization: A Primer
Common Chart Types
ОглавлениеIn this book, you will see many different types of charts. We explain in the scenarios why many of the charts were chosen to fulfill a particular task. In this section, we briefly outline the most common chart types. This list is intentionally short. Even if you use only the charts listed here, you would be able to cover the majority of needs when visualizing your data. More advanced chart types seen throughout the book are built from the same building blocks as these. For example, sparklines, which are shown in Chapters 6, 8, and 9, are a kind of line chart. Bullet charts, used in Chapter 17, are bar charts with reference lines and shading built in. Finally, waterfall charts, shown in Chapter 24, are bar charts where the bars don't have a common baseline.
Bar Chart
A bar chart (see Figure 1.28) uses length to represent a measure. Human beings are extremely good at seeing even small differences in length from a common baseline. Bars are widely used in data visualization because they are often the most effective way to compare categories. Bars can be oriented horizontally or vertically. Sorting them can be very helpful because the most common task when bar charts are used is to spot the biggest/smallest items.
Figure 1.28 Bar chart.
Time-Series Line Chart
Line charts (see Figure 1.29) usually show change over time. Time is represented by position on the horizontal x-axis. The measures are shown on the vertical y-axis. The height and slopes of the line let us see trends.
Figure 1.29 Time-series line chart.
Scatterplot
A scatterplot (see Figure 1.30) lets you compare two different measures. Each measure is encoded using position on the horizontal and vertical axes. Scatterplots are useful when looking for relationships between two variables.
Figure 1.30 Scatterplot.
Dot Plot
A dot plot (see Figure 1.31) allows you to compare values across two dimensions. In our example, each row shows sales by ship mode. The dots show sales for each ship mode, broken down by each segment. In the example, you can see that corporate sales are highest with standard class ship mode.
Figure 1.31 Dot plot.
Choropleth Map
A choropleth (also known as a filled) map (see Figure 1.32) uses differences in shading or coloring within predefined areas to indicate the values or categories in those areas.
Figure 1.32 Choropleth map.
Symbol Map
A symbol map (see Figure 1.33) shows values in specific places. These could be the center points of large regions (e.g., the center of each U.S. state) or specific locations determined by an exact latitude/longitude measurement.
Figure 1.33 Symbol map.
Avoid pie charts
Why isn't there a pie chart? Pie charts are common charts, but they are flawed. We don't recommend you use them. Check out the section titled “When Our Visual Processing System Betrays Us” for details.
Table
Sometimes you do need to be able to look up exact values. A table (see Figure 1.34) is an acceptable way to show data in that situation. On most dashboards, a table shows details alongside summary charts.
Figure 1.34 Table.
Highlight Table
Adding a color encoding to your tables can transform them into highly visual views that also enable exact lookup of any value. (see Figure 1.35.)
Figure 1.35 Highlight table.
Bullet Graph
A bullet graph (see Figure 1.36) is one of the best ways to show actual versus target comparisons. The blue bar represents the actual value, the black line shows the target value, and the areas of gray shading are performance bands.
Figure 1.36 Table.