Errors¶
Every failure reads CODE: what happened. Next step: what to do. A chart problem carries its own code in that sentence, the JSON path it is at, and one next step. The contract's codes, such as PLAN_INVALID, PERMISSION_DENIED and HOST_UNTESTED, are in the README; this page lists the chart codes.
A warning does not stop a call. An error stops it before anything is written.
Input and documents¶
| Code | When |
|---|---|
INPUT_INVALID | The input does not match the method's schema. |
INPUT_CONFLICT | One call names two arms that cannot appear together, such as spec and document. |
AGGREGATION_REQUIRED | Several rows would share one mark and the call does not state an aggregation. |
CHART_TYPE_UNKNOWN | The chart type is not in the catalogue. |
DOCUMENT_INVALID | The document has an unknown property or a value outside its schema, at a JSON path. |
DOCUMENT_VERSION_UNSUPPORTED | The document's version is not 1. |
DOCUMENT_REVISION_MISMATCH | The saved document is not the revision the call names, or it was edited. |
DOCUMENT_DEPENDENCY_CHANGED | A captured font or another dependency of the saved document has changed. |
ARTIFACT_INVALID | The saved artifact is not the envelope Charts wrote. |
CATEGORY_COLOR_UNUSED | A pinned category colour names a value the data does not have. |
INTERACTION_UNSUPPORTED | The chart type does not carry the interaction the document asks for. |
INTERACTION_FORMAT_MISMATCH | The document needs the interactive page and the formats leave html out. |
UNKNOWN_FIELD, UNKNOWN_TYPE, UNKNOWN_MARK, UNKNOWN_CHANNEL | A field, type, mark or channel is not one the call can draw. |
UNKNOWN_DATASET | A board panel or filter names a dataset the board does not have. |
UNKNOWN_PROPERTY | A property is not part of the schema at its path. |
VALUE_MISSING, POSITION_MISSING, FIELD_MISSING | A mark needs a value or a field the call does not give. |
TYPE_MISMATCH, SERIES_TYPE_MISSING, NO_SERIES | A field's type does not fit the channel, or a series binding is missing. |
NO_MARK, NO_MARKS, AXES_MISSING | The spec has no mark, no marks, or no axis to draw. |
SCALE_INVALID, TRANSFORM_INVALID | A scale or a transform is not one the engine can read. |
SPEC_INVALID | The spec is not valid for its engine, at a JSON path. |
SPEC_TOO_LARGE, SPEC_TOO_EXPENSIVE | The spec is over the size or cost limit. |
SPEC_UNSAFE | The spec asks for something the offline renderer refuses. |
ECHARTS_COMPONENT_UNSUPPORTED | The ECharts option uses a component Charts does not draw. |
ECHARTS_MARKUP_REFUSED | The ECharts option carries markup that the renderer refuses. |
Data¶
| Code | When |
|---|---|
DATA_MISSING | The call needs data and names none. |
DATA_EMPTY, EMPTY_DATA | The data has no rows. |
DATA_INVALID | A row does not keep the data's shape. |
DATA_FORMAT_UNKNOWN | The file's format is not one Charts reads. |
DATA_TOO_LARGE | The data is over the size limit. |
DATA_TWICE | The call gives the data twice, inline and by path. |
DATE_AS_CATEGORY, NOT_A_DATE | A temporal field is not a date, or a date is used as a category. |
NOT_A_FILE, FILE_NOT_FOUND | The path is not a file, or the file does not exist. |
ATLAS_UNKNOWN | The map atlas is not one the build bundles. |
SANKEY_CYCLE | A Sankey flow has a cycle, which the engine cannot draw. |
Paths and output¶
| Code | When |
|---|---|
PATH_INVALID | The path is not a plain workspace path. |
PATH_IS_URL | The path is a URL; Charts reads no network. |
PATH_OUTSIDE_WORKSPACE | The path resolves outside the session's workspace. |
PATH_PRIVATE | The path names .git or another private location. |
OUTPUT_WRITE_FAILED | The output folder could not be written. |
PNG_TOO_LARGE, PNG_UNAVAILABLE | The PNG would be too large, or its rasteriser is missing from this build. |
HTML_RUNTIME_FAILED, HTML_UNAVAILABLE | The interactive page could not run, or its runtime is missing from this build. |
RENDER_FAILED | The engine failed while drawing. |
Themes and fonts¶
| Code | When |
|---|---|
THEME_NOT_FOUND | No built-in, saved or configured theme has that name. |
THEME_INVALID | A theme token is missing or outside its type. |
THEME_CYCLE | A theme extends itself, directly or through another theme. |
THEME_NAME_INVALID, THEME_NAME_TAKEN | A saved theme's name is not lowercase and hyphenated, or it is already taken. |
LOW_CONTRAST | A text, label or series colour does not stand off its ground. |
FONT_INVALID, FONT_TOO_LARGE | A custom font file is unreadable or over the size limit. |
FONT_NOT_BUNDLED, FONT_GLYPH_MISSING | A family is not bundled, or a glyph the text needs is missing. |
Advice¶
| Code | When |
|---|---|
TRUNCATED_AXIS | A bar or area axis does not start at zero where that would mislead. |
DUAL_AXIS | Two measures share a chart on two axes. |
PIE_NEGATIVE, PIE_TOO_MANY_SLICES | A pie has a negative value or too many slices to read. |
OVERPLOTTING | Too many marks share the same space. |
LABEL_COLLISION, LABEL_CLIPPED, LABEL_DENSITY | Labels overlap, clip or are too dense to read. |
TOO_MANY_SERIES | More series than the reader can tell apart. |
RAINBOW_SEQUENTIAL | A sequential scale uses a rainbow, which misleads the order. |
MISSING_UNITS | A title or axis does not say its unit. |
DUPLICATE_TICKS, UNSORTED_BARS | Ticks repeat, or bars are not in the order the chart implies. |
LAYOUT_UNSATISFIABLE, LAYOUT_UNSUPPORTED | No layout fits the requested size, or the target has no layout. |
SIZE_INVALID, SIZE_OVERRIDE_IGNORED | The size is outside its range, or an explicit size overrides a profile. |
CURRENCY_UNKNOWN, LOCALE_UNKNOWN | The currency or locale is not one the build carries. |
VEGA_LITE_WARNING, VEGA_WARNING | The engine reported a warning that Charts passes on. |
STATUS_UNAVAILABLE | Status could not read the host's agent rules. |