Error codes › ui-chart

Error codes

ui-chart

error warning The product's user interface

What it means#

A chart drawn from a list of the model (chart c { value l; item s; line x s.at y s.kw }) that does not hold: no item, or an item called x, y or color; a value that is not a list; a mark with no y, a y that is not a number, an x that is a bool or a record; marks in two units on one y axis (or x), an x that is a time or a text on one mark and a number on another; a rule in another unit than the marks (rule y 45kW over marks in W), a rule naming a requirement there is not, or one with no limit (a warning); as a warning, a mark that reads nothing of its item (the same at every point: a rule), a chart with no mark. docs/ui.md#charts-of-a-list-marks.

How to fix it#

The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).

In the terminal#

archec explain ui-chart prints this explanation; archec explain ui lists the codes of its area.