📊 PLeW User guide Design guide Code map Open the editor Examples

PLeW design guide

A manifesto and a working guide for anyone extending PLeW or building something in its spirit.

Status: rough first draft. The principles were drawn out of what the tool already does and what its code comments already insist on, then sharpened where the code falls short of them. The wording is meant to be edited; a writing style guide will follow. Where a principle is not yet met by the current tool, that is said plainly and linked to the streamlining report.


Part 1 — Manifesto

What PLeW is for

Research data about discrete things — utterances, items, judgements, recordings, categories — is usually met by its audience as a table of statistics. The numbers stand between the reader and the material. You are told that a difference is significant; you are not shown the forty recordings that make it up, and you cannot listen to the three that go the other way.

PLeW exists to take that barrier away. It puts every observation on the screen as a thing you can point at, open, hear, compare and question. It is meant for the researcher exploring their own data, and equally for the reader, student or colleague who wants to see what the researcher saw. Meaning should be something people build from the data together, in the open, not something handed down behind a summary.

The commitments

1. Every dot is an observation. One row of the data is one mark on the screen. PLeW does not average, bin, smooth or summarise in its main view. If there are 312 rows, there are 312 dots, and each one opens.

2. Nothing is hidden without saying so. Any filter, any guess the tool makes about a column, any row left off the screen must be visible as such. The viewer should always be able to answer “am I looking at all of it?”

3. Every control has one effect you can see. Change a setting and something on the screen changes at once, in a way that explains the setting. No control should need a manual to predict.

4. One file. PLeW is a single HTML file that opens in a browser. No installation, no account, no server, no build. If it cannot be emailed, put on a USB stick, or kept working ten years from now, it is not PLeW.

5. The data stays yours. Data is read in the browser and goes nowhere. What comes out is a plain file you can open in anything. The tool never becomes the only place your work lives.

6. A playground with a paper trail. Moving things around is how you find out what you think. So moving is easy and always reversible — and every move is recorded, so that exploration can be shown to others and checked.

7. Plain words. Labels say what a thing does in the words a newcomer would use. One idea has one name, everywhere.

8. Simple by subtraction. A new option must earn its place by letting someone see something they could not see before. When two controls do the same job, one goes.

9. Open to its readers as well as its authors. A shared link should give a reader the same powers of inspection the researcher had. Showing someone a view is an invitation to rearrange it.

10. Readable all the way down. The source is part of the transparency. Someone curious enough to open the file should be able to follow it from top to bottom.


Part 2 — Design guide

Each principle is followed by rules a contributor can check a change against, an example of the tool doing it well, and where it currently falls short.

1. Every dot is an observation

Rules

Already true. The dot-sizing code computes one size for the entire chart and its comment says why: “Dot size is not an encoded dimension in this tool, so it must stay visually uniform … never a different size per cell.” When a cell is too crowded, dots overlap and a +N badge says how many are out of sight, rather than quietly shrinking or dropping them.

Not yet. When colours or shapes run out they repeat without warning (report A7).

2. Nothing is hidden without saying so

Rules

Already true. Dimension rows read “3 of 5 values” when filtered. The line above the picture reads “4 of 8 records shown (filtered by Tone)” whenever fewer records are drawn than loaded, and a panel’s item count reads “2 of 3 items”. Snapshots have the legend added automatically. The Column roles badge counts how many columns are still on “Auto”. Anchor rows are recognised only by an explicit, readable ID (__anchor__a …), never by guessing from what a row looks like. Importing a setup made for a different dataset asks first.

Not yet. The reasons behind Auto column decisions are not shown.

3. Every control has one effect you can see

Rules

Already true. Height boxes are disabled until their tick box is on. Sections of the sidebar appear only once they have something to act on. Dragging the â‹® handle reorders values in the same way on axis headers and in the filter list.

Not yet. List order, dropdown and tick box all assign slots and override one another (A8, B1). “Change color” names both a data edit and a palette edit (B6).

4. One file

Rules

Already true. The editor contains two template expressions in nearly 8,000 lines and runs without Hugo once they are removed. Snapshot buttons check for the library and say so if it is missing. The image proxy used for snapshots of a record is contacted only when a snapshot button is pressed, and the button’s tooltip says so.

Not yet. The editor and the example page are two hand-synchronised copies (C1).

5. The data stays yours

Rules

Already true. Roles are header prefixes, readable anywhere. Comments are an ordinary column. The setup is a separate, human-readable JSON file with a version number, and reading it is forgiving of missing or extra parts.

Not yet. Export always adds the comment column and anchor rows and can reorder columns (A4). A comment containing a line break does not survive re-import (A5).

6. A playground with a paper trail

Rules

Already true. A drag that changes three fields is one undo step. The change log records reversals too and exports as CSV or JSON. Modified dots carry a ring; Reset All asks for confirmation. Anchors exist so that emptying a category by dragging does not make the category disappear.

Not yet. Changing a column’s role rewrites the kept original and cannot be undone. Ctrl+Z inside the comment box undoes a data edit rather than typing.

7. Plain words

Rules

Proposed vocabulary (to be settled with the style guide):

UseForAvoid
recordone row of the data, one dotitem, point, row (in labels)
dimensiona column used to arrange or style dotsvariable, factor, facet
valueone category of a dimensionlevel
gridthe outer arrangement of panelsouter panel, grid grid
panelone box of the gridsector, grid (for a single box)
cellone position inside a panelinner panel
column rolewhat kind of column it istype, prefix
placementwhere a dimension is shown (grid X, colour…)role, encoding (in labels)
setupthe saved arrangementconfig, calibration
anchora placeholder that keeps a value alivedummy, value preserver

Not yet. See report section E.

8. Simple by subtraction

Rules

Already true. Loading a file produces a full picture with no configuration. The stacking parameters for crowded cells are deliberate constants, with a comment saying when they might become options.

Not yet. Download appears three times, the column list twice, the legend four times (B2–B4).

9. Open to its readers

Rules

Already true. Example pages run the same code as the editor. Adding one needs a CSV and an eight-line text file. Colour and shape can carry the same dimension.

Not yet. Most actions are mouse-only (drag, right-click, hover). The interface is dark-theme only apart from snapshots. Neither has been addressed.

10. Readable all the way down

Rules for the source

Already true. Banner comments and FEATURE: markers; a single STATE section; updateVisualization() as the one redraw path; processParsedRows() as the one load path; the setup file carries version and kind.

Not yet. Feature markers are nested and some state is declared beside features; unused functions and variables remain (D1–D7); names still carry an old search-and-replace (E1).


Part 3 — Checklist for a change

Before opening a pull request, a contributor should be able to answer yes to each of these.

Seeing

Keeping

Simplicity

The file

The documents


Part 4 — For tools built on these ideas

PLeW is one answer for one kind of data: discrete observations with a handful of categorical properties and, often, media attached. The commitments travel further than the tool. Someone building for a different kind of data — time series, networks, text — could keep the following and change everything else:

  1. Show the observations, not a summary of them.
  2. Let anyone open any one of them.
  3. Say what is hidden.
  4. Make rearranging the view effortless, and make it the reader’s right as much as the author’s.
  5. Keep a record of every change to the data.
  6. Take plain files in, give plain files out, send nothing anywhere.
  7. Stay small enough to be read, kept and handed on as a single file.

Open questions

These need a decision from the project, not from a contributor.

  1. Should the standalone file drop Hugo entirely? One file serving both the editor and example pages (via a ?data= address parameter) would satisfy “one file” literally. Hugo would remain only to build the gallery.
  2. Is editing part of PLeW’s identity, or one mode of it? The sidebar is titled “Data Editor”, yet most readers of a shared example will only explore. A read-only default for example pages, with editing one click away, may suit both.
  3. How far should the report go? It is the one place PLeW produces statistics. It could stay as counts and crosstabs, tie itself to the current view, or be removed in favour of the picture.
  4. What is the upper size PLeW is meant for? One dot per record sets a natural ceiling. Naming it (hundreds? a few thousand?) would settle several design arguments in advance.
  5. Light theme and keyboard access — in scope for the next iteration or a later one?