Choose which station groups the chart

Why ask this?

This file records both Entry Station and Exit Station. A record can belong to a different group in each column. Choose the column that answers your question before comparing the bars.

Start with the sample data

Open source.csv. In the first row of source.csv, Entry Station = East, Exit Station = A, Wait minutes = 2.

What to say

Show a bar chart of median wait minutes by station.

Recorded with the Daniel synthetic voice.

Processing time

Recorded audio to chart ready
2.86 s
Transcript to chart ready
0.71 ms

One local replay from recorded audio through transcription and native chart data preparation. Includes processing of the clarification and reply. Time waiting for a person to answer is excluded. Recording time and screen painting are excluded.

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

When n0is asks

Which column should group the chart? I heard “station”.

Exit Station.

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. Column Filter · Keep matching rows

    Choose Wait minutes as the column and set Mode to keep. Enable regular expressions and enter ^\s*[+-]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[eE][+-]?[0-9]+)?\s*$ as the pattern. Leave case-sensitive matching off. 4 rows continue to the next step.

  3. Constant · Set Stable order

    Use the same value on each row so a stable rank preserves the sorted order.

  4. Rank · Assign a rank

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

  5. Rank · Assign a rank

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

  6. Aggregate · Take the minimum of Source position for each Exit Station

    If a category appears more than once, its records contribute to one result. The first output row contains Exit Station = A, min_Source position = 1.

  7. Joiner · Attach the group summary

    Match Exit Station to Exit Station in the other branch of the canvas. The first matched row contains Entry Station = East, Exit Station = A, Wait minutes = 2, Stable order = 1, Source position = 1, Value position = 1, min_Source position = 1.

  8. Sort · Order the results

    Sort by min_Source position (numeric ascending), then Value position (numeric ascending). The first rows in order are East → West → West → East.

  9. Rank · Assign a rank

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

  10. Aggregate · Take the minimum of Position, Take the maximum of Position for each Exit Station

    If a category appears more than once, its records contribute to one result. The first output row contains Exit Station = A, min_Position = 1, max_Position = 3.

  11. Joiner · Attach the group summary

    Match Exit Station to Exit Station in the other branch of the canvas. The first matched row contains Entry Station = East, Exit Station = A, Wait minutes = 2, Stable order = 1, Source position = 1, Value position = 1, min_Source position = 1, Position = 1, min_Position = 1, max_Position = 3.

  12. Math · Calculate Center distance squared

    Apply (2 * [Position] - [min_Position] - [max_Position]) * (2 * [Position] - [min_Position] - [max_Position]) to each input row. The first row yields 4.

  13. Measure Filter · Keep the requested rows

    The filter uses Center distance squared <= 1 in keep mode. 2 rows remain including West.

  14. Aggregate · Average Wait minutes for each Exit Station

    If a category appears more than once, its records contribute to one result. The first output row contains Exit Station = A, avg_Wait minutes = 4.

  15. Column Renamer · Prepare the output columns

    avg_Wait minutes becomes median_Wait minutes. The result exposes Exit Station, median_Wait minutes.

  16. Charts · Draw the bar chart

    Use Exit Station for the categories and median_Wait minutes for the plotted values. In Display Options, enable Signed value axis to keep both sides of zero visible.

To reproduce the bar scale, select the chart on the canvas. In its settings, enable Signed value axis. Negative and positive values use opposite sides of zero.

Native n0is canvas for Choose which station groups the chart

The chart

Workflow result in n0is
Exit Stationmedian_Wait minutes
A4
B8

How to use the result

For Exit Station A, the sample reports median_Wait minutes of 4.

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