Turning CSV tables into charts
A CSV file is a rectangular table: the first row often names columns, and each later row is one observation. Charts map two (or more) of those columns to visual channels—category labels on one axis, magnitudes on another, or angles and areas in a pie—so patterns in sales, survey counts, or sensor readings become visible without opening a spreadsheet first.
Export from Excel to CSV when the source is a workbook, reshape API output with JSON to CSV, or rebuild xlsx after editing with CSV to Excel.
CSV columns and chart grammar
Categorical vs numeric columns in a CSV
- Nominal columns (product names, regions) label categories—they belong on the X axis for bar and line charts or as slice names in pie charts.
- Quantitative columns hold counts, amounts, or measurements—typically mapped to bar height, line position, or pie arc size on the Y axis.
- Parsers may read numbers as strings until cast; quoted fields ("1,234") stay text unless normalized.
- Missing cells become gaps or zero depending on the chart layer—check empty rows before plotting.
Bar and line charts for trends and comparisons
- Bar charts compare discrete categories side by side; long category lists read better horizontally or with scrolling.
- Line charts connect ordered points—use when X is time or sequence and you care about slope between rows.
- Both need one categorical (or ordered) X and one numeric Y; swapping axes inverts the story.
- Stacked bars encode part-to-whole within each category—this tool plots single-series bars from one Y column.
Pie charts and share-of-total views
- Pie slices encode proportion: each row’s Y value divided by the sum of Y across rows.
- Human perception compares angles and areas poorly—limit slices to a handful of categories.
- Negative or mixed-sign Y values break pie semantics; filter or use bar charts instead.
- Labels come from the X column; small slices may need legends or data labels to stay readable.
Scatter plots and two numeric dimensions
- Scatter maps two numeric columns to X and Y position—correlation and outliers show as cloud shape.
- Both axes should be continuous; categorical IDs belong on one axis only with jitter or grouping.
- Identical X/Y pairs stack visually—opacity or size encoding would need another column (not automatic here).
- Delimiter detection (comma, semicolon, tab) affects which tokens become numbers when columns are parsed.
When CSV charts help
Quick check after export
Validate column names and magnitudes from a spreadsheet export before sharing slides or dashboards.
Pipeline handoff
Plot ETL output, then send the same CSV to CSV to Excel or merge with JSON via JSON to CSV.