-
Notifications
You must be signed in to change notification settings - Fork 3
"line"
mkraska edited this page Apr 29, 2023
·
7 revisions
[ "line", "color", [x1, x2,...], [y1, y2,...] ,dash, th ]
polyline with optional dash style and thickness
-
"color"
color of the line, string. If empty (""
),"black"
is used. -
[x1, x2,...], [y1, y2,...]
lists of x and y values. Must have same length. -
dash
(optional, defaults to"-"
) line style. possible values:"-", "--", ".", "-."
(self explaining) -
th
(optional, default: 0.8) thickness in pixel
[
[ "grid", "x","y", -5,5,-4,5, 50 ],
[ "line", "", [1, 2,3,4], [1,2,2,1] ],
[ "line", "red", [2,3], [1,1],"--", 3 ]
]
In order to try code snippets in jsfiddle,
- copy the code from the wiki page to the clipboard
- follow the link for the JSXGraph version you want to try
- Replace the code in the HTML section (contents of
<p hidden id="init">
) with the content of the clipboard