| Item | Quantity |
|---|---|
| Notebook | 12 |
| Pencil | 4 |
A two-column sheet is already a chart: labels in one column, amounts in the other. Chart a CSV reads the header, takes the numeric series you name, and draws an SVG. Leave Numeric column blank and the second column is the series. Leave Label or scatter X column blank and the first column names the bars, the pie slices, and the line's point titles.
Bar and line charts include zero in the scale, so a series of 12 and 4 is drawn against a baseline of 0. Pie slices have to be zero or positive and total more than zero. A histogram bins one numeric column. A scatter plot needs a numeric X column as well as a numeric Y. Point the series at a text column and the page stops with a message that the series must contain finite numbers.
Item,Quantity / Notebook,12 / Pen,4. Chart left on bar. Numeric column blank, so Quantity is the series. Label column blank, so Item names the bars.
An SVG 600 wide and 96 tall, titled Quantity. Notebook is a steel-blue bar 400 units wide. Pen is a bar 133.33 units wide, because 4 is one third of 12 on a scale that starts at 0. A pie of the same sheet titles the slices Notebook: 12 and Pen: 4.
The chart is drawn from the parsed columns, with the blank-field defaults pointed at a normal two-column sheet, and the file you keep is the SVG.
The scale runs from 0 to the largest value, 12. Pen is 4, and 4 / 12 of the 400-unit bar length is 133.33.
The series has to be finite numbers. Item holds Notebook and Pen, so choosing it as the numeric column stops the chart.
A negative number, or a series that sums to zero, is refused. Slices have to be nonnegative and total more than zero.
Both axes numeric. The label column is read as X. A text label column is refused with a message that scatter plots need a numeric X column.
Open the Interactive editor, choose the Chart tab, set Chart type, Label column, and Value column, then Download chart SVG.