@@ -4,10 +4,50 @@ import type {DotOptions} from "./dot.js";
4
4
import type { RuleXOptions , RuleYOptions } from "./rule.js" ;
5
5
import type { TickXOptions , TickYOptions } from "./tick.js" ;
6
6
7
+ /** Options for the boxX mark. */
7
8
export type BoxXOptions = DotOptions & BarXOptions & TickXOptions & RuleXOptions ;
8
9
10
+ /** Options for the boxY mark. */
9
11
export type BoxYOptions = DotOptions & BarYOptions & TickYOptions & RuleYOptions ;
10
12
13
+ /**
14
+ * Returns a box mark that draws horizontal boxplots where **x** is quantitative
15
+ * or temporal and **y**, if present, is ordinal. The box mark is a compound
16
+ * mark consisting of four marks:
17
+ *
18
+ * - a rule representing the extreme values (not including outliers),
19
+ * - a bar representing the interquartile range (trimmed to the data),
20
+ * - a tick representing the median value, and
21
+ * - a dot representing outliers, if any.
22
+ *
23
+ * The given *options* are passed through to these underlying marks, with the
24
+ * exception of the following options:
25
+ *
26
+ * - **fill** - the fill color of the bar; defaults to gray
27
+ * - **fillOpacity** - the fill opacity of the bar; defaults to 1
28
+ * - **stroke** - the stroke color of the rule, tick, and dot; defaults to *currentColor*
29
+ * - **strokeOpacity** - the stroke opacity of the rule, tick, and dot; defaults to 1
30
+ * - **strokeWidth** - the stroke width of the tick; defaults to 2
31
+ */
11
32
export function boxX ( data ?: Data , options ?: BoxXOptions ) : CompoundMark ;
12
33
34
+ /**
35
+ * Returns a box mark that draws vertical boxplots where **y** is quantitative
36
+ * or temporal and **x**, if present, is ordinal. The box mark is a compound
37
+ * mark consisting of four marks:
38
+ *
39
+ * - a rule representing the extreme values (not including outliers),
40
+ * - a bar representing the interquartile range (trimmed to the data),
41
+ * - a tick representing the median value, and
42
+ * - a dot representing outliers, if any.
43
+ *
44
+ * The given *options* are passed through to these underlying marks, with the
45
+ * exception of the following options:
46
+ *
47
+ * - **fill** - the fill color of the bar; defaults to gray
48
+ * - **fillOpacity** - the fill opacity of the bar; defaults to 1
49
+ * - **stroke** - the stroke color of the rule, tick, and dot; defaults to *currentColor*
50
+ * - **strokeOpacity** - the stroke opacity of the rule, tick, and dot; defaults to 1
51
+ * - **strokeWidth** - the stroke width of the tick; defaults to 2
52
+ */
13
53
export function boxY ( data ?: Data , options ?: BoxYOptions ) : CompoundMark ;
0 commit comments