liveBook · Manning

Topic

As explained in Data Storytelling with Altair and AI

A topic is the subject of a chart that a prompt directs a generative AI system to address.

A topic is the subject of a chart that a prompt directs ChatGPT to address. A precise topic connects the chart’s scenario, data, and insights so generated titles, annotations, or commentaries reflect the intended context. section 7.3 section 7.3.1

Describe a topic through three complementary aspects:

  • Scenario — explain the background and objective of the analysis. section 7.3.1
  • Data — summarize the data type, source, manipulations, and relevant patterns in your own words. section 7.3.1
  • Insights — state the central patterns, trends, correlations, or relationships discovered through analysis. section 7.3.1

Funding athletic disciplines

A useful topic can describe a team training young athletes, an objective to fund the best two disciplines, and five percentage improvements: Rowing 62.32%, Cycling 57.64%, Sprinting 42.69%, long-distance running 18.31%, and Swimming 12.38%. It can then highlight that Rowing and Cycling exceed the 50% baseline. ChatGPT can use this topic to generate titles or other chart context. section 7.3.1

Figure 7.5 The elements used to describe the topic
figure

Use the topic-description framework to check that a prompt includes scenario, data, and insights before generating chart text. section 7.3.1

Topic design is iterative: generate context, inspect the result, and adjust one or more prompt elements until the output converges on the desired result. section 7.3

How Data Storytelling with Altair and AI covers it

How deep it goes
Explains topic construction through scenario, data, and insights, then tests and iteratively refines the resulting prompt.
Examples
Uses an athletic-funding chart with five disciplines, percentage improvements, a 50% baseline, and generated titles.
What it assumes
Assumes a chart, an analysis scenario, and derived findings, while teaching how to express them as prompt context.
What you can do after
Apply via ChatGPT by composing a precise chart topic and revising its generated context.
How it connects
Connects topic with prompts, roles, audiences, text types, data visualization, annotations, and commentaries.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Storytelling with Altair and AI. The section links point to the parts of the book it draws on.