|
1 | 1 | import type {ChannelValue, ChannelValueDenseBinSpec, ChannelValueSpec} from "../channel.js"; |
2 | 2 | import type {CurveOptions} from "../curve.js"; |
3 | | -import type {ColorOptions, Data, MarkOptions, RenderableMark} from "../mark.js"; |
| 3 | +import type {Data, MarkOptions, RenderableMark} from "../mark.js"; |
4 | 4 | import {MarkerOptions} from "../marker.js"; |
5 | 5 | import type {BinOptions, BinReducer} from "../transforms/bin.js"; |
6 | 6 | import type {StackOptions} from "../transforms/stack.js"; |
7 | 7 |
|
8 | 8 | /** Options for the area, areaX, and areaY marks. */ |
9 | | -export interface AreaOptions extends MarkOptions, StackOptions, ColorOptions, CurveOptions { |
| 9 | +export interface AreaOptions extends MarkOptions, StackOptions, CurveOptions { |
10 | 10 | /** |
11 | 11 | * The required primary (starting, often left) horizontal position channel, |
12 | 12 | * representing the area’s baseline, typically bound to the *x* scale. For |
@@ -43,6 +43,9 @@ export interface AreaOptions extends MarkOptions, StackOptions, ColorOptions, Cu |
43 | 43 | * **stroke** if a channel. |
44 | 44 | */ |
45 | 45 | z?: ChannelValue; |
| 46 | + |
| 47 | + /** Shorthand for setting both the fill and the stroke. */ |
| 48 | + color?: ChannelValueSpec; |
46 | 49 | } |
47 | 50 |
|
48 | 51 | /** Options for the areaX mark. */ |
|
0 commit comments