Shortest average route distances

Why ask this?

A route planner reviewing trip lengths wants to identify routes with short average trips before considering changes to dispatch coverage.

Start with the sample data

Open source.csv. In the first row of source.csv, Route = South, Distance = 3.

What to say

Make a bar chart of the bottom two routes by average distance.

Processing time

Recorded audio to chart ready
2.31 s
Transcript to chart ready
0.34 ms

One local replay from recorded audio through transcription and native chart data preparation. Recording time and screen painting are excluded.

See the transcript in the composerRecorded transcript entered in the native composer

How the canvas produces the result

  1. CSV Input · Read the sample records

    source.csv supplies 4 rows. These records are the inputs to the next step.

  2. Aggregate · Average Distance for each Route

    If a category appears more than once, its records contribute to one result. The first output row contains Route = South, avg_Distance = 3.

  3. Sort · Order the results

    Sort by avg_Distance (ascending), then Route (ascending). The first rows in order are East → South → West.

  4. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, East is #1, South is #2, West is #3.

  5. Measure Filter · Keep the requested rows

    The filter uses rank <= 2 in keep mode. 2 rows remain including East.

  6. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Route, avg_Distance.

  7. Charts · Draw the bar chart

    Use Route for the categories and avg_Distance for the plotted values.

Native n0is canvas for Shortest average route distances

The chart

Workflow result in n0is
Routeavg_Distance
East2.5
South3

How to use the result

For Route East, the sample reports average Distance of 2.5.

Synthetic test audio. Screenshots from the recorded workflow in n0is.