A line or bars from a small table
An XY chart plots a line or bars on an x axis and a y axis. You bring a small table: categories or times, and the numbers that go with them.
A pie chart is the neighbor for parts of one whole. A radar chart is the neighbor for several criteria on a few subjects. Use XY when two axes and a series are enough.
XY, pie, or radar
Use an XY chart for a trend or a category comparison from a table. Use a pie chart when the numbers are shares of a single total. Use a radar chart when each subject has a profile across many axes.
Label the axes, then the series
1. Name x and y
Say what each axis measures, including the unit. An unlabeled axis is the first fix on the draft.
2. Choose line or bar on purpose
Ask for a line when x is ordered, such as months. Ask for bars when x is a set of categories.
3. Keep one unit on y
If two series use different units, split them. A shared axis will exaggerate the larger scale.
How to phrase the prompt
Give the title, the x values in order, and the y values for each series. Say line or bar. Include units. A handful of rows is enough. A nested budget with flows belongs on a Sankey or a treemap.
XY draft questions
- Can I plot two series?
- Yes, if they share units and the same x values. Name each series. If the draft merges them, restate the two lists.
- The bars look like a pie. What happened?
- The prompt described shares of a whole. Switch to a pie chart, or keep XY only if the categories are not parts of one total.
- How many points should I include?
- Enough to see the pattern, often under twelve. Aggregate the rest. A long table becomes an unreadable axis.