Toolvito

Processed online by Toolvito

Chart Data Cleaner

Upload or paste a table and get it ready for a line, bar, pie, scatter or area chart: numbers written with commas, currency or units are read, dates are written the same way, repeated labels are merged, empty values are handled, and small categories can go into “Other”. Tables can also be pivoted, unpivoted or turned into frequency tables.

Choose what to do

Task
Clean for a chart

A header row first. Leave empty if you choose a file.

Optional: the first column by default (a name or a number).

Optional: the columns that are mostly numbers by default.

Or drop the file here. CSV, TSV, TXT, XLSX or JSON, 32 MB each at most.

    More options

    The rest go into “Other”.

    −1 to 10.

    When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to clean data for a chart

    1. Choose Clean for a chart and the chart type.
    2. Paste the table (a header row first) or choose a CSV, TSV, Excel (.xlsx) or JSON file. Name the label column and the value columns if they are not found by themselves.
    3. Choose what to do with repeated labels and empty values, the sorting and the top N. Select Clean.
    4. Download the clean CSV, the chart JSON (labels and datasets) and changes.csv, which lists every changed cell.

    What is cleaned

    • Numbers: 1,234.5, 1.234,5 (decimal comma), 1 234, $12, 12 %, 12 kg, (12) for minus 12 and the minus sign − are all read as numbers. The percent sign is removed but the number is kept as written (not divided by 100).
    • Dates in common forms (03/01/2024, 2024-01-03, 3 Jan 2024) are written as ISO 8601 (2024-01-03); choose whether 03/01 is the 3rd of January or the 1st of March.
    • Repeated labels (the same x on several rows) are merged by sum, mean, maximum, minimum, first or last, or kept. Empty values drop the row, stay as gaps, become 0, take the previous value or are interpolated along a straight line.
    • Top N: the N largest categories are kept and the rest are added into “Other”, so that a pie or bar chart stays readable.

    Checks for the chart type

    • Pie: no negative values, one value column, the share of each slice in percent, and a warning when there are many slices.
    • Line and area: the x values in order and without repeats. Scatter: numbers or dates on the x axis.
    • A preview graph of the cleaned data is drawn; for text labels the bars are in table order.

    Reshaping tables

    • Wide to long (unpivot): turns columns such as 2022, 2023 into rows (as when turning a pivot table back into a normal table).
    • Long to wide (pivot): one column gives the new column names and another the values, combined by sum, mean, count, minimum, maximum, first or last.
    • Transpose, a frequency table with relative and cumulative frequencies (numbers in bins by Sturges’ rule or a given width), and a cross table (contingency table) of two columns with totals.

    How the results are checked

    Totals are compared before and after with exact decimals (so merging, “Other” and pivoting lose nothing), the clean CSV and the JSON are read back to check their size, an unpivoted table is pivoted back and compared cell by cell, and the frequencies must add up to the number of values. Cells that a spreadsheet would run as formulas get a leading apostrophe.

    Related tools