Graphs and images
Graphing
Plot points and lines on a coordinate grid.
Delivery
Respond, review and evaluate
Authoring
Visual editor available
No print view in this package

Try the interaction
Live example: @pie-element/graphing@11.0.4 · players 1.0.0-beta.5.
Open all examples for this element →Use it in an item
Map the tag to an exact package version and match the model ID to the markup. The item player loads the views. You can use any frontend framework.
{
"elements": {
"graphing": "@pie-element/graphing@11.0.4"
},
"markup": "<graphing id=\"example\"></graphing>",
"models": [
{
"id": "example",
"element": "graphing",
"prompt": "<p>Plot the line for the equation <math><mi>y</mi><mo>=</mo><mn>2</mn><mi>x</mi><mo>+</mo><mn>1</mn></math></p><p>Use points to mark where the line crosses each axis.</p>",
"promptEnabled": true,
"title": "Graphing Linear Functions",
"titleEnabled": true,
"toolbarTools": [
"point",
"line",
"segment"
],
"defaultTool": "point",
"domain": {
"min": -5,
"max": 5,
"step": 1,
"labelStep": 1,
"axisLabel": "x"
},
"range": {
"min": -5,
"max": 5,
"step": 1,
"labelStep": 1,
"axisLabel": "y"
},
"graph": {
"width": 480,
"height": 480
},
"arrows": {
"left": true,
"right": true,
"up": true,
"down": true
},
"coordinatesOnHover": true,
"answers": {
"correctAnswer": {
"name": "Correct Answer",
"marks": [
{
"type": "point",
"x": 0,
"y": 1,
"label": "y-intercept",
"showLabel": true
},
{
"type": "point",
"x": 2,
"y": 5
},
{
"type": "line",
"from": {
"x": -2,
"y": -3
},
"to": {
"x": 2,
"y": 5
}
}
]
}
},
"backgroundMarks": [],
"rationale": "<p>The line y = 2x + 1 has a slope of 2 and y-intercept of 1. It crosses the y-axis at (0, 1) and passes through points like (2, 5).</p>",
"rationaleEnabled": true,
"scoringType": "partial scoring"
}
]
} Responses and scoring
The controller defines scoring for this element. Browser scoring returns one outcome per element. Your application combines those outcomes into an item score and handles trusted server scoring.
Model, configuration and session reference
The model holds content, configuration controls the editor, and the session holds the response. Fields below come from generated JSON Schemas.
Schema version: @pie-element/graphing@11.0.6. Example version: 11.0.4. Use the schema matching your content. Schema checks cover data structure; controller validation checks authoring rules.
model fields (35)
| Field | Type | Meaning | Default / values |
|---|---|---|---|
idRequired | string | Identifier to identify the Pie Element in html markup, Must be unique within a pie item config. | — |
elementRequired | string | The html Element tag name: the key in the item config's `elements` map, e.g. "multiple-choice" | — |
accessibilityCatalogs | array | QTI-aligned accessibility catalogs whose cards dock to content nodes by `data-catalog-idref` | — |
answersRequired | GraphingAnswers | Indicates marks that are set as answers; alternates are keyed `alternate<N>` | — |
arrows | union | Indicates if arrows are enabled; a boolean sets all four arrows (older models) | — |
backgroundMarks | array | Indicates marks that have to be displayed in background | — |
coordinatesOnHover | boolean | Indicates if coordinates of a point are displayed on hover | false |
defaultGridConfiguration | number | Indicates the default grid configuration: an index into the configuration's `gridConfigurations` | 0 |
defaultTool | union | Indicates the default selected tool for the graph; empty means the first toolbar tool | — |
dimensionsEnabled | boolean | Indicates if the graph dimensions are displayed | — |
domain | GraphSettings | Indicates domain settings for the graph | — |
extraCSSRules | ExtraCSSRules | Host-supplied CSS scoped to the element | — |
graph | Graph | Indicates the graph line model | — |
includeAxes | boolean | Indicates if the graph axes and labels are enabled | true |
label | string | Not read: the author copies it from the selected grid configuration. | — |
labels | Labels | Indicates labels | — |
labelsEnabled | boolean | Indicates if the graph labels are displayed | true |
language | string | Indicates the language of the component Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX | — |
padding | boolean | Not read by this element; the author's padding toggle writes it. | — |
prompt | string | Indicates prompt value | — |
promptEnabled | boolean | Indicates if the prompt is enabled | true |
range | GraphSettings | Indicates range settings for the graph | — |
rationale | string | Indicates rationale for the answer | — |
rationaleEnabled | boolean | Indicates if Rationale are enabled | true |
rubricEnabled | boolean | Indicates if Rubric is enabled | — |
scoringType | string | Indicates scoring type | —["dichotomous","partial scoring"] |
spellCheckEnabled | boolean | Indicates if spellcheck is enabled for the author. Default value is true | — |
standardGrid | boolean | Indicates if some domain values will be synched to the range values | false |
studentInstructions | string | Not read by this element. | — |
studentInstructionsEnabled | boolean | Indicates if Student Instructions are enabled | true |
teacherInstructions | string | Indicates teacher instructions | — |
teacherInstructionsEnabled | boolean | Indicates if Teacher Instructions are enabled | true |
title | string | Indicates graph title | — |
titleEnabled | boolean | Indicates if the graph title is displayed | true |
toolbarTools | array | Indicates the tools that have to be displayed in toolbar | — |
Named object types
AccessibilityCatalog
| Field | Type | Meaning | Default / values |
|---|---|---|---|
identifierRequired | string | See the named type or the example model. | — |
cardsRequired | array | See the named type or the example model. | — |
CatalogCard
| Field | Type | Meaning | Default / values |
|---|---|---|---|
catalogRequired | string | See the named type or the example model. | — |
language | string | See the named type or the example model. | — |
content | string | See the named type or the example model. | — |
payload | CatalogCardPayload | See the named type or the example model. | — |
SignLanguageCardPayload
| Field | Type | Meaning | Default / values |
|---|---|---|---|
signLang | string | Language tag for the signed translation — BCP 47, which admits ISO 639-3 subtags for languages with no 639-1/2 code. "ase" is ASL, matching QTI 3 `xml:lang`. This is the language of the *adaptation*, not the item's base content language (AfA/PNP's `languageOfAdaptation`). The distinction is load bearing: a Spanish item's signed alternate is LSM, not ASL, so `signLang` must never be inferred from the item or assessment content language. Optional, and redundant on almost every card. The card's `language` states the same code and is the only field pie-players resolves a card on — resolution runs before anything knows the card is a signing card, so it can only key on the generic field — and the player falls back to it when this is absent. Author it only where the two differ: a card tagged with the item's content language (`language: 'en-US'`, `signLang: 'ase'`) so resolution reaches it by the default-language rung. The pie-api-aws importer emits `language` alone. | — |
mediaRequired | MediaAssetRef | See the named type or the example model. | — |
fragment | MediaFragmentRange | See the named type or the example model. | — |
MediaAssetRef
| Field | Type | Meaning | Default / values |
|---|---|---|---|
versionRequired | number | See the named type or the example model. | — |
idRequired | string | See the named type or the example model. | — |
kindRequired | MediaKind | See the named type or the example model. | — |
sourcesRequired | array | See the named type or the example model. | — |
poster | string | See the named type or the example model. | — |
thumbnail | string | See the named type or the example model. | — |
durationSeconds | number | See the named type or the example model. | — |
tracks | array | See the named type or the example model. | — |
transcript | TranscriptRef | See the named type or the example model. | — |
label | string | See the named type or the example model. | — |
description | string | See the named type or the example model. | — |
lang | string | Language of the asset itself, as authored metadata. Sign-language cards leave it unset: the card's `language` already states the adaptation language, and a second copy is a second thing to keep in agreement. | — |
MediaSource
| Field | Type | Meaning | Default / values |
|---|---|---|---|
srcRequired | string | See the named type or the example model. | — |
type | string | MIME type, e.g. "video/mp4". | — |
width | number | See the named type or the example model. | — |
height | number | See the named type or the example model. | — |
bitrate | number | See the named type or the example model. | — |
TextTrackRef
| Field | Type | Meaning | Default / values |
|---|---|---|---|
srcRequired | string | See the named type or the example model. | — |
kindRequired | string | See the named type or the example model. | —["captions","subtitles","descriptions","chapters","metadata"] |
langRequired | string | See the named type or the example model. | — |
labelRequired | string | See the named type or the example model. | — |
default | boolean | See the named type or the example model. | — |
TranscriptRef
| Field | Type | Meaning | Default / values |
|---|---|---|---|
src | string | See the named type or the example model. | — |
html | string | See the named type or the example model. | — |
plainText | string | See the named type or the example model. | — |
lang | string | See the named type or the example model. | — |
MediaFragmentRange
| Field | Type | Meaning | Default / values |
|---|---|---|---|
startSecondsRequired | number | See the named type or the example model. | — |
endSeconds | number | See the named type or the example model. | — |
SpokenAudioCardPayload
| Field | Type | Meaning | Default / values |
|---|---|---|---|
mediaRequired | MediaAssetRef | See the named type or the example model. | — |
fragment | MediaFragmentRange | See the named type or the example model. | — |
GraphingAnswers
| Field | Type | Meaning | Default / values |
|---|---|---|---|
correctAnswerRequired | Answer | The correct answer | — |
Answer
| Field | Type | Meaning | Default / values |
|---|---|---|---|
nameRequired | string | Indicates name of answer | — |
marksRequired | array | Indicates marks for the answer | — |
Mark
| Field | Type | Meaning | Default / values |
|---|---|---|---|
typeRequired | MarkType | Indicates type of mark | — |
building | boolean | Indicates if mark is in build process | — |
x | number | Indicates x coordinate if type is point | — |
y | number | Indicates y coordinate if type is point | — |
label | string | Indicates label value for mark | — |
showLabel | boolean | Not read by this element or `@pie-lib/graphing`. | — |
from | MarkPoint | Indicates where starts the mark if type is line, segment, ray, vector | — |
to | MarkPoint | Indicates where ends the mark if type is line, segment, ray, vector | — |
middle | MarkPoint | Labelled midpoint of a line, ray, segment, vector, circle or polygon mark | — |
root | MarkPoint | Indicated the root of mark if type is sine, parabola, absolute, exponential or circle | — |
edge | MarkPoint | Indicated the edge of mark if type is sine, parabola, absolute, exponential or circle | — |
closed | boolean | Indicates if mark is closed if type is polygon, sine | — |
points | array | Indicates all mark's points if type is polygon | — |
MarkPoint
| Field | Type | Meaning | Default / values |
|---|---|---|---|
xRequired | number | Indicates x coordinate | — |
yRequired | number | Indicates y coordinate | — |
label | string | Label shown next to the point | — |
Arrows
| Field | Type | Meaning | Default / values |
|---|---|---|---|
leftRequired | boolean | Indicates if left arrow is enabled | — |
rightRequired | boolean | Indicates if right arrow is enabled | — |
upRequired | boolean | Indicates if up arrow is enabled | — |
downRequired | boolean | Indicates if down arrow is enabled | — |
GraphSettings
| Field | Type | Meaning | Default / values |
|---|---|---|---|
minRequired | number | Min value | — |
maxRequired | number | Max value | — |
padding | number | Padding value | — |
stepRequired | number | Step value | — |
labelStepRequired | number | Label step value | — |
axisLabelRequired | string | Axis Label | — |
ExtraCSSRules
| Field | Type | Meaning | Default / values |
|---|---|---|---|
names | array | See the named type or the example model. | — |
rules | string | See the named type or the example model. | — |
Graph
| Field | Type | Meaning | Default / values |
|---|---|---|---|
widthRequired | number | Width for graph representation | — |
heightRequired | number | Height for graph representation | — |
Labels
| Field | Type | Meaning | Default / values |
|---|---|---|---|
top | string | Label for top side of the graph | — |
bottom | string | Label for bottom side of the graph | — |
left | string | Label for left side of the graph | — |
right | string | Label for right side of the graph | — |
configuration fields (29)
| Field | Type | Meaning | Default / values |
|---|---|---|---|
baseInputConfiguration | EditableHtmlConfigureProp | Base editable html input configuration regarding plugins that are enabled/disabled E.g. audio, video, image | — |
authoring | AuthoringConfigProp | Grid Setup Panel configuration | — |
arrows | ArrowsConfigProp | Arrows configuration | — |
availableTools | array | Graph toolbar tools configuration | — |
coordinatesOnHover | ConfigureProp | Coordinates configuration | — |
contentDimensions | ContentDimensions | Minimum and maximum dimensions of the authoring view | — |
graphDimensions | DimensionsConfigProp | Graph dimensions configuration | — |
gridConfigurations | array | Grid default configurations | — |
instruction | ConfigureProp | Instructions shown at the top of the authoring view | — |
padding | ConfigureProp | Padding configuration | — |
labels | LabelsConfigProp | Labels configuration | — |
language | ConfigurePropWithEnabled | Language configuration | — |
languageChoices | ConfigureLanguageOptions | Language choices configuration Only available if language is enabled | — |
prompt | EditableHtmlPluginConfigureRequired | Configuration for the prompt | — |
rationale | EditableHtmlPluginConfigureRequired | Configuration for the rationale | — |
settingsPanelDisabled | boolean | Indicates if the settings panel is not available | — |
spellCheck | ConfigurePropWithEnabled | Configuration for the author's spellcheck | — |
scoringType | ConfigureProp | Scoring Type configuration | — |
studentInstructions | ConfigureProp | Student Instructions configuration | — |
teacherInstructions | EditableHtmlPluginConfigureRequired | Teacher Instructions configuration | — |
title | TitleConfigProp | Graph title configuration | — |
maxImageWidth | ConfigureMaxImageDimensionsProp | Maximum image width for input fields | — |
maxImageHeight | ConfigureMaxImageDimensionsProp | Maximum image height for input fields | — |
withRubric | ConfigureProp | Rubric configuration - only relevant in environments that use pie-player-components | — |
mathMlOptions | ConfigureMathMLProp | Configuration for editable-html | — |
removeIncompleteTool | boolean | Ability to remove incomplete tool added after switching current tool. | false |
showPrompt | boolean | Not read by this element. | — |
promptLabel | string | Not read by this element. | — |
settingsPartialScoring | boolean | Not read by this element. | — |
Named object types
EditableHtmlConfigureProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
math | EditableHtmlButtonConfigure | See the named type or the example model. | — |
audio | EditableHtmlButtonConfigure | See the named type or the example model. | — |
video | EditableHtmlButtonConfigure | See the named type or the example model. | — |
image | EditableHtmlButtonConfigure | See the named type or the example model. | — |
customPlugins | array | An array of objects that determine custom plugins. A custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when the button gets pressed (event). | — |
blockquote | EditableHtmlButtonConfigure | See the named type or the example model. | — |
h3 | EditableHtmlButtonConfigure | See the named type or the example model. | — |
characters | EditableHtmlButtonConfigure | See the named type or the example model. | — |
bold | EditableHtmlButtonConfigure | See the named type or the example model. | — |
html | EditableHtmlButtonConfigure | See the named type or the example model. | — |
italic | EditableHtmlButtonConfigure | See the named type or the example model. | — |
ol_list | EditableHtmlButtonConfigure | See the named type or the example model. | — |
redo | EditableHtmlButtonConfigure | See the named type or the example model. | — |
strikethrough | EditableHtmlButtonConfigure | See the named type or the example model. | — |
sub | EditableHtmlButtonConfigure | See the named type or the example model. | — |
sup | EditableHtmlButtonConfigure | See the named type or the example model. | — |
table | EditableHtmlButtonConfigure | See the named type or the example model. | — |
ul_list | EditableHtmlButtonConfigure | See the named type or the example model. | — |
underline | EditableHtmlButtonConfigure | See the named type or the example model. | — |
undo | EditableHtmlButtonConfigure | See the named type or the example model. | — |
textAlign | EditableHtmlButtonConfigure | See the named type or the example model. | — |
showParagraphs | EditableHtmlButtonConfigure | See the named type or the example model. | — |
separateParagraphs | EditableHtmlButtonConfigure | See the named type or the example model. | — |
pasteFormatting | EditableHtmlButtonConfigure | See the named type or the example model. | — |
superscript | EditableHtmlButtonConfigure | See the named type or the example model. | — |
subscript | EditableHtmlButtonConfigure | See the named type or the example model. | — |
languageCharacters | EditableHtmlButtonConfigure | See the named type or the example model. | — |
responseArea | EditableHtmlButtonConfigure | See the named type or the example model. | — |
EditableHtmlButtonConfigure
| Field | Type | Meaning | Default / values |
|---|---|---|---|
disabled | boolean | Indicates if the plugin is disabled or not | — |
CustomPlugin
| Field | Type | Meaning | Default / values |
|---|---|---|---|
eventRequired | string | The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used). The event is emitted with the "PIE-" prefix. | — |
iconAltRequired | string | The alt for the custom button icon | — |
iconTypeRequired | string | The icon type. Currently, only "SVG" is supported. | — |
iconRequired | string | The icon string. Currently, only SVG is supported, so it needs to be a valid svg. | — |
AuthoringConfigProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
enabled | boolean | Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off) | — |
includeAxesEnabled | boolean | Indicates if the "Include axes and labels?" toggle is displayed in the Grid Setup Panel | — |
standardGridEnabled | boolean | Indicates if the "Constrain to standard coordinate grid?" toggle is displayed in the Grid Setup Panel | — |
min | GridPanelConfigProp | Min value configuration | — |
max | GridPanelConfigProp | Max value configuration | — |
axisLabel | GridPanelConfigProp | Axis label configuration | — |
step | GridPanelConfigProp | Step value configuration | — |
labelStep | GridPanelConfigProp | Label step value configuration | — |
GridPanelConfigProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
label | string | Label for the field in the Grid Setup Panel | — |
enabled | boolean | Indicates if the field is displayed in the Grid Setup Panel | — |
ArrowsConfigProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
left | ConfigureProp | Configuration for the left arrow checkbox | — |
right | ConfigureProp | Configuration for the right arrow checkbox | — |
up | ConfigureProp | Configuration for the up arrow checkbox | — |
down | ConfigureProp | Configuration for the down arrow checkbox | — |
ConfigureProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
ContentDimensions
| Field | Type | Meaning | Default / values |
|---|---|---|---|
maxHeight | string | number | See the named type or the example model. | — |
maxWidth | string | number | See the named type or the example model. | — |
minHeight | string | number | See the named type or the example model. | — |
minWidth | string | number | See the named type or the example model. | — |
DimensionsConfigProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
enabled | boolean | Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off) | — |
min | number | Minimum graph dimension, in pixels | — |
max | number | Maximum graph dimension, in pixels | — |
step | number | Step between graph dimensions, in pixels | — |
GridConfiguration
| Field | Type | Meaning | Default / values |
|---|---|---|---|
label | string | Name shown in the grid configuration picker | — |
arrows | Arrows | Arrows for the grid | — |
domain | GraphSettings | Domain settings for the grid | — |
graph | Graph | Graph dimensions for the grid | — |
includeAxes | boolean | Indicates if the graph axes and labels are enabled | — |
labels | Labels | Labels for the grid | — |
padding | boolean | Indicates if padding is enabled | — |
range | GraphSettings | Range settings for the grid | — |
standardGrid | boolean | Indicates if domain values are synched to the range values | — |
title | string | Graph title | — |
Arrows
| Field | Type | Meaning | Default / values |
|---|---|---|---|
leftRequired | boolean | Indicates if left arrow is enabled | — |
rightRequired | boolean | Indicates if right arrow is enabled | — |
upRequired | boolean | Indicates if up arrow is enabled | — |
downRequired | boolean | Indicates if down arrow is enabled | — |
GraphSettings
| Field | Type | Meaning | Default / values |
|---|---|---|---|
minRequired | number | Min value | — |
maxRequired | number | Max value | — |
padding | number | Padding value | — |
stepRequired | number | Step value | — |
labelStepRequired | number | Label step value | — |
axisLabelRequired | string | Axis Label | — |
Graph
| Field | Type | Meaning | Default / values |
|---|---|---|---|
widthRequired | number | Width for graph representation | — |
heightRequired | number | Height for graph representation | — |
Labels
| Field | Type | Meaning | Default / values |
|---|---|---|---|
top | string | Label for top side of the graph | — |
bottom | string | Label for bottom side of the graph | — |
left | string | Label for left side of the graph | — |
right | string | Label for right side of the graph | — |
LabelsConfigProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
enabled | boolean | Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off) | — |
top | string | Placeholder for the top label | — |
right | string | Placeholder for the right label | — |
bottom | string | Placeholder for the bottom label | — |
left | string | Placeholder for the left label | — |
ConfigurePropWithEnabled
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
enabled | boolean | Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off) | — |
ConfigureLanguageOptions
| Field | Type | Meaning | Default / values |
|---|---|---|---|
labelRequired | string | See the named type or the example model. | — |
optionsRequired | array | See the named type or the example model. | — |
ConfigureLanguageOptionsProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
valueRequired | string | Value of the language option | — |
labelRequired | string | Label of the language option | — |
EditableHtmlPluginConfigureRequired
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
inputConfiguration | EditableHtmlConfigureProp | Configuration for editable-html | — |
required | boolean | Indicates if the item is required and the value cannot be empty | — |
TitleConfigProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
settings | boolean | Indicates if the item has to be displayed in the Settings Panel | — |
label | string | Indicates the label for the item that has to be displayed in the Settings Panel | — |
enabled | boolean | Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off) | — |
placeholder | string | Placeholder for the graph title | — |
ConfigureMaxImageDimensionsProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
teacherInstructions | number | Indicates the max dimension for images in teacher instructions | — |
prompt | number | Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified | — |
rationale | number | Indicates the max dimension for images in rationale | — |
ConfigureMathMLProp
| Field | Type | Meaning | Default / values |
|---|---|---|---|
mmlOutput | boolean | Indicates if model should have mathML output instead of latex | — |
mmlEditing | boolean | Indicates if mathML that's already in model should be editable | — |
session fields (3)
| Field | Type | Meaning | Default / values |
|---|---|---|---|
id | string | Identifier of the session | — |
element | string | The element the session belongs to | — |
answer | array | The marks the student drew | — |
Named object types
Mark
| Field | Type | Meaning | Default / values |
|---|---|---|---|
typeRequired | MarkType | Indicates type of mark | — |
building | boolean | Indicates if mark is in build process | — |
x | number | Indicates x coordinate if type is point | — |
y | number | Indicates y coordinate if type is point | — |
label | string | Indicates label value for mark | — |
showLabel | boolean | Not read by this element or `@pie-lib/graphing`. | — |
from | MarkPoint | Indicates where starts the mark if type is line, segment, ray, vector | — |
to | MarkPoint | Indicates where ends the mark if type is line, segment, ray, vector | — |
middle | MarkPoint | Labelled midpoint of a line, ray, segment, vector, circle or polygon mark | — |
root | MarkPoint | Indicated the root of mark if type is sine, parabola, absolute, exponential or circle | — |
edge | MarkPoint | Indicated the edge of mark if type is sine, parabola, absolute, exponential or circle | — |
closed | boolean | Indicates if mark is closed if type is polygon, sine | — |
points | array | Indicates all mark's points if type is polygon | — |
MarkPoint
| Field | Type | Meaning | Default / values |
|---|---|---|---|
xRequired | number | Indicates x coordinate | — |
yRequired | number | Indicates y coordinate | — |
label | string | Label shown next to the point | — |
Accessibility and content requirements
PIE targets WCAG 2.2 AA. Provide clear prompts and media alternatives, and test the question with a keyboard and assistive technology. Manual testing is still incomplete; see the coverage notes below.
Accessibility and evidence · Element evidence and manual checks(opens in new tab)
Element package source(opens in new tab) · Example source(opens in new tab) · Snapshot cb30a68f