<regionBetweenCurveXAxis>
<regionBetweenCurveXAxis> is a Graphical
component that renders a shaded region on a graph between a specified function and the -axis.
Attributes and Properties
Attributes for <regionBetweenCurveXAxis>
Labels (1)
labelIsNameboolean. Default value: false. Whether to use this component's name as its rendered label.
Other (4)
applyStyleToLabelboolean. Default value: false. Whether to apply this component's selected style to its label.
numberList. Default value: [0,1]. Boundary values defining the region's left/right edges.
function. The function whose graph bounds the region.
layerinteger. Default value: 0. Z-order layer index used to stack graphical components (higher values render on top).
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
integer. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <regionBetweenCurveXAxis name="r">
Labels (2)
$r.labellabel. The label rendered with this component.
$r.labelIsNameboolean. Whether to use this component's name as its rendered label.
Other (9)
$r.applyStyleToLabelboolean. Whether to apply this component's selected style to its label.
$r.boundaryValuesnumberList. Boundary values defining the region's left/right edges.
$r.disabledboolean. Whether this component is disabled and cannot be interacted with.
$r.fixedboolean. Whether this component's value is fixed and cannot be modified.
$r.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$r.layerinteger. Z-order layer index used to stack graphical components (higher values render on top).
text. A textual description of the region's style.
text. Style description including the word "region".
Common to all components (4)
$r.doenetMLtext. The DoenetML source code that produced this component.
$r.hideboolean. Whether to hide this component from the rendered output.
$r.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$r.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: Render shading between a function and the x-axis
The <regionBetweenCurveXAxis> component shades in the region between a function
and the -axis over a specified interval.
Attribute Examples
Attribute Example: function
The function attribute takes a named function reference as input.
Attribute Example: boundaryValues
The boundaryValues attribute accepts a list of -values or numerical references that define the endpoints of the shaded interval.
Attribute Example: styleNumber
The <regionBetweenCurveXAxis> component accepts the styleNumber attribute. Default styleNumbers range from to .
Property Examples
Property Example: styleDescription/ styleDescriptionWithNoun
Since users can override styles and so may see different colors and line styles, don’t directly refer to the colors and line styles you create. Instead, use the properties styleDescription and styleDescriptionWithNoun. With those properties, the text will change to match the displayed styles.