liveBook · Manning

Data type

As explained in Everyday Data Visualization

A data type is a classification that specifies the kind of value data can contain and the operations or representations appropriate for it.

A data type identifies what kind of value a field contains and guides how visualization tools and people treat it. A date dimension, for example, is not handled like a fruit-type dimension. section 3.2 section 3.3

Common fundamental data types include:

  • Strings, numbers, dates, and Booleans; Booleans contain only true or false and support logical if statements. section 3.3 section 3.3.4
  • Null represents nothing at all, while arrays and objects combine multiple basic values into more complex structures. section 3.6

Keep every value within a dimension or measure on the same data type. One stray string in a field of numbers can make the entire field behave as strings, producing errors or breaking the visualization. section 3.3.4

The stray string

Imagine a dimension containing a million numeric values and one accidental string. The visualization tool may treat every value as a string, so a tiny data-quality problem can become a very large chart problem. section 3.3.4

How Everyday Data Visualization covers it

How deep it goes
Defines strings, numbers, dates, Booleans, null, arrays, and objects, but defers fine-grained numeric distinctions such as float32 and BigInt.
Examples
Uses fruit fields, date and fruit-type dimensions, and a million-number field containing one stray string.
What it assumes
Builds from zero on basic data types while assuming familiarity with dimensions, measures, and visualization.
What you can do after
Evaluate/understand field types before assigning data to a visualization.
How it connects
Connects data types with dimensions, measures, data structures, logical statements, and visualization.

Also explained in

Compare how 18 books explain data type →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Everyday Data Visualization. The section links point to the parts of the book it draws on.