What number does the orange dot represent? The distance between adjacent tick marks is 1.
init({
range: [ [LOWER_BOUND - 1, UPPER_BOUND + 1], [-1, 1] ]
});
line( [ LOWER_BOUND, 0 ], [ UPPER_BOUND, 0 ] );
for ( var x = LOWER_BOUND; x <= UPPER_BOUND; x++ ) {
line( [ x, -0.2 ], [ x, 0.2 ] );
}
style({ stroke: "#6495ED", strokeWidth: 3.5 });
line( [ 0, -0.2], [0, 0.2]);
label( [ 0, -0.53 ], "0", "center", { color: "#6495ED" });
style({ stroke: "#FFA500", fill: "#FFA500" });
graph.orangeDot = circle( [ NUMBER, 0 ], 0.10 );
We know where 0 is on the number line because it is labeled.
Numbers to the left are smaller, and numbers to the right are bigger.
Numbers smaller than 0 are negative, and numbers bigger than 0 are positive.
style({ stroke: "#6495ED", fill: "#6495ED", strokeWidth: 3.5, arrows: "->" });
line( [ 0, 0 ], [ NUMBER, 0 ] );
graph.orangeDot.toFront();
The orange dot is plural( abs( NUMBER ), "position") to the leftright of 0.
label( [ NUMBER, -0.53 ], NUMBER, "center", { color: "#FFA500" });
The orange dot represents the number NUMBER.